/* Color Palette */
:root {
    --navy: #1E3A5F;
    --teal: #2A9D8F;
    --orange: #F4A261;
    --bg-light: #F8F9FA;
    --text-dark: #495057;
    --white: #FFFFFF;
    --border: #E0E4E8;
    --light-teal: #E8F5F3;
    --error: #D32F2F;
}

/* Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--navy);
    font-weight: 600;
}

.hidden { display: none !important; }

/* -------------------------------------
   NAVIGATION HEADERS
-------------------------------------- */
.top-nav {
    background-color: var(--navy);
    color: var(--white);
    padding: 0 30px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.nav-user .divider { opacity: 0.5; }
.logout-trigger { color: var(--white); text-decoration: none; }
.logout-trigger:hover { text-decoration: underline; }

/* -------------------------------------
   FORMS & INPUTS (Shared)
-------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #6c757d;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--white);
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--light-teal);
}

/* Password Toggle Specifics */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 45px; }

.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.eye-icon:hover { opacity: 1; }

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
    min-height: 16px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary { background-color: var(--teal); color: var(--white); }
.btn-primary:hover { background-color: #238579; }

.btn-outline { background-color: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-outline:hover { background-color: var(--light-teal); }

.btn-block { width: 100%; }

/* -------------------------------------
   VIEW 1: LOGIN 
-------------------------------------- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.shield-logo {
    width: 64px;
    height: 64px;
    background-color: var(--navy);
    color: var(--white);
    font-size: 32px;
    font-family: 'Poppins', serif;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    clip-path: polygon(50% 100%, 100% 80%, 100% 0, 0 0, 0 80%);
}

.login-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.login-card .subtitle { color: #6c757d; font-size: 0.9rem; margin-bottom: 30px; }
.login-card form { text-align: left; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.forgot-pwd { color: var(--teal); text-decoration: none; }

.test-credentials {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: #6c757d;
}

.test-credentials code {
    display: block;
    background: var(--bg-light);
    padding: 8px;
    margin-top: 8px;
    border-radius: 4px;
    color: var(--navy);
}

.login-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    padding-bottom: 20px;
}

/* -------------------------------------
   VIEW 2 & 3: DESKTOP DASHBOARD LAYOUT
-------------------------------------- */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item.active {
    color: var(--teal);
    background-color: var(--light-teal);
    border-left-color: var(--teal);
}

.main-content {
    flex: 1;
    padding: 40px;
}

.content-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.content-card.form-container { max-width: 700px; }
.content-card.full-width { max-width: 100%; }

.content-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.content-card .subtitle { color: #6c757d; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }

/* Priority Segmented Control */
.priority-selector {
    display: flex;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.priority-btn {
    flex: 1;
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: all 0.2s;
}

.priority-btn:last-child { border-right: none; }
.priority-btn.active { background-color: var(--white); font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.priority-btn.active.high { background-color: var(--orange); color: var(--white); }

.form-actions { display: flex; gap: 16px; margin-top: 30px; }
.success-box { background: #E8F5E9; color: #2E7D32; padding: 16px; border-radius: 6px; margin-top: 20px; font-weight: 500;}


/* -------------------------------------
   TECH JOBS QUEUE
-------------------------------------- */
.tech-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.desktop-tabs {
    display: flex;
    gap: 12px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--teal);
    color: var(--white);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Desktop horizontal job card */
.job-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.2s;
    cursor: pointer;
}
.job-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.job-card.high-priority { border-left-color: var(--orange); }

.card-icon {
    width: 54px;
    height: 54px;
    background: var(--light-teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
}
.job-card.high-priority .card-icon { background: #FDF3E9; }

.card-body { flex: 1; }
.card-title { font-weight: 600; font-family: 'Poppins', sans-serif; font-size: 1.1rem; margin-bottom: 6px; }

.card-details-flex {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #6c757d;
}

.card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--teal);
    text-transform: uppercase;
}
.badge.high { background: var(--orange); }

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
}
.status-text.complete-text { color: var(--teal); }

/* -------------------------------------
   RESPONSIVE MEDIA QUERIES
-------------------------------------- */
@media screen and (max-width: 768px) {
    /* Top Nav Adjustments */
    .top-nav { padding: 0 15px; }
    .desktop-only { display: none; }
    
    /* Layout Adjustments */
    .dashboard-layout { flex-direction: column; }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px 0;
        overflow-x: auto;
    }
    
    .side-nav {
        display: flex;
        flex-direction: row;
        width: max-content;
    }
    
    .nav-item { padding: 12px 20px; border-left: none; border-bottom: 3px solid transparent; }
    .nav-item.active { border-left: none; border-bottom-color: var(--teal); background: transparent;}

    .main-content { padding: 20px; }
    .content-card { padding: 20px; }
    
    .tech-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .priority-selector { width: 100%; }

    /* Job Card Vertical Stacking for Mobile */
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    
    .card-actions {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .card-details-flex {
        flex-direction: column;
        gap: 6px;
    }
}
    /* Placeholder Screen Styling */
    .text-center { text-align: center; }
    .empty-state-text { 
    color: var(--text-muted); 
    padding: 60px 20px; 
    font-style: italic; 
}