:root {
    --bg-color: #050505;
    --primary-red: #e30713;
    --text-color: #ffffff;
    --input-bg: #0a0a0a;
    --input-border: #222222;
    --input-focus-border: #444;
    --placeholder-color: #666;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Image */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--bg-color);
    background-image: url('images/Desktop BG.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Central subtle glow */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(227, 7, 19, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 650px;
    padding: 2vh 20px; /* Reduced top/bottom padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Force container to be 100vh */
    z-index: 1;
}

/* Logo Styling */
.logo-container {
    text-align: center;
    margin-bottom: 3vh;
    margin-top: 2vh;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Image */
.main-logo {
    width: 140px;
    height: auto;
    margin-bottom: 2vh;
}

.brand-name {
    font-size: 26px;
    letter-spacing: 12px;
    font-weight: 400;
    margin-bottom: 10px;
    margin-left: 12px;
    color: #fff;
}

.brand-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 10px auto 15px;
    position: relative;
}

.brand-divider::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 50%;
    top: -2.5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px var(--primary-red);
}

.brand-subtitle {
    font-size: 11px;
    letter-spacing: 4px;
    color: #e0e0e0;
    font-weight: 400;
}
.brand-subtitle span {
    color: var(--primary-red);
    font-weight: 600;
}


/* Form Styling */
.form-container {
    width: 100%;
    max-width: 480px;
    margin-bottom: 3vh;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--placeholder-color);
    font-size: 16px;
    transition: color 0.3s ease;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    color: var(--text-color);
    padding: 12px 12px 12px 42px;
    font-family: var(--font-main);
    font-size: 13px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.input-wrapper textarea {
    min-height: 80px;
    resize: vertical;
    padding-top: 12px;
}

.textarea-wrapper i {
    top: 14px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: #444;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5), 0 0 8px rgba(255,255,255,0.05);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #050505;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 14px;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.4s ease;
    margin-top: 5px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: rgba(227, 7, 19, 0.05);
    box-shadow: 0 0 15px rgba(227, 7, 19, 0.3);
    text-shadow: 0 0 5px rgba(227, 7, 19, 0.5);
}


/* Footer Styling */
.site-footer {
    width: 100%;
    padding-top: 2vh;
    padding-bottom: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #333, transparent);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.info-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.info-item i {
    color: var(--primary-red);
    font-size: 22px;
    margin-bottom: 15px;
}

.info-item p, .info-item a {
    font-size: 11px;
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.info-item p span {
    color: #888;
}

.info-item a:hover {
    color: var(--primary-red);
}

.info-separator {
    width: 1px;
    background-color: #333;
    height: 40px;
    margin: 0 10px;
    align-self: center;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    position: relative;
    padding-top: 25px;
    padding-bottom: 20px;
}

.footer-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-red) 50%, transparent 100%);
    opacity: 0.6;
}

.footer-bottom p {
    font-size: 11px;
    letter-spacing: 4px;
    color: #999;
}
.footer-bottom p span {
    color: var(--primary-red);
    font-weight: 600;
}

/* Success/Error Messages */
.success-message, .error-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.5s ease;
}
.success-message {
    background-color: rgba(46, 204, 113, 0.05);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.error-message {
    background-color: rgba(231, 76, 60, 0.05);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 30px;
    }
    .footer-info {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        margin-bottom: 20px;
    }
    .info-item {
        padding: 0 5px;
    }
    .info-item i {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .info-item p, .info-item a {
        font-size: 9px;
    }
    .info-separator {
        display: block;
        height: 30px;
    }
    .brand-name {
        font-size: 22px;
        letter-spacing: 8px;
    }
    .main-logo {
        width: 110px;
        margin-bottom: 15px;
    }
}

/* =========================================
   ADMIN DASHBOARD STYLES
   ========================================= */
.admin-login-container {
    padding-top: 10vh;
}

.admin-dashboard {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--primary-red);
    padding-bottom: 15px;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-logo {
    width: 40px;
    height: auto;
}

.dashboard-header h2 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logout-btn {
    background: transparent;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 8px 15px;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(227, 7, 19, 0.1);
    box-shadow: 0 0 10px rgba(227, 7, 19, 0.3);
}

.dashboard-content {
    background-color: rgba(5, 5, 5, 0.7);
    border: 1px solid #222;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.no-messages {
    padding: 50px;
    text-align: center;
    color: #666;
}

.no-messages i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-red);
    opacity: 0.5;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.messages-table th, .messages-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
}

.messages-table th {
    background-color: #0a0a0a;
    color: #b0b0b0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

.messages-table tr:last-child td {
    border-bottom: none;
}

.messages-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.date-col {
    color: #888;
    white-space: nowrap;
}

.email-link {
    color: var(--primary-red);
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

.message-col {
    color: #ddd;
    line-height: 1.6;
    max-width: 400px;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .messages-table th, .messages-table td {
        padding: 12px 10px;
    }
}

.delete-btn {
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
    display: inline-block;
    padding: 5px;
}

.delete-btn:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

.settings-container {
    max-width: 600px;
    margin: 0 auto;
}

.settings-container .input-group label {
    color: #e0e0e0;
    font-size: 12px;
}

.settings-container .input-wrapper input {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.settings-container .input-wrapper input:focus {
    border-color: var(--primary-red);
}
