/* ===== CSS Variables ===== */
:root {
    --primary-color: #152d5b;
    --secondary-color: #0d1f3c;
    --accent-color: #c9a87c;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-secondary: #475569; /* darker variant — use on light backgrounds for AA contrast */
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --error-color: #b91c1c;     /* 6.4:1 on white — WCAG AA */
    --success-color: #166534;   /* 7.2:1 on white — WCAG AAA */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Screen-reader only — visually hidden but announced by assistive tech */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keyboard focus indicator — only shown for keyboard nav, hidden for mouse */
*:focus { outline: none; }

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Buttons need slightly more padding on the outline */
button:focus-visible,
a:focus-visible {
    outline-offset: 3px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 31, 60, 0.88);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
    background: rgba(13, 31, 60, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.04em;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 26px;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,0.88);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--white);
}

.nav-login {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
}

.nav-login:hover {
    background: #b8966a;
    color: var(--white);
    opacity: 1;
}

.nav-login::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 8s ease;
    z-index: 0;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 31, 60, 0.65);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 820px;
    padding: 0 30px;
}

.slide-content h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.93;
    margin-bottom: 36px;
    line-height: 1.7;
}

.btn-hero {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent-color);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    padding-bottom: 2px;
}

.slider-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* ===== What We Do ===== */
.what-we-do {
    padding: 100px 0;
    background: var(--white);
}

.what-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.what-text .section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
}

.what-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.25;
}

.what-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 36px;
}

.what-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(21, 45, 91, 0.2);
}

.btn-gold {
    display: inline-block;
    padding: 13px 32px;
    background: var(--accent-color);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-gold:hover {
    background: #b8966a;
    transform: translateY(-2px);
}

.btn-navy {
    display: inline-block;
    padding: 13px 32px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-navy:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== Services Icons Grid ===== */
.services-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title-center {
    text-align: center;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 60px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.services-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.icon-card {
    background: var(--white);
    padding: 44px 32px 36px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(21, 45, 91, 0.07);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.icon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(21, 45, 91, 0.14);
    border-bottom-color: var(--accent-color);
}

.icon-circle {
    width: 72px;
    height: 72px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}

.icon-circle svg {
    width: 32px;
    height: 32px;
}

.icon-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.icon-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ===== Team Section ===== */
.team-section {
    padding: 100px 0;
    background: var(--white);
}

.team-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 70px;
    align-items: center;
}

.team-text .section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

.team-text h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.25;
}

.team-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 18px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.team-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(21, 45, 91, 0.1);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(21, 45, 91, 0.18);
}

.team-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
}

.team-info {
    background: var(--primary-color);
    padding: 14px 18px;
}

.team-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}

