/* ===================================
   DIRECTGOV - MAIN STYLES
   Core styles, layout, navbar, buttons
   =================================== */

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

/* Body & Container */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px;
}

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

/* Navbar */
.navbar {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease-out;
}

.navbar h2 {
    color: #1e3c72;
    font-size: 24px;
}

.navbar-brand {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar .nav-links,
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .nav-links a,
.nav-links a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar .nav-links a:hover,
.nav-links a:hover {
    background: #f0f4f8;
}

.nav-notifications {
    position: relative;
}

.nav-account {
    color: #666 !important;
    font-weight: 600 !important;
}

.navbar-title-full {
    display: inline;
}

.navbar-title-short {
    display: none;
}

.nav-link-text {
    display: inline;
}

.nav-link-icon {
    display: inline;
    margin-right: 4px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Email Verification Banner */
.email-verification-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 15px 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-verification-banner strong {
    color: #856404;
}

.email-verification-banner p {
    color: #856404;
    margin: 5px 0 0 0;
    font-size: 14px;
}

.email-verification-banner a {
    background: #ffc107;
    color: #856404;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

/* Flash Messages */
.flash-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid transparent;
}

.flash-info {
    background: #dbeafe;
    color: #1e3a8a;
    border-left-color: #2563eb;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.flash-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: #f59e0b;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.btn-secondary {
    background: white;
    color: #1e3c72;
    border: 2px solid #1e3c72;
}

.btn-secondary:hover {
    background: #f0f4f8;
}

.btn-primary {
    background: #1e3c72;
    color: white;
    border: 1px solid #1e3c72;
}

.btn-primary:hover {
    background: #2a5298;
    border-color: #2a5298;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar h2 {
        font-size: 24px;
    }

    .navbar-title-full {
        display: none;
    }

    .navbar-title-short {
        display: none;
    }

    .nav-links {
        gap: 8px !important;
    }

    .nav-links a {
        padding: 8px 12px !important;
        font-size: 20px;
    }

    .nav-link-text {
        display: none;
    }

    .nav-link-icon {
        display: inline;
    }

    .notification-badge {
        top: -2px;
        right: -2px;
        font-size: 10px;
        padding: 1px 4px;
        min-width: 16px;
    }
}
