/* AK Travels - Neocities Static Web Application Stylesheet */

:root {
    --navy-dark: #0e1a38;
    --navy-blue: #162447;
    --navy-light: #1f3460;
    --gold-accent: #f59e0b;
    --gold-light: #fef3c7;
    --bg-main: #f4f6f9;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: #2b2f38;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Navy Utility Classes */
.bg-navy {
    background-color: var(--navy-dark) !important;
}

.text-navy {
    color: var(--navy-dark) !important;
}

.btn-navy {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #ffffff;
    transition: all 0.2s ease;
}

.btn-navy:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: #ffffff;
}

.hover-primary:hover {
    color: #0d6efd !important;
}

/* Brand Navbar */
.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.tracking-wide {
    letter-spacing: 0.08em;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 10px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07) !important;
}

.stat-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Avatars & Thumbnails */
.avatar-placeholder {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex-shrink: 0;
}

.candidate-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.profile-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.profile-photo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 8px;
}

/* Photo Upload Preview Box */
.photo-preview-box {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

/* Status Badges */
.status-badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Cards & Tables */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 0.78rem;
    background-color: #f8fafc;
}

.table td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* Single Page Section View Management */
.app-view {
    display: none;
}

.app-view.active {
    display: block;
}

/* Login Portal Styles */
.login-view-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #09132b 0%, #112046 50%, #1a3266 100%);
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-top: 4px solid var(--gold-accent);
    overflow: hidden;
}

.login-header {
    background: #0e1a38;
    color: #ffffff;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.login-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.password-toggle-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    color: #6c757d;
}

.password-toggle-btn:hover {
    color: var(--navy-dark);
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.shake-animation {
    animation: shakeError 0.4s ease-in-out;
}

/* ==================== SAVE BUTTON IN-BUTTON ANIMATION ==================== */
@keyframes btnShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes btnPulseInner {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
    }
    50% {
        transform: scale(0.97);
        box-shadow: 0 2px 6px rgba(13, 110, 253, 0.5);
    }
}

@keyframes iconCheckPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animated state contained strictly within the Save button */
.btn-save-animating {
    background: linear-gradient(90deg, #0d6efd 0%, #3b82f6 50%, #0d6efd 100%) !important;
    background-size: 200% 100% !important;
    animation: btnShimmer 1.4s infinite linear, btnPulseInner 1.1s infinite ease-in-out !important;
    border-color: #0d6efd !important;
    position: relative;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.btn-save-animating .btn-spinner-icon {
    display: inline-block;
    vertical-align: -0.125em;
    animation: spinner-border 0.75s linear infinite;
}

.btn-save-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(25, 135, 84, 0.6) !important;
    transform: scale(1.02);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-save-success .btn-check-icon {
    display: inline-block;
    animation: iconCheckPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Payment Section Styling */
.payment-stat-box {
    border-radius: 8px;
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.payment-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Print Optimization */
@media print {
    body {
        background-color: #ffffff !important;
        font-size: 12pt;
    }

    .navbar, .footer, .btn, .d-print-none, .alert-container, #dashboardView, #formView, #loginView {
        display: none !important;
    }

    #detailView {
        display: block !important;
    }

    .printable-dossier {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }

    .card-header.bg-navy {
        background-color: #f1f5f9 !important;
        color: #000000 !important;
        border-bottom: 2px solid #000000 !important;
    }

    .card-header.bg-navy h3,
    .card-header.bg-navy span,
    .card-header.bg-navy div {
        color: #000000 !important;
    }

    .payment-summary-box {
        border: 1px solid #000000 !important;
        background-color: #f8fafc !important;
        page-break-inside: avoid;
    }

    .payment-stat-box {
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
    }
}

/* ==================== MULTI-FORMAT DOCUMENT DOWNLOAD STYLES ==================== */
.btn-xs {
    padding: 0.22rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.25;
    border-radius: 4px;
    font-weight: 600;
}

.shadow-xs {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.doc-action-group .dropdown-menu {
    min-width: 240px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.doc-action-group .dropdown-item {
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.doc-action-group .dropdown-item:hover {
    background-color: #f1f5f9;
}

#docPreviewModal .modal-body {
    background-color: #f8fafc;
}

#docPreviewImg {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}