.team-info p {
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: 8px;
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 16px rgba(21, 45, 91, 0.07);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(21, 45, 91, 0.12);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 22px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author .author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3px;
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Partners ===== */
.partners-section {
    padding: 80px 0;
    background: var(--white);
}

.partners-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.partner-logo img {
    max-height: 70px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.8;
    transition: var(--transition);
}

.partner-logo img:hover {
    filter: none;
    opacity: 1;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 50px;
    margin-top: 60px;
}

.contact-info {
    background: var(--primary-color);
    padding: 48px 36px;
    border-radius: 8px;
    color: var(--white);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 36px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-icon {
    background: rgba(255,255,255,0.12);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}

.contact-item h4 {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-item p {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-form-wrap {
    background: var(--white);
    padding: 48px 44px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(21, 45, 91, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Inline field validation states */
.form-group input.field-valid {
    border-color: #10b981;
    background: #f0fdf4;
}

.form-group input.field-valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-group input.field-error {
    border-color: #ef4444;
    background: #fff8f8;
}

.form-group input.field-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error-msg {
    display: none;
    font-size: 0.8rem;
    color: var(--error-color);
    margin-top: 5px;
    line-height: 1.4;
}

.field-error-msg.visible {
    display: block;
    animation: fadeInUp 0.15s ease forwards;
}

.form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Password strength bar */
.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0;
}

.password-strength-bar.weak   { background: #ef4444; }
.password-strength-bar.fair   { background: #f59e0b; }
.password-strength-bar.good   { background: #3b82f6; }
.password-strength-bar.strong { background: #10b981; }

.password-strength-label {
    font-size: 0.78rem;
    margin-top: 4px;
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}


/* ===== Footer ===== */
.footer-dark {
    background: var(--secondary-color);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-bottom: 20px;
}

.footer-address {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

/* ===== Animations ===== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .what-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .what-image img {
        height: 280px;
    }

    .services-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title-center {
        font-size: 1.3rem;
    }

    .team-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partners-bar {
        gap: 30px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-wrap {
        padding: 30px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .services-icons-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Login Page ===== */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.login-left {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-branding h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.login-branding > p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 60px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    opacity: 0.85;
    line-height: 1.6;
}

.login-right {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    background: var(--white);
    padding: 50px 45px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.login-form {
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--bg-light);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--accent-color);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-login:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Demo Credentials */
.demo-credentials {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.demo-header {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-account {
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.demo-account strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
}

.demo-cred {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #334155;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 4px;
    margin-top: 4px;
    user-select: all;
    cursor: text;
}

.demo-cred:hover {
    background: #e0f2fe;
}

.login-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.signup-link:hover {
    color: var(--accent-color);
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.success-message::before {
    content: '';
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23065f46'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

.error-message::before {
    content: '';
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23991b1b'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

/* Form Help Text */
.form-help {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Checkbox Group Styles */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-group .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.back-home a:hover {
    color: var(--primary-color);
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert.error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.alert.success {
    background: #efe;
    color: #070;
    border: 1px solid #cfc;
}

/* Login Responsive */
@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-box {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 20px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }
}

/* ===== Dashboard ===== */
.dashboard-body {
    background: var(--bg-light);
}

.dashboard-nav {
    background: var(--secondary-color);
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-logo h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    color: var(--white);
    font-weight: 600;
}

.btn-logout {
    padding: 10px 24px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.dashboard-header {
    margin-bottom: 35px;
}

.dashboard-header h1 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin: 0;
}

/* ===================================
   CLIENT BALANCE OVERVIEW CARD
   =================================== */

.balance-overview-card {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 35px;
    color: white;
    box-shadow: 0 10px 40px rgba(30, 64, 175, 0.3);
    border: 3px solid #60a5fa;
}

.balance-main {
    margin-bottom: 30px;
    text-align: center;
}

.balance-label {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 15px;
    font-weight: 500;
}

.balance-amount {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.balance-change {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 600;
}

.balance-change.positive {
    color: #86efac;
}

.balance-change.negative {
    color: #fca5a5;
}

.balance-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.breakdown-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.breakdown-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.breakdown-content {
    flex: 1;
}

.breakdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.breakdown-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.breakdown-detail {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===================================
   CLIENT DASHBOARD SECTIONS
   =================================== */

.section-header-client {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header-client h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.section-actions-client {
    display: flex;
    gap: 10px;
}

/* ===================================
   RESPONSIVE - CLIENT DASHBOARD
   =================================== */

@media (max-width: 768px) {
    .balance-overview-card {
        padding: 30px 20px;
    }

    .balance-amount {
        font-size: 2.5rem;
    }

    .balance-breakdown {
        grid-template-columns: 1fr;
    }

    .breakdown-item {
        padding: 20px 15px;
    }

    .section-header-client {
        flex-direction: column;
        align-items: stretch;
    }

    .section-actions-client {
        flex-direction: column;
    }

    .section-actions-client button {
        width: 100%;
    }
}

/* ===================================
   TRANSACTION DETAIL PAGE
   =================================== */

.breadcrumb {
    margin-bottom: 25px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.transaction-header-left h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.transaction-header-left p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.transaction-header-right {
    display: flex;
    align-items: center;
}

.transaction-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.detail-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.detail-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
}

.detail-section h2 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 0 0 25px 0;
    font-weight: 600;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 12px;
    bottom: -18px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item.pending .timeline-marker {
    background: var(--light-gray);
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.timeline-item.pending .timeline-title {
    color: var(--text-light);
}

.timeline-item.pending .timeline-description {
    color: var(--text-light);
    font-style: italic;
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.document-item:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-icon {
    font-size: 2rem;
    line-height: 1;
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 3px;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.document-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-small {
    background: white;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Detail Info List */
.detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.detail-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-info-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

.detail-info-value {
    font-weight: 600;
    color: var(--secondary-color);
    text-align: right;
}

.detail-info-value.highlight {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Quick Actions List */
.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
}

.action-button:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.action-button-icon {
    font-size: 1.8rem;
}

.action-button-text {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Notes Box */
.notes-box {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--accent-color);
}

.notes-box p {
    margin: 0 0 12px 0;
    color: var(--text-color);
    line-height: 1.6;
}

.notes-box p:last-child {
    margin-bottom: 0;
}

/* ===================================
   RESPONSIVE - TRANSACTION DETAIL
   =================================== */

@media (max-width: 992px) {
    .detail-columns {
        grid-template-columns: 1fr;
    }

    .transaction-header {
        flex-direction: column;
        gap: 15px;
    }

    .transaction-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.dashboard-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.stat-box {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 3rem;
}

.stat-info h3 {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.dashboard-section {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.dashboard-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.transactions-table {
    overflow-x: auto;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    text-align: left;
    padding: 15px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #e2e8f0;
}

.transactions-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.transactions-table tr:hover {
    background: var(--bg-light);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.btn-view {
    padding: 8px 18px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view:hover {
    background: #1e3a8a;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.action-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(14, 165, 233, 0.1));
    transition: left 0.4s ease;
}

.action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.2);
}

.action-card:hover::before {
    left: 0;
}

.action-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.action-card:hover .action-icon {
    transform: scale(1.2) rotate(5deg);
}

.action-card h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.action-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Dashboard Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .dashboard-section {
        padding: 25px 20px;
    }

    .dashboard-user {
        gap: 10px;
    }

    .user-name {
        display: none;
    }
}

/* ===================================
   ADMIN DASHBOARD STYLES
   =================================== */

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

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

.admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 40px;
}

.admin-stats .stat-box {
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-stats .stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.admin-stats .stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
    border-color: var(--primary-color);
}

.admin-stats .stat-icon {
    font-size: 3rem;
    line-height: 1;
    filter: grayscale(0);
    transition: all 0.3s;
}

.admin-stats .stat-box:hover .stat-icon {
    transform: scale(1.1);
}

.admin-stats .stat-content {
    flex: 1;
}

.admin-stats .stat-content h3 {
    font-size: 2.2rem;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-stats .stat-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.dashboard-section {
    margin-bottom: 50px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.section-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--secondary-color);
}

.filter-select:hover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15);
}

/* Approvals List */
.approvals-list {
    display: grid;
    gap: 20px;
}

.approval-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.2);
}

.approval-item::before {
    content: '';
    display: block;
    position: absolute;
    top: -12px;
    right: 20px;
    width: 1.5rem;
    height: 1.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath fill-rule='evenodd' d='M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.approval-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
    border-color: #f59e0b;
}

.approval-info {
    flex: 1;
}

.approval-info h3 {
    margin: 0 0 10px 0;
    color: #92400e;
    font-size: 1.2rem;
    font-weight: 700;
}

.approval-info p {
    margin: 6px 0;
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.5;
}

.approval-client {
    font-weight: 700;
    color: #1e40af;
    font-size: 1.05rem;
}

.approval-amount {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
}

.approval-amount strong {
    font-size: 1.2rem;
}

.approval-file {
    color: #6b7280;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 5px;
}

.approval-date {
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 500;
}

.approval-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Admin Transactions Table */
.transactions-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.admin-table {
    margin: 0;
    box-shadow: none;
}

.admin-table th {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 18px 15px;
}

.admin-table tbody tr {
    transition: all 0.2s;
}

.admin-table tbody tr:hover {
    background-color: #eff6ff;
    transform: scale(1.01);
}

.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.btn-icon {
    background: white;
    border: 2px solid var(--border-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-icon:active {
    transform: translateY(0) scale(1);
}

.btn-icon-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-sm:active {
    transform: translateY(0);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

/* ===================================
   MODAL STYLES
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
    border: 3px solid var(--primary-color);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
}

.modal-close {
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background-color: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15);
    background-color: white;
}

.form-input[readonly] {
    background-color: var(--light-gray);
    cursor: not-allowed;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.file-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    padding: 0;
    font-size: 0.95rem;
}

.btn-link:hover {
    color: var(--accent-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 25px 30px;
    border-top: 2px solid var(--border-color);
    background-color: #f9fafb;
    border-radius: 0 0 20px 20px;
}

.modal-footer button {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-footer button:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ===================================
   ADMIN NAVBAR STYLES
   =================================== */

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-user .user-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* ===================================
   BUTTON STYLES
   =================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
    font-size: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 28px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid transparent;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: #10b981;
}

.toast-error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #ef4444;
}

.toast-info {
    background: linear-gradient(135deg, var(--accent-color), #0284c7);
    border-color: #38bdf8;
}

/* ===================================
   RESPONSIVE - ADMIN DASHBOARD
   =================================== */

@media (max-width: 768px) {
    .approval-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .approval-actions {
        width: 100%;
        justify-content: stretch;
    }

    .approval-actions button {
        flex: 1;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .section-actions {
        flex-direction: column;
    }

    .filter-select,
    .section-actions button {
        width: 100%;
    }

    .modal-content {
        margin: 20px;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer button {
        width: 100%;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }
}


@media (max-width: 480px) {
    .dashboard-container {
        padding: 30px 0;
    }

    .transactions-table {
        font-size: 0.85rem;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 12px 8px;
    }
}

/* =============================================================================
   LOADING OVERLAY
   ============================================================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================================================
   ANALYTICS & REPORTS PAGES
   ============================================================================= */

/* Nav links in admin navbar */
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links .nav-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.nav-links .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.nav-links .nav-link--active {
    color: #fff;
    background: rgba(255,255,255,0.18);
}

/* Charts layout */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.charts-row:nth-child(even) {
    grid-template-columns: 1fr 2fr;
}

.chart-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.chart-card--wide {
    /* inherits 2fr from parent grid already */
}

.chart-card-header {
    margin-bottom: 20px;
}

.chart-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.chart-wrapper {
    flex: 1;
    min-height: 260px;
    position: relative;
}

.chart-wrapper--sm {
    min-height: 230px;
}

/* Report filters */
.report-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.filter-group--actions {
    justify-content: flex-end;
    align-self: flex-end;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-date {
    padding: 10px 12px;
    font-size: 0.95rem;
}

/* Report summary stat boxes */
.report-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 30px;
}

.stat-box--sm {
    padding: 20px 24px;
}

.stat-box--sm .stat-content h3 {
    font-size: 1.6rem;
    margin: 0 0 4px 0;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-box--sm .stat-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Transactions table used in reports */
.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.transactions-table th {
    text-align: left;
    padding: 12px 14px;
    background: #f1f5f9;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.transactions-table td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.transactions-table tbody tr:hover {
    background: #f8fafc;
}

/* Print styles for PDF export */
@media print {
    .dashboard-nav,
    .report-filters,
    #summarySection .report-summary-grid,
    .section-actions {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .dashboard-container {
        padding: 0;
    }

    .dashboard-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Responsive analytics */
@media (max-width: 992px) {
    .charts-row,
    .charts-row:nth-child(even) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .nav-links {
        display: none;
    }
}

/* =============================================================================
   LOGS PAGE
   ============================================================================= */

.log-time {
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.log-email {
    font-size: 0.82rem;
    color: var(--text-light);
}

.log-ip {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Action badges */
.action-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}

.action-login    { background: #d1fae5; color: #065f46; }
.action-failed   { background: #fee2e2; color: #991b1b; }
.action-blocked  { background: #fef3c7; color: #92400e; }
.action-register { background: #dbeafe; color: #1e40af; }
.action-create   { background: #ede9fe; color: #5b21b6; }
.action-modify   { background: #ffedd5; color: #9a3412; }
.action-approve  { background: #d1fae5; color: #065f46; }
.action-reject   { background: #fee2e2; color: #991b1b; }
.action-other    { background: #f1f5f9; color: #475569; }

/* Log details pre block */
.log-details-pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    overflow: auto;
    max-height: 400px;
    font-size: 0.88rem;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Pagination info */
.pagination-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-right: 8px;
}

/* =============================================================================
   NOTIFICATIONS PAGE
   ============================================================================= */

/* Bell button in navbar */
.bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.bell-btn:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gradient-start, #1a1a2e);
    line-height: 1;
    box-sizing: border-box;
}

/* Notification filter tabs */
.notif-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.notif-tab {
    padding: 9px 20px;
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
    color: var(--text-dark);
    transition: var(--transition);
}

.notif-tab--active {
    background: var(--primary-color);
    color: #fff;
}

.notif-tab:hover:not(.notif-tab--active) {
    background: #e2e8f0;
}

/* Notification item cards */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.notif-item--unread {
    border-left: 4px solid var(--primary-color);
    background: #f8f9ff;
}

.notif-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon--approved  { background: #d1fae5; color: #065f46; }
.notif-icon--rejected  { background: #fee2e2; color: #991b1b; }
.notif-icon--status    { background: #dbeafe; color: #1e40af; }
.notif-icon--amount    { background: #ffedd5; color: #9a3412; }
.notif-icon--document  { background: #ede9fe; color: #5b21b6; }
.notif-icon--created   { background: #d1fae5; color: #065f46; }
.notif-icon--other     { background: #f1f5f9; color: #475569; }

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.notif-message {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.notif-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notif-time {
    font-size: 0.82rem;
    color: var(--text-light);
}

.notif-type-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.notif-type--deposit_approved  { background: #d1fae5; color: #065f46; }
.notif-type--deposit_rejected  { background: #fee2e2; color: #991b1b; }
.notif-type--status_changed    { background: #dbeafe; color: #1e40af; }
.notif-type--amount_modified   { background: #ffedd5; color: #9a3412; }
.notif-type--document_uploaded { background: #ede9fe; color: #5b21b6; }
.notif-type--transaction_created { background: #d1fae5; color: #065f46; }
.notif-type--other             { background: #f1f5f9; color: #475569; }

.notif-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.notif-btn {
    padding: 5px 12px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
    white-space: nowrap;
}

.notif-btn:hover {
    background: #f1f5f9;
}

.notif-btn--delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Empty state */
.notif-empty {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-light);
}

.notif-empty svg {
    opacity: 0.3;
    margin-bottom: 12px;
}

.notif-empty p {
    font-size: 1rem;
    margin: 0;
}

/* Load more */
.notif-load-more {
    text-align: center;
    margin-top: 16px;
}

/* =============================================================================
   MESSAGES / CHAT PAGE
   ============================================================================= */

.msg-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 64px);
    background: #f8fafc;
}

/* Sidebar */
.msg-sidebar {
    background: #fff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.msg-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.msg-sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.msg-new-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.msg-empty-sidebar {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.msg-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
}

.msg-conv-item:hover {
    background: #f8fafc;
}

.msg-conv-item--active {
    background: #eff6ff;
    border-left: 3px solid var(--primary-color);
}

.msg-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-conv-body {
    flex: 1;
    min-width: 0;
}

.msg-conv-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.msg-conv-name {
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-conv-time {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-conv-preview {
    font-size: 0.83rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.msg-conv-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Main chat area */
.msg-main {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow: hidden;
}

.msg-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.msg-action-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 24px;
}

.msg-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 28px;
    width: 200px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    color: var(--text-color);
    font-family: inherit;
    text-align: center;
}

.msg-action-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(21,45,91,0.12);
    transform: translateY(-2px);
}

.msg-action-card svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.msg-action-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.msg-action-card-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* New Escrow inline panel */
.msg-escrow-panel {
    flex: 1;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: flex-start;
    background: #f8fafc;
}

.msg-escrow-panel-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.msg-escrow-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.msg-escrow-panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.msg-escrow-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.msg-escrow-back:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

.msg-escrow-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.escrow-form-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
}

.escrow-form-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin: 0 0 14px 0;
}

.msg-thread-header {
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    gap: 12px;
    align-items: center;
}

.msg-partner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msg-partner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-partner-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.msg-partner-role {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0;
}

/* Messages thread */
.msg-thread {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg-thread-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 40px 0;
}

.msg-bubble-row {
    display: flex;
}

.msg-bubble-row--right {
    justify-content: flex-end;
}

.msg-bubble {
    max-width: 68%;
    padding: 11px 16px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.msg-bubble--mine {
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg-bubble--theirs {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.msg-bubble-text {
    margin: 0 0 4px 0;
    word-break: break-word;
}

.msg-bubble-time {
    font-size: 0.72rem;
    opacity: 0.65;
    display: block;
    text-align: right;
}

.msg-bubble--theirs .msg-bubble-time {
    text-align: left;
}

/* Compose row */
.msg-compose {
    padding: 14px 24px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    gap: 10px;
    align-items: flex-end;
}

.msg-input {
    flex: 1;
    resize: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.93rem;
    font-family: inherit;
    line-height: 1.4;
    background: #f8fafc;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.msg-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.msg-send-btn {
    padding: 10px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Contact selection */
.msg-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.msg-contact-item:hover {
    background: #eff6ff;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .msg-layout {
        grid-template-columns: 1fr;
    }

    .msg-sidebar {
        display: none;
    }
}

/* =============================================================================
   FADE-IN ANIMATIONS
   ============================================================================= */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fade-in {
    animation: fadeInUp 0.25s ease forwards;
}

/* Stagger table rows */
tbody tr.fade-in:nth-child(1)  { animation-delay: 0ms; }
tbody tr.fade-in:nth-child(2)  { animation-delay: 30ms; }
tbody tr.fade-in:nth-child(3)  { animation-delay: 60ms; }
tbody tr.fade-in:nth-child(4)  { animation-delay: 90ms; }
tbody tr.fade-in:nth-child(5)  { animation-delay: 120ms; }
tbody tr.fade-in:nth-child(6)  { animation-delay: 150ms; }
tbody tr.fade-in:nth-child(7)  { animation-delay: 180ms; }
tbody tr.fade-in:nth-child(8)  { animation-delay: 210ms; }
tbody tr.fade-in:nth-child(9)  { animation-delay: 240ms; }
tbody tr.fade-in:nth-child(10) { animation-delay: 270ms; }

/* Page-level fade in */
.page-main {
    animation: fadeInUp 0.3s ease forwards;
}

/* =============================================================================
   SKELETON LOADING
   ============================================================================= */

@keyframes skeleton-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #e8edf2 25%, #f4f6f9 50%, #e8edf2 75%);
    background-size: 600px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 6px;
    display: inline-block;
}

.skeleton-row td {
    padding: 14px 16px;
}

.skeleton-cell {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8edf2 25%, #f4f6f9 50%, #e8edf2 75%);
    background-size: 600px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-cell--short  { width: 60px; }
.skeleton-cell--medium { width: 120px; }
.skeleton-cell--long   { width: 180px; }
.skeleton-cell--full   { width: 100%; }

/* =============================================================================
   EMPTY STATES (improved)
   ============================================================================= */

.empty-state-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    color: var(--text-light);
    text-align: center;
}

.empty-state-full svg {
    opacity: 0.25;
    margin-bottom: 16px;
}

.empty-state-full .empty-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.empty-state-full .empty-sub {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =============================================================================
   ERROR STATES
   ============================================================================= */

.error-state-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.error-state-full svg {
    opacity: 0.6;
    margin-bottom: 16px;
    color: var(--error-color);
}

.error-state-full .error-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--error-color);
    margin-bottom: 6px;
}

.error-state-full .error-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-retry {
    background: none;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 7px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-retry:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =============================================================================
   MICRO-INTERACTIONS
   ============================================================================= */

/* Button click feedback */
.btn-primary:active,
.btn-danger:active {
    transform: scale(0.97) !important;
    box-shadow: none !important;
}

.btn-secondary:active,
.btn-sm:active {
    transform: scale(0.97) !important;
}

/* Action card click */
.action-card:active {
    transform: scale(0.97) !important;
}

/* Approval item hover lift */
.approval-item {
    transition: box-shadow 0.2s, transform 0.2s;
}

.approval-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Table row hover */
.transactions-table tbody tr:not(.skeleton-row),
#logsTableBody tr:not(.skeleton-row) {
    transition: background-color 0.15s;
}

.transactions-table tbody tr:not(.skeleton-row):hover,
#logsTableBody tr:not(.skeleton-row):hover {
    background-color: #f8faff;
}

/* =============================================================================
   2FA SETUP STYLES
   ============================================================================= */

.twofa-setup-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 12px;
}

.twofa-qr {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.twofa-qr img {
    width: 160px;
    height: 160px;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    flex-shrink: 0;
}

.twofa-instructions {
    flex: 1;
    min-width: 200px;
}

.twofa-instructions ol {
    padding-left: 20px;
    margin: 8px 0 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.twofa-secret-display {
    font-family: 'Courier New', monospace;
    background: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    word-break: break-all;
    display: inline-block;
    margin-bottom: 12px;
}

.twofa-verify-input {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.twofa-verify-input input {
    width: 140px;
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 6px;
    font-weight: 600;
    padding: 10px 14px;
}

.twofa-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.twofa-status-badge--on  { background: #d1fae5; color: #065f46; }
.twofa-status-badge--off { background: #f1f5f9; color: #64748b; }

/* Login 2FA step */
.twofa-step {
    display: none;
}

.twofa-code-input {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 10px;
    font-weight: 700;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.twofa-code-input:focus {
    border-color: var(--primary-color);
}
