/* YUVA Bharat - Standalone Internship Dashboard Design System */

:root {
    --primary-color: #000080;
    --accent-saffron: #ff9933;
    --accent-green: #138808;
    --saffron-primary: #FF9933;
    --saffron-dark: #E67300;
    --green-primary: #138808;
    --green-dark: #0F6606;
    --bg-light: #f8fafc;
    --bg-base: #FAFAF9;
    --bg-elevated: #FFFFFF;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --card-bg: rgba(255, 255, 255, 0.88);
    --border-color: #e2e8f0;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --color-error: #ef4444;
}

/* Scrollbar Gutter Auto */
html {
    scrollbar-gutter: auto;
    overflow-y: auto;
}

/* Global Body Layout Override */
body {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: #f8fafc !important;
    font-family: var(--font-sans);
    color: var(--text-primary);
    overflow-x: hidden !important;
}

/* Portal Navbar Header - Locked Position Fixed */
.portal-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 74px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 32px;
    backdrop-filter: blur(12px);
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 1000 !important;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-sidebar-toggle {
    display: none !important;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block !important;
    opacity: 1 !important;
}

@media (min-width: 901px) {
    .mobile-sidebar-toggle,
    .sidebar-backdrop,
    .sidebar-backdrop.active {
        display: none !important;
    }
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-title-desktop {
    display: block !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: var(--navy-chakra, #000080) !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.brand-subtitle-desktop {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--saffron-dark, #d97706) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.brand-title-mobile,
.brand-subtitle-mobile {
    display: none !important;
}

/* Status Pill & User Avatar */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 128, 0.2);
}

/* Auth Card Layout */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 28px 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 0, 128, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.auth-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.input-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.input-control:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.12);
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: #000066;
    box-shadow: 0 4px 12px rgba(0, 0, 128, 0.25);
}

.portal-main-wrapper {
    width: 100%;
    margin-top: 74px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    position: relative;
}

/* SaaS Dashboard Container & Fixed Left Sidebar System */
.dash-container {
    display: block;
    width: 100%;
    min-height: calc(100vh - 74px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.portal-page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.dash-sidebar {
    position: fixed !important;
    top: 74px !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    height: calc(100vh - 74px) !important;
    background: #ffffff !important;
    border-right: 1px solid var(--border-color);
    padding: 20px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 900 !important;
    overflow-y: auto;
}

.dash-sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light, #e2e8f0);
}

.dash-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    width: 100%;
    box-sizing: border-box;
}

.dash-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--saffron-primary, #ff9933);
    color: #ffffff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.dash-profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name-heading,
