/* ==========================================================================
   1. GLOBAL RESET & RADIAL DESIGN SYSTEM
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #030712;
    /* Soft premium deep blue gradients across the background */
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(17, 24, 39, 0.2) 0px, transparent 50%);
    color: #f3f4f6;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. NAV BAR LAYOUT (GLASSMORPHIC FIXED HEADER)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px; 
    background: rgba(5, 13, 30, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 26px; 
    font-weight: 800;
    letter-spacing: -0.75px;
    color: #ffffff;
}

.logo span {
    color: #3b82f6;
}

/* Fixed: Turned into a vibrant blue interactive brand button */
.back-btn {
    text-decoration: none;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 20px; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.back-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   3. SYSTEM COMPONENTS & CONTAINER CARDS
   ========================================================================== */
.content {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px 70px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
    color: #60a5fa;
}

p {
    font-size: 16px;
    color: #9ca3af;
}

/* High-End Frosted Glass Container Panels */
.article-card {
    padding: 40px;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   4. CENTRALIZED BOX FOR LOGIN & MANAGEMENT FORMS
   ========================================================================== */
.portal-card {
    max-width: 500px;
    margin: 40px auto;
    padding: 45px 40px;
}

.portal-card h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 28px;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.input-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.25px;
}

.input-field-group input {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    outline: none;
}

.input-field-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(10, 15, 30, 0.8);
}

/* Main Action Submission Button Styling */
.portal-submit-btn, .doc-download-action-btn {
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.portal-submit-btn:hover, .doc-download-action-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.portal-submit-btn:active, .doc-download-action-btn:active {
    transform: translateY(0);
}

.portal-error-msg {
    color: #f87171;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    text-align: center;
}

/* ==========================================================================
   5. DASHBOARD UI & ATTENDANCE TRACKER ENGINE
   ========================================================================== */
/* Fixed: Aligns items natively along a flat centralized horizon plane line */
.dashboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 24px;
    margin-bottom: 20px;
    width: 100%;
}

/* Fixed: Styled neatly to fit perfectly beside headings without line warping */
.portal-logout-btn {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.portal-logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.portal-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 32px 0;
}

.dashboard-inner-section { 
    margin-top: 20px; 
}

.attendance-control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(10, 15, 30, 0.4);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.attendance-action-btn {
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attendance-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.attendance-status-text {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.attendance-status-text span { 
    color: #f87171; 
    font-weight: 700; 
}

/* ==========================================================================
   6. PREMIUM CLOUD PAYSLIP DROP-DOWN DESIGN
   ========================================================================== */
.payslip-selector-container {
    display: flex;
    gap: 16px;
    margin: 24px 0 20px 0;
    width: 100%;
}

.payslip-dropdown {
    flex: 1;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    /* Clean modern SVG dropdown down-arrow asset override icon */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.payslip-dropdown:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(10, 15, 30, 0.8);
}

.payslip-dropdown option {
    background-color: #0f172a;
    color: #ffffff;
}

.doc-download-action-btn {
    text-align: center;
    text-decoration: none;
}

/* ==========================================================================
   7. SCREEN MEDIA RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media screen and (max-width: 768px) {
    .navbar { 
        padding: 14px 20px; 
    }
    .logo { 
        font-size: 22px; 
    }
    .back-btn { 
        padding: 8px 14px; 
        font-size: 13px; 
    }
    h1 { 
        font-size: 28px; 
    }
    .article-card { 
        padding: 24px; 
        border-radius: 16px; 
    }
    .portal-card { 
        padding: 35px 20px; 
    }
    .portal-card h1 { 
        font-size: 26px; 
    }
    .dashboard-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .portal-logout-btn {
        width: 100%;
        text-align: center;
    }
    .payslip-selector-container {
        flex-direction: column;
        gap: 12px;
    }
    .attendance-control-panel {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 14px;
        padding: 24px 16px;
    }
    .attendance-action-btn {
        width: 100%;
    }
}