.coord-profile-heading {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role-sub,
.coord-profile-sub {
    font-size: 0.6rem;
    color: var(--saffron-primary, #ff9933);
    font-weight: 600;
    margin: 1px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.profile-college-sub {
    font-size: 0.58rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.dash-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.dash-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.dash-menu-item i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.dash-menu-item:hover {
    color: var(--primary-color);
    background: #f1f5f9;
}

.dash-menu-item:hover i {
    color: var(--primary-color);
}

.dash-menu-item.active {
    color: var(--saffron-dark, #d97706);
    background: rgba(255, 153, 51, 0.12);
    font-weight: 700;
    border-left: 3.5px solid var(--saffron-primary);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.dash-menu-item.active i {
    color: var(--saffron-primary);
}

.sidebar-logout-item {
    color: var(--color-error);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    border-radius: 10px;
    padding-top: 12px;
}

.sidebar-logout-item i {
    color: var(--color-error);
}

.sidebar-logout-item:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-error);
}

.dash-main {
    margin-left: 260px;
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    width: calc(100% - 260px);
    box-sizing: border-box;
}

.dash-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.dash-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
    color: var(--text-primary);
}

/* Unified Filter Control Inputs */
.filter-control-wrap {
    position: relative;
    width: 100%;
}

.filter-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

/* Prevent FOUC: Instantly hide native select elements before JS runs */
#dashboard-view select,
.dash-main select,
.modal select,
select.filter-select-element,
select.coord-select-control,
select.native-select {
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Self-Contained Dashboard Custom Select Component */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
}

.custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
    background: var(--bg-elevated, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-lg, 10px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 13px;
    font-family: inherit;
    user-select: none;
    box-sizing: border-box;
}

.custom-select:hover {
    border-color: var(--saffron-primary, #ff9933);
}

.custom-select .select-trigger {
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary, #0f172a);
    min-height: 40px;
    box-sizing: border-box;
    font-weight: 500;
}

.custom-select .select-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select .select-trigger span.placeholder-active {
    color: var(--text-muted, #64748b);
    opacity: 0.75;
}

.custom-select .select-trigger i {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    color: var(--text-muted, #64748b);
    margin-left: 10px;
}

.custom-select.active {
    border-color: var(--saffron-primary, #ff9933) !important;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
}

.custom-select.active .select-trigger i {
    transform: rotate(180deg);
}

.custom-select .select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-lg, 10px);
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    padding: 6px 0;
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select .select-option {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary, #0f172a);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select .select-option:hover {
    background: rgba(255, 153, 51, 0.08);
    color: var(--saffron-dark, #d97706);
}

.custom-select .select-option.selected {
    background: rgba(255, 153, 51, 0.12);
    color: var(--saffron-dark, #d97706);
    font-weight: 700;
}

.custom-select .select-option.disabled-option {
    color: var(--text-muted, #94a3b8);
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent !important;
}

.filter-input-element,
.filter-select-element {
    width: 100%;
    height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.filter-input-element {
    padding-left: 36px;
}

.filter-input-element:focus,
.filter-select-element:focus {
    border-color: var(--saffron-primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
    background: #ffffff;
}

/* Modernized Login View Container */
.login-overlay {
    max-width: 440px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 15px rgba(255, 153, 51, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.login-overlay:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 20px rgba(255, 153, 51, 0.1);
    transform: translateY(-2px);
}

.login-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.15) 0%, rgba(0, 0, 128, 0.08) 100%);
    border: 1px solid rgba(255, 153, 51, 0.25);
    color: var(--saffron-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.1);
}

.login-overlay h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.login-overlay p.login-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.login-form-group {
    margin-bottom: 22px;
    position: relative;
}

.login-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-primary);
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-input-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s ease;
}

.login-input-control:focus {
    border-color: var(--saffron-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.12);
}

.login-input-wrap:focus-within .login-input-icon {
    color: var(--saffron-primary);
}

.pwd-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.pwd-toggle-btn:hover {
    color: var(--saffron-primary);
}

.login-submit-btn {
    width: 100%;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 153, 51, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 153, 51, 0.45);
    background: linear-gradient(135deg, #ff8811 0%, #cc6600 100%);
}

/* Certificate Styling */
.cert-mock {
    border: 10px double var(--saffron-primary);
    background: #fffdf9;
    padding: 40px;
    text-align: center;
    font-family: 'Times New Roman', serif;
    color: #333;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.cert-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--saffron-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cert-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--green-dark);
    border-bottom: 2px solid var(--saffron-primary);
    display: inline-block;
    padding: 0 20px 5px;
    margin: 10px 0;
}

/* SEVA Phase Timeline Component */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.timeline-card {
    min-width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-card.completed {
    border-left: 4px solid var(--green-primary);
    background: rgba(16, 185, 129, 0.03);
}

.timeline-card.ongoing {
    border-left: 4px solid var(--saffron-primary);
    background: rgba(249, 115, 22, 0.03);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
}

.timeline-card.pending {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.03);
}

.timeline-card.locked {
    border-left: 4px solid #94a3b8;
    opacity: 0.6;
}

.timeline-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-badge.completed {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green-primary);
}

.timeline-badge.ongoing {
    background: rgba(249, 115, 22, 0.12);
    color: var(--saffron-primary);
}

.timeline-badge.pending {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.timeline-badge.locked {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

/* Dashboard Clean Helpers */
.portal-main-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    position: relative;
}

.portal-page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 12px 24px;
    box-sizing: border-box;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-profile-section {
    display: none;
    align-items: center;
    gap: 12px;
}

.status-dot-sm {
    font-size: 7px;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.header-logout-btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-logout-icon {
    color: var(--color-error, #ef4444);
}

.role-switcher-container {
    display: flex;
    background: var(--bg-light, #f8fafc);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    margin-bottom: 24px;
}

.role-tab-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-secondary, #475569);
}

.role-tab-btn.active {
    background: #ffffff;
    color: var(--primary-color, #000080);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.form-group-spaced {
    margin-bottom: 28px;
}

.password-input-wrapper {
    position: relative;
}

.password-input-field {
    padding-right: 42px;
}

.password-toggle-button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.full-submit-btn {
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

.auth-status-message {
    margin-top: 16px;
    text-align: center;
    color: #ef4444;
    font-weight: 600;
    font-size: 13px;
}

.auth-footer-notice {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-notice-icon {
    color: var(--accent-saffron, #ff9933);
    margin-right: 4px;
}

.auth-notice-link {
    color: var(--primary-color, #000080);
    font-weight: 600;
    text-decoration: none;
}

.reset-icon-accent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 128, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--green-primary);
}

.reset-submit-green {
    background: linear-gradient(135deg, var(--green-primary) 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.profile-name-heading {
    margin: 8px 0 4px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.profile-role-sub {
    font-size: 0.8rem;
    color: var(--saffron-primary);
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.profile-college-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.sidebar-logout-item {
    color: var(--color-error);
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
    border-radius: 0;
    padding-top: 15px;
}

.stat-green-text {
    color: var(--green-primary);
}

.stat-status-text {
    font-size: 1.25rem;
    line-height: 1.8;
    text-transform: uppercase;
}

.section-box-styled {
    margin-top: 30px;
    border: 1px solid var(--border-light);
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-base);
}

.section-title-clean {
    border-bottom: none;
    margin-bottom: 10px;
}

.section-title-bold {
    border-bottom: none;
    margin-bottom: 15px;
    font-weight: 700;
}

.icon-saffron {
    color: var(--saffron-primary);
    margin-right: 8px;
}

.timeline-flex-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    position: relative;
    margin-top: 20px;
    flex-wrap: wrap;
}

.table-padding-zero {
    padding: 0;
}

.table-scroll-x {
    padding: 0;
    overflow-x: auto;
}

.clock-widget-box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 128, 0.03);
}

.clock-status-wrap {
    margin-bottom: 24px;
}

.clock-badge-large {
    font-size: 13px !important;
    padding: 6px 14px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Dynamic glowing status pulse dot */
.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #64748b;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-pulse-dot.active {
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.clock-stopwatch-display {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color, #000080);
    letter-spacing: 2px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 28px;
    display: none;
    width: fit-content;
    margin: 0 auto 24px auto;
    box-shadow: inset 0 2px 6px rgba(0, 0, 128, 0.04);
}

.clock-btn-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Modern pill buttons */
.checkin-btn {
    border: none;
    border-radius: 50px !important;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-clock-action {
    padding: 14px 36px;
    background: linear-gradient(135deg, #000080, #1e1e9c);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 128, 0.22);
}

.btn-clock-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 128, 0.32);
}

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

.btn-clock-danger {
    padding: 14px 36px;
    display: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.22);
}

.btn-clock-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.32);
}

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


.history-heading-wrap {
    margin-top: 30px;
}

.table-font-sm {
    font-size: 0.9rem;
    width: 100%;
}

.report-form-box {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 30px;
}

.textarea-control {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--bg-base);
    color: var(--text-primary);
    box-sizing: border-box;
}

.btn-top-spaced {
    margin-top: 15px;
}

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

.perk-card-padded {
    padding: 20px;
}

.pdf-icon-red {
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 12px;
}

.card-title-tight {
    margin: 0 0 8px 0;
}

.download-link-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    display: inline-block;
}

.cert-not-ready-box {
    text-align: center;
    padding: 40px 0;
}

.cert-shield-icon {
    font-size: 4rem;
    color: var(--border-medium);
    margin-bottom: 16px;
}

.cert-muted-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cert-text-tight {
    margin-bottom: 20px;
}

.cert-verify-id {
    font-size: 0.85rem;
    color: #555;
}

.coord-avatar-accent {
    border: 3px solid var(--saffron-primary);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.coord-profile-heading {
    margin: 10px 0 2px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.coord-profile-sub {
    font-size: 0.78rem;
    color: var(--saffron-primary);
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coord-active-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-primary);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
}

.coord-kpi-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
}

.kpi-card-saffron {
    border-left: 4px solid var(--saffron-primary);
}

.kpi-card-green {
    border-left: 4px solid var(--green-primary);
}

.kpi-card-blue {
    border-left: 4px solid #3b82f6;
}

.kpi-card-purple {
    border-left: 4px solid #8b5cf6;
}

.kpi-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.kpi-icon-saffron {
    background: rgba(249, 115, 22, 0.1);
    color: var(--saffron-primary);
}

.kpi-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-primary);
}

.kpi-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.kpi-icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.kpi-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 1px;
}

.filter-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    background: var(--bg-base);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.filter-label-text {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.coord-form-box {
    background: var(--bg-base);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.coord-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.coord-input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.coord-select-control,
.coord-input-control {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-sizing: border-box;
}

/* ===== Advanced Task Assignment Section ===== */
.task-section-header {
    margin-bottom: 20px;
}

.task-section-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.task-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9933 0%, #e67e22 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.25);
}

.task-section-subtitle {
    margin: 3px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
    font-weight: 400;
}

.task-assign-card {
    background: var(--bg-base, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 14px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.task-assign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9933, #e67e22, #f59e0b);
}

.task-assign-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.task-assign-card-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.task-assign-step-badge {
    background: linear-gradient(135deg, #ff9933, #e67e22);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.task-form-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.task-form-field {
    margin-bottom: 16px;
}

.task-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.task-form-label i {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.task-form-label .req {
    color: #ef4444;
    font-weight: 700;
}

.task-optional-tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 2px;
}

.task-form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border-light, #e2e8f0);
    background: var(--bg-elevated, #f8fafc);
    color: var(--text-primary, #1e293b);
    font-size: 0.88rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    height: 42px;
    /* Set exact height for layout consistency */
}

/* Custom layout & design for date inputs */
input[type="date"].task-form-input {
    position: relative;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
}

/* Restyle the native calendar picker icon to match the premium theme */
input[type="date"].task-form-input::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 2;
}

/* Add custom calendar icon pointer design on the right */
input[type="date"].task-form-input::after {
    content: '\f133';
    /* FontAwesome Calendar-alt icon code */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--saffron-primary, #ff9933);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.task-form-input:focus {
    border-color: var(--saffron-primary, #ff9933);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.12);
}

.task-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border-light, #e2e8f0);
    background: var(--bg-elevated, #f8fafc);
    color: var(--text-primary, #1e293b);
    font-size: 0.88rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.task-form-textarea:focus {
    border-color: var(--saffron-primary, #ff9933);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.12);
}

/* Priority Pills */
.task-priority-selector {
    display: flex;
    gap: 6px;
}

.priority-pill {
    flex: 1;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1.5px solid var(--border-light, #e2e8f0);
    background: var(--bg-elevated, #f8fafc);
    color: var(--text-muted, #64748b);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.priority-pill i {
    font-size: 10px;
}

.priority-pill:hover {
    transform: translateY(-1px);
}

.priority-pill.priority-low.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
}

.priority-pill.priority-medium.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    color: #d97706;
}

.priority-pill.priority-high.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
}

/* Task Form Actions */
.task-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light, #e2e8f0);
}

.task-btn-reset {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1.5px solid var(--border-light, #e2e8f0);
    background: transparent;
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.task-btn-reset:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.task-btn-submit {
    padding: 10px 28px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #ff9933 0%, #e67e22 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(255, 153, 51, 0.3);
    font-family: inherit;
}

.task-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

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

.coord-log-bar-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--bg-elevated, #f8fafc);
    border: 1.5px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.coord-log-select-field {
    flex: 1;
    max-width: 320px;
}

.coord-log-hours-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-base, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.coord-hours-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 153, 51, 0.1);
    color: var(--saffron-primary, #ff9933);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.coord-hours-data {
    display: flex;
    flex-direction: column;
}

.coord-hours-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary, #475569);
    letter-spacing: 0.3px;
}

.coord-hours-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--saffron-primary, #ff9933);
}

.modal-backdrop-styled {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content-styled {
    background-color: var(--bg-elevated);
    margin: auto;
    padding: 28px;
    border: 1px solid var(--border-light);
    width: 90%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title-text {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close-icon {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-btn-cancel {
    background: #cbd5e1;
    color: #1e293b;
}

.modal-btn-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== Skeleton Loading Animation ===== */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-row td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.skeleton-line {
    height: 13px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 35%, #f1f5f9 70%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.6s infinite ease-in-out !important;
}

.skeleton-line.short {
    width: 55%;
}

.skeleton-line.medium {
    width: 75%;
}

.skeleton-line.long {
    width: 90%;
}

.skeleton-line.sm {
    height: 10px;
    margin-top: 6px;
}

.skeleton-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 35%, #f1f5f9 70%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.6s infinite ease-in-out !important;
    display: inline-block;
}

.skeleton-cell-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skeleton-btn {
    display: inline-block;
    height: 28px;
    width: 80px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 600px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Drag & Drop File Upload Area Styling */
.file-upload-drag-area {
    border: 2px dashed var(--border-light, #e2e8f0);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    background: var(--bg-elevated, #f8fafc);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
    box-sizing: border-box;
}

.file-upload-drag-area:hover,
.file-upload-drag-area.dragover {
    border-color: var(--primary-color, #000080);
    background: rgba(0, 0, 128, 0.02);
}

.file-upload-drag-area .upload-icon {
    font-size: 26px;
    color: var(--text-muted, #94a3b8);
    transition: color 0.2s;
}

.file-upload-drag-area:hover .upload-icon {
    color: var(--primary-color, #000080);
}

.file-upload-drag-area .upload-text {
    font-size: 0.82rem;
    color: var(--text-secondary, #475569);
    font-weight: 500;
}

.file-upload-drag-area .upload-browse {
    color: var(--primary-color, #000080);
    font-weight: 700;
    text-decoration: underline;
}

/* Attendance Table Style Classes */
.status-active-now {
    color: var(--green-primary, #10b981);
    font-weight: 700;
}

.session-in-progress {
    color: var(--text-muted, #94a3b8);
    font-style: italic;
}

.table-bold-cell {
    font-weight: 600;
}

.table-hours-cell {
    font-weight: 700;
    color: var(--saffron-primary, #ff9933);
}

.table-summary-cell {
    font-size: 0.85rem;
    max-width: 350px;
    white-space: normal;
    word-break: break-word;
}

.table-empty-message {
    text-align: center !important;
    padding: 36px 20px;
    color: var(--text-muted, #64748b);
    font-size: 13px;
    vertical-align: middle;
}

.table-empty-icon {
    font-size: 28px;
    display: block;
    margin: 0 auto 10px auto;
    opacity: 0.6;
    color: var(--text-muted, #94a3b8);
}

.table-error-message {
    text-align: center;
    padding: 15px;
    color: var(--color-error, #ef4444);
    font-weight: 600;
}

/* ===== CUSTOM MODAL SYSTEM ===== */
.custom-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
    padding: 16px !important;
}

.custom-modal-content {
    background: var(--bg-elevated, #ffffff) !important;
    border: 1px solid var(--border-light, #e2e8f0) !important;
    border-radius: var(--radius-2xl, 20px) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
    position: relative !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: auto !important;
}

/* ===== MODERN ROUNDED TABLE & BADGE DESIGN SYSTEM ===== */
.table-container,
.table-scroll-x {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid var(--border-light, #e2e8f0) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
    background: var(--bg-elevated, #ffffff) !important;
}

/* Custom sleek horizontal scrollbar styling for tables */
.table-container::-webkit-scrollbar,
.table-scroll-x::-webkit-scrollbar {
    height: 4px !important;
}

.table-container::-webkit-scrollbar-track,
.table-scroll-x::-webkit-scrollbar-track {
    background: transparent !important;
}

.table-container::-webkit-scrollbar-thumb,
.table-scroll-x::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.7) !important;
    border-radius: 10px !important;
}

.table-container::-webkit-scrollbar-thumb:hover,
.table-scroll-x::-webkit-scrollbar-thumb:hover {
    background: var(--saffron-primary, #ff9933) !important;
}

.openings-table {
    width: 100% !important;
    min-width: 520px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
}

.openings-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
}

.dark-mode .openings-table th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.openings-table td {
    padding: 10px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    font-size: 0.8rem !important;
}

.dark-mode .openings-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.openings-table tr:last-child td {
    border-bottom: none !important;
}

/* Modern Rounded Status Badges & Priority Pills */
.status-badge,
.priority-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

.status-badge.closed,
.priority-high-badge {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.status-badge.open,
.priority-low-badge {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #16a34a !important;
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
}

.status-badge.pending,
.priority-medium-badge {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.task-assign-card {
    border-radius: 20px !important;
    border: 1px solid var(--border-light, #e2e8f0) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04) !important;
    padding: 24px !important;
}

/* ==========================================================================
   ADVANCED MODERN INTERN OVERVIEW DASHBOARD SYSTEM (BASE STYLES)
   ========================================================================== */
.overview-main-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Hero Welcome Banner (Clean Light Theme) */
.overview-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #fff7ed 100%);
    border-radius: 20px;
    padding: 24px 28px;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #ffebd5;
}

.overview-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.12) 0%, rgba(255, 153, 51, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 153, 51, 0.12);
    border: 1px solid rgba(255, 153, 51, 0.3);
    color: #d97706;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #000080;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 16px 0;
    max-width: 540px;
    line-height: 1.4;
}

.hero-progress-wrap {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    max-width: 480px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.hero-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 6px;
    color: #475569;
    font-weight: 600;
}

.hero-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9933, #ea580c);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.hero-right-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 2px solid #fdba74;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ff9933;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.15);
}

/* 4 KPI Analytics Grid */
.overview-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi-metric-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kpi-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.kpi-icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.icon-saffron-pill { background: rgba(255, 153, 51, 0.15); color: #ff9933; }
.icon-green-pill   { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.icon-blue-pill    { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-purple-pill  { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.kpi-card-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 6px;
}

.kpi-card-footer {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Split Row: Coordinator + Quick Actions */
.overview-split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.overview-section-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.coord-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.coord-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.coord-verified-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.coord-card-body p {
    margin: 6px 0;
    font-size: 0.85rem;
    color: #475569;
}

/* Quick Action Shortcuts */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.shortcut-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shortcut-btn:hover {
    background: rgba(255, 153, 51, 0.08);
    border-color: rgba(255, 153, 51, 0.4);
    transform: translateY(-2px);
}

.shortcut-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.shortcut-info {
    display: flex;
    flex-direction: column;
}

.shortcut-info strong {
    font-size: 0.78rem;
    color: #0f172a;
}

.shortcut-info span {
    font-size: 10px;
    color: #64748b;
}

/* ==========================================================================
   YUVA BHARAT DASHBOARD — FULL RESPONSIVE LAYER
   ========================================================================== */

@media (max-width: 1024px) {

    .dash-main {
        padding: 24px 24px;
    }

    .dash-card {
        padding: 22px;
    }

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

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

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

    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .timeline-flex-container {
        gap: 12px;
    }

    .timeline-card {
        min-width: 200px;
        flex: 1 1 200px;
    }
}

/* ==========================================================================
   COORDINATOR WORK TRACKER LOGS INSPECTOR (STACKED DESKTOP & MOBILE LAYOUT)
   ========================================================================== */
.coord-log-bar-premium {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.coord-log-select-field {
    width: 100% !important;
    max-width: 360px !important;
}

.coord-log-hours-card {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(248, 250, 252, 0.95) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
}

.coord-hours-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.coord-hours-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 153, 51, 0.12) !important;
    color: var(--saffron-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
}

.coord-hours-data {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.coord-hours-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--text-muted, #64748b) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.coord-hours-value {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 600px) {
    .coord-log-hours-card {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px 14px !important;
    }
}




/* ==========================================================================
   900px — SIDEBAR COLLAPSES TO OFF-CANVAS DRAWER (base rules already exist
   in dashboard.css; these extend/refine them across every dashboard piece)
   ========================================================================== */
@media (max-width: 900px) {

    /* ---------- INTERN OVERVIEW ---------- */
    .overview-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .hero-right-badge {
        display: none;
    }

    .overview-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .overview-split-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ---------- HEADER ---------- */
    .portal-header {
        padding: 10px 16px;
        height: 64px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-title-desktop,
    .brand-subtitle-desktop {
        display: none !important;
    }

    .brand-title-mobile {
        display: block !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: var(--navy-chakra, #000080) !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    .brand-subtitle-mobile {
        display: block !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        color: var(--saffron-dark, #d97706) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        white-space: nowrap !important;
    }

    .header-right-group {
        gap: 8px !important;
    }

    .header-profile-section {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        position: static !important;
    }

    .status-pill {
        display: none !important;
    }

    .user-avatar-sm {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }

    .header-logout-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        width: auto !important;
        height: auto !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .header-logout-btn span {
        display: inline-block !important;
    }

    .header-logout-icon {
        margin: 0 !important;
        font-size: 11px !important;
    }

    .portal-main-wrapper {
        margin-top: 64px;
    }

    /* ---------- SIDEBAR (OFF-CANVAS DRAWER) ---------- */
    .mobile-sidebar-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dash-sidebar {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        bottom: 0 !important;
        height: calc(100vh - 64px) !important;
        width: 270px !important;
        max-width: 82vw !important;
        padding: 16px 12px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 9999 !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2) !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        overflow-y: auto !important;
    }

    .dash-sidebar.open {
        transform: translateX(0) !important;
    }

    .dash-menu-item {
        padding: 10px 14px !important;
        font-size: 13px !important;
        margin-bottom: 4px !important;
        border-radius: 10px !important;
    }

    .dash-profile {
        padding: 10px 8px !important;
        gap: 10px !important;
    }

    html.noscroll-lock,
    body.noscroll-lock {
        overflow: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
        touch-action: none !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html.noscroll-lock::-webkit-scrollbar,
    body.noscroll-lock::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .sidebar-backdrop {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9998 !important;
    }

    /* ---------- MAIN CONTENT ---------- */
    .dash-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 18px 14px !important;
        gap: 18px;
    }

    .dash-card {
        padding: 18px;
        border-radius: 14px;
    }

    .openings-table th {
        padding: 8px 12px !important;
        font-size: 0.68rem !important;
    }

    .openings-table td {
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
    }

    .dash-card h3 {
        font-size: 1.15rem;
        margin-bottom: 14px;
    }

    /* ---------- STATS / KPI ---------- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .coord-kpi-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .kpi-card {
        padding: 14px 16px;
        border-radius: 12px;
        gap: 10px;
    }

    .kpi-icon-box {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .kpi-value {
        font-size: 1.2rem;
    }

    /* ---------- FILTERS ---------- */
    .filter-grid-box {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 14px;
    }

    /* ---------- TASK ASSIGN FORM ---------- */
    .task-form-row-3col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .task-assign-card {
        padding: 18px;
    }

    .task-section-title-row {
        gap: 10px;
    }

    .task-section-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    /* ---------- CLOCK WIDGET ---------- */
    .clock-widget-box {
        padding: 20px;
    }

    .clock-stopwatch-display {
        font-size: 1.8rem;
    }

    /* ---------- RESOURCES ---------- */
    .resources-grid {
        grid-template-columns: 1fr;
    }

    /* ---------- COORD LOG BAR ---------- */
    .coord-log-bar-premium {
        padding: 16px;
        gap: 14px;
    }
}


/* ==========================================================================
   768px — TABLET REFINEMENTS
   ========================================================================== */
@media (max-width: 768px) {

    /* ---------- AUTH / LOGIN ---------- */
    .auth-wrapper {
        padding: 8px 14px;
    }

    .auth-card {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .auth-header .icon-wrap {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .auth-header h2 {
        font-size: 19px;
    }

    .role-switcher-container {
        margin-bottom: 18px;
    }

    .role-tab-btn {
        font-size: 12px;
        padding: 9px 8px;
    }

    .login-overlay {
        margin: 30px auto;
        padding: 28px 20px;
        border-radius: 18px;
    }

    /* ---------- TABLES: horizontal scroll everywhere ---------- */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .openings-table {
        min-width: 640px;
    }

    .table-font-sm {
        min-width: 560px;
    }

    /* ---------- TIMELINE ---------- */
    .timeline-flex-container {
        flex-wrap: wrap;
    }

    .timeline-card {
        flex: 1 1 45%;
        min-width: 160px;
    }

    /* ---------- CERTIFICATE ---------- */
    .cert-mock {
        padding: 26px 18px;
        border-width: 6px;
    }

    .cert-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .cert-name {
        font-size: 1.3rem;
    }

    /* ---------- MODALS ---------- */
    .modal-content-styled {
        padding: 20px;
        width: 92%;
    }

    .custom-modal-content {
        max-width: 92vw !important;
    }
}


/* ==========================================================================
   600px — LARGE PHONE
   ========================================================================== */
@media (max-width: 600px) {

    /* ---------- HEADER ---------- */
    .portal-header {
        padding: 8px 12px;
    }

    .brand-text span {
        display: none;
        /* "Internship Portal" subtitle hidden on tiny screens */
    }

    /* ---------- SIDEBAR ---------- */
    .dash-sidebar {
        width: 220px !important;
        max-width: 65vw !important;
        padding: 10px 6px !important;
    }

    .dash-menu-item {
        padding: 8px 10px !important;
        font-size: 12px !important;
        margin-bottom: 2px !important;
    }

    .dash-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    /* ---------- STATS ---------- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .coord-kpi-banner {
        grid-template-columns: 1fr 1fr;
    }

    /* ---------- FILTERS: stack fully ---------- */
    .filter-grid-box {
        grid-template-columns: 1fr;
    }

    #coord-specialization-container {
        display: none;
        /* re-shown via inline JS toggle logic when relevant */
    }

    /* ---------- CUSTOM SELECT ---------- */
    .custom-select .select-trigger {
        min-height: 42px;
        padding: 8px 12px;
    }

    /* ---------- REPORT FORM ---------- */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .file-upload-drag-area {
        padding: 14px 12px;
        min-height: 80px;
    }

    /* ---------- TASK ASSIGN ACTIONS ---------- */
    .task-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    #task-draft-status {
        position: static !important;
        transform: none !important;
        justify-content: center;
        margin-bottom: 6px;
    }

    .task-btn-reset,
    .task-btn-submit {
        width: 100%;
        justify-content: center;
    }

    .task-priority-selector {
        gap: 4px;
    }

    .priority-pill {
        font-size: 0.62rem;
        padding: 8px 4px;
    }

    /* ---------- CLOCK WIDGET ---------- */
    .clock-btn-row {
        flex-direction: column;
        gap: 10px;
    }

    .btn-clock-action,
    .btn-clock-danger {
        width: 100%;
        justify-content: center;
    }

    .clock-stopwatch-display {
        font-size: 1.5rem;
    }

    /* ---------- COORD LOG BAR ---------- */
    .coord-log-bar-premium {
        flex-direction: column;
        align-items: stretch;
    }

    .coord-log-select-field {
        max-width: 100%;
    }

    .coord-log-hours-card {
        justify-content: center;
    }

    /* ---------- TIMELINE ---------- */
    .timeline-card {
        flex: 1 1 100%;
    }

    /* ---------- CERTIFICATE ---------- */
    .cert-mock {
        padding: 20px 14px;
    }

    .cert-title {
        font-size: 1.25rem;
    }

    .cert-name {
        font-size: 1.1rem;
        padding: 0 10px 4px;
    }

    /* ---------- MODALS ---------- */
    .modal-header-row {
        margin-bottom: 14px;
    }

    .modal-title-text {
        font-size: 1.05rem;
    }

    .modal-btn-row {
        flex-direction: column-reverse;
    }

    .modal-btn-row button {
        width: 100%;
    }

    .custom-modal-content {
        padding: 18px !important;
    }

    #cred-modal-icon-container {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }

    #cred-modal-title {
        font-size: 1.02rem !important;
    }
}


/* ==========================================================================
   480px — STANDARD PHONE
   ========================================================================== */
@media (max-width: 480px) {

    /* ---------- INTERN OVERVIEW ---------- */
    .overview-hero-banner {
        padding: 16px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .overview-kpi-grid {
        grid-template-columns: 1fr;
    }

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

    /* ---------- HEADER ---------- */
    .brand-group {
        gap: 8px;
    }

    .brand-logo {
        width: 30px;
        height: 30px;
    }

    .brand-text h1 {
        font-size: 14px;
    }

    .mobile-sidebar-toggle {
        font-size: 17px;
        padding: 4px;
    }

    .header-profile-section {
        gap: 6px;
    }

    .status-pill {
        padding: 3px 7px;
    }

    /* ---------- LOGIN ---------- */
    .auth-card {
        padding: 18px 14px;
    }

    .auth-header h2 {
        font-size: 17px;
    }

    .auth-header p {
        font-size: 12px;
    }

    .input-control,
    .login-input-control {
        padding: 10px 12px;
        font-size: 13px;
    }

    .login-input-control {
        padding-left: 38px;
    }

    .btn-primary,
    .login-submit-btn {
        font-size: 13px;
        padding: 11px 16px;
    }

    /* ---------- DASH MAIN ---------- */
    .dash-main {
        padding: 14px 10px !important;
        gap: 14px;
    }

    .dash-card {
        padding: 14px;
    }

    .dash-card h3 {
        font-size: 1.02rem;
    }

    /* ---------- STATS ---------- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card h4 {
        font-size: 0.68rem;
    }

    .stat-card p {
        font-size: 1.1rem;
    }

    .coord-kpi-banner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .kpi-card {
        padding: 12px 14px;
    }

    /* ---------- SIDEBAR PROFILE ---------- */
    .profile-name-heading,
    .coord-profile-heading {
        font-size: 0.78rem;
    }

    .profile-role-sub,
    .coord-profile-sub {
        font-size: 0.58rem;
    }

    .profile-college-sub {
        font-size: 0.55rem;
    }

    #profile-tags-container span {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    /* ---------- TASK SECTION ---------- */
    .task-assign-step-badge {
        font-size: 0.55rem;
        padding: 3px 8px;
    }

    .task-assign-card-header h4 {
        font-size: 0.9rem;
    }

    .task-form-label {
        font-size: 0.7rem;
    }

    .task-form-input,
    .task-form-textarea {
        font-size: 0.82rem;
        padding: 9px 12px;
    }

    /* ---------- FILE UPLOAD ---------- */
    .file-upload-drag-area .upload-icon {
        font-size: 20px;
    }

    .file-upload-drag-area .upload-text {
        font-size: 0.72rem;
    }

    /* ---------- TABLES ---------- */
    .openings-table {
        min-width: 560px;
        font-size: 0.8rem;
    }

    .table-font-sm {
        min-width: 480px;
    }

    /* ---------- RESOURCES ---------- */
    .perk-card-padded {
        padding: 14px;
    }

    .pdf-icon-red {
        font-size: 1.6rem;
    }

    /* ---------- CERTIFICATE ---------- */
    .cert-mock {
        padding: 16px 10px;
        border-width: 5px;
    }

    .cert-title {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
    }

    .cert-subtitle {
        font-size: 0.75rem;
    }

    .cert-name {
        font-size: 0.95rem;
    }

    .cert-text,
    .cert-text-tight {
        font-size: 0.78rem;
    }

    .cert-verify-id {
        font-size: 0.72rem;
    }

    /* ---------- TIMELINE ---------- */
    .timeline-card {
        padding: 12px;
    }

    .timeline-card h4 {
        font-size: 12px;
    }

    .timeline-badge {
        font-size: 9px;
    }

    /* ---------- MODALS ---------- */
    .modal-content-styled,
    .custom-modal-content {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    #manage-phase-intern-name,
    #manage-phase-current,
    .coord-select-control,
    .coord-input-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}


/* ==========================================================================
   380px — SMALL PHONE (compact devices)
   ========================================================================== */
@media (max-width: 380px) {

    .portal-header {
        padding: 6px 10px;
        height: 58px;
    }

    .portal-main-wrapper {
        margin-top: 58px;
    }

    .dash-sidebar {
        top: 58px !important;
        height: calc(100vh - 58px) !important;
        width: 210px !important;
        max-width: 65vw !important;
    }

    .sidebar-backdrop {
        top: 58px;
    }

    .brand-text h1 {
        font-size: 13px;
    }

    .stats-grid,
    .coord-kpi-banner {
        grid-template-columns: 1fr;
    }

    .dash-card {
        padding: 12px;
        border-radius: 12px;
    }

    .task-priority-selector {
        flex-direction: column;
    }

    .priority-pill {
        flex-direction: row;
        justify-content: flex-start;
        padding: 8px 10px;
    }

    .clock-stopwatch-display {
        font-size: 1.3rem;
    }

    .openings-table {
        min-width: 520px;
    }
}


/* ==========================================================================
   LANDSCAPE PHONE OVERRIDE — sidebar drawer shouldn't eat the whole
   viewport height awkwardly, and clock widget can go side-by-side
   ========================================================================== */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {

    .dash-sidebar {
        width: 55vw !important;
        max-width: 320px !important;
    }

    .clock-widget-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 16px;
    }

    .clock-status-wrap,
    .clock-stopwatch-display {
        margin-bottom: 0;
    }

    .clock-btn-row {
        flex-direction: row;
    }
}

/* ==========================================================================
   INTERNSHIP DOCUMENTS SECTION
   ========================================================================== */
.docs-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.docs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.docs-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

.docs-filter-btn:hover {
    border-color: #000080;
    color: #000080;
    background: #eff6ff;
}

.docs-filter-btn.active {
    background: #000080;
    color: #fff;
    border-color: #000080;
    box-shadow: 0 2px 8px rgba(0, 0, 128, 0.18);
}

/* ── Documents section — Refresh button pill style ── */
#sec-documents .docs-header-row .btn-secondary {
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid #000080;
    color: #000080;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#sec-documents .docs-header-row .btn-secondary:hover {
    background: #000080;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 128, 0.2);
    transform: translateY(-1px);
}

/* ── Documents table — View & Download action buttons ── */
#docs-main-table td a.btn-primary,
#docs-main-table td a.btn-secondary {
    vertical-align: middle;
    border-radius: 50px !important;
    padding: 5px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}

#docs-main-table td a.btn-secondary {
    border: 2px solid #000080;
    color: #000080;
    background: transparent;
}

#docs-main-table td a.btn-secondary:hover {
    background: #000080;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 128, 0.18);
}

#docs-main-table td a.btn-primary {
    background: #000080;
    border: 2px solid #000080;
    color: #fff;
}

#docs-main-table td a.btn-primary:hover {
    background: #000066;
    border-color: #000066;
    box-shadow: 0 2px 10px rgba(0, 0, 128, 0.28);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    /* Header: stack title and refresh button */
    .docs-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    #sec-documents .docs-header-row .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Filter chips wrap */
    .docs-filter-bar {
        gap: 6px;
    }

    .docs-filter-btn {
        font-size: 0.73rem;
        padding: 5px 10px;
    }

    /* Prevent container horizontal scrolling for documents and limit height to trigger card-only vertical scroll */
    #docs-table-wrap.table-container {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0 4px 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 380px) !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #docs-table-wrap.table-container::-webkit-scrollbar {
        width: 5px !important;
    }

    #docs-table-wrap.table-container::-webkit-scrollbar-track {
        background: transparent !important;
    }

    #docs-table-wrap.table-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 128, 0.2) !important;
        border-radius: 10px !important;
    }

    #docs-table-wrap.table-container::-webkit-scrollbar-thumb:hover {
        background: var(--saffron-primary, #ff9933) !important;
    }

    /* Reset min-width constraint on table */
    #docs-main-table {
        min-width: auto !important;
        width: 100% !important;
        display: block !important;
    }

    #docs-main-table thead {
        display: none !important;
    }

    #docs-main-table tbody {
        display: block !important;
        width: 100% !important;
    }

    /* Each row = a beautiful clean stacked card */
    #docs-main-table tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border: 1px solid #e8edf5 !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        padding: 12px 14px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    }

    /* Reset cells to clean block/inline flow */
    #docs-main-table td {
        display: none !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        background: transparent !important;
    }

    /* Row 1: Icon + File name */
    #docs-main-table td:nth-child(1) {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 32px !important;
        height: 32px !important;
        vertical-align: middle !important;
        margin-right: 8px !important;
    }

    #docs-main-table td:nth-child(1) i {
        font-size: 1.5rem !important;
    }

    #docs-main-table td:nth-child(2) {
        display: inline-flex !important;
        align-items: center;
        vertical-align: middle !important;
        width: calc(100% - 45px) !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
    }

    #docs-main-table td:nth-child(2) span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        width: 100% !important;
    }

    /* Row 2: Type badge */
    #docs-main-table td:nth-child(3) {
        display: block !important;
        margin-top: 8px !important;
    }

    /* Row 3: Meta metadata (Size & Date next to each other) */
    #docs-main-table td:nth-child(4) {
        display: inline-block !important;
        font-size: 0.74rem !important;
        color: #64748b !important;
        margin-top: 8px !important;
        margin-right: 12px !important;
    }

    #docs-main-table td:nth-child(4)::before {
        content: "📦 " !important;
    }

    #docs-main-table td:nth-child(5) {
        display: inline-block !important;
        font-size: 0.74rem !important;
        color: #64748b !important;
        margin-top: 8px !important;
    }

    #docs-main-table td:nth-child(5)::before {
        content: "📅 " !important;
    }

    /* Row 4: Actions */
    #docs-main-table td:nth-child(6) {
        display: flex !important;
        gap: 8px !important;
        margin-top: 12px !important;
        width: 100% !important;
    }

    #docs-main-table td:nth-child(6) a {
        flex: 1 !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
        border-radius: 50px !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
    }
}

/* ==========================================================================
   WEEKLY REPORT FORM LAYOUT FIX
   ========================================================================== */
.report-form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.report-filename-hint {
    margin: 6px 0 0 0;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.5;
}

.report-filename-hint i {
    color: #000080;
    flex-shrink: 0;
}

.report-filename-hint code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    color: #334155;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    max-width: 100%;
    display: inline-block;
}

@media (max-width: 640px) {
    .docs-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-filter-bar {
        gap: 6px;
    }

    .docs-filter-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .report-filename-hint {
        font-size: 0.73rem;
    }

    .report-filename-hint code {
        font-size: 0.68rem;
        word-break: break-all;
    }
}

/* ==========================================================================
   MODERN DASHBOARD MODAL SYSTEM & CANCEL BUTTON STYLING
   ========================================================================== */
.modal-backdrop-styled {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content-styled {
    background: #ffffff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title-text {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-icon {
    font-size: 22px;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-icon:hover {
    color: #0f172a;
}

.modal-btn-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Modern Pill Cancel Button */
.modal-btn-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.modal-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.modal-btn-row .btn-primary {
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-size: 0.88rem !important;
}

/* Attendance Grouping Table Styles */
.att-group-header-row td {
    border-bottom: 1px solid var(--border-light, #e2e8f0) !important;
}

.att-session-row {
    transition: background 0.15s ease;
}

.att-session-row:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

.att-session-row td {
    border-bottom: 1px dashed var(--border-light, #f1f5f9) !important;
}

