/* ==========================================================================
   Pictorial Sapphire - Intern Portal Styling
   Aesthetic: Premium Light Theme with Sleek Clean Cards & Soft Gradients
   ========================================================================== */

:root {
    --bg: #f8fafc;
    --bg-soft: #ffffff;
    --surface: rgba(18, 23, 37, 0.02);
    --surface-strong: rgba(18, 23, 37, 0.05);
    --border: rgba(18, 23, 37, 0.08);
    --border-hover: rgba(18, 23, 37, 0.16);
    --ink: #121725;
    --ink-soft: #475569;
    --muted: #64748b;
    --lime: #84cc16;
    --lime-dark: #4d7c0f;
    --cyan: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #121725 0%, #1e293b 100%);
    --radius-xs: 10px;
    --radius-sm: 16px;
    --radius-md: 22px;
    --shadow-soft: 0 10px 30px rgba(18, 23, 37, 0.04);
    --shadow-strong: 0 20px 50px rgba(18, 23, 37, 0.08);
    --fast: 200ms ease;
    --normal: 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 5% -10%, #f5ffc2 0%, transparent 40%),
                radial-gradient(circle at 95% 15%, #d7deff 0%, transparent 35%),
                linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background visual decorations */
.bg-orb {
    position: fixed;
    width: 500px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.25;
}

.bg-orb--one {
    top: -200px;
    left: -100px;
    background: #e1ff60;
}

.bg-orb--two {
    bottom: -200px;
    right: -100px;
    background: #ccd5ff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-strong);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ==========================================================================
   Login Container
   ========================================================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
    padding: 48px;
    box-shadow: var(--shadow-strong);
    animation: fadeInUp var(--normal);
}

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

.login-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 16px;
}

.login-header h2 {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 14px;
    color: var(--ink-soft);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    background: rgba(18, 23, 37, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--ink);
    outline: none;
    transition: all var(--fast);
}

.form-group input:focus {
    border-color: var(--ink);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 23, 37, 0.05);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    color: var(--muted);
    cursor: pointer;
    transition: color var(--fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--ink);
}

.login-error {
    background: rgba(239, 68, 68, 0.06);
    border-left: 3px solid #ef4444;
    padding: 12px 16px;
    border-radius: 4px;
    color: #b91c1c;
    font-size: 13.5px;
    font-weight: 500;
}

.btn-login {
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    transition: all var(--fast);
    box-shadow: 0 4px 14px rgba(18, 23, 37, 0.15);
    margin-top: 10px;
    text-align: center;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(18, 23, 37, 0.25);
    opacity: 0.95;
}

/* ==========================================================================
   Dashboard Layout
   ========================================================================== */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background-color: var(--bg-soft);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-header h3 {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.sidebar-header small {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Profile Card in Sidebar */
.profile-card {
    background: rgba(18, 23, 37, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-family: "Outfit", sans-serif;
    box-shadow: 0 4px 12px rgba(18, 23, 37, 0.1);
}

.profile-card h4 {
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--ink);
}

.profile-card p {
    font-size: 12px;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.badge-dept {
    background: rgba(18, 23, 37, 0.03);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Sidebar Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all var(--fast);
}

.nav-item svg {
    color: var(--muted);
    transition: color var(--fast);
}

.nav-item:hover {
    color: var(--ink);
    background: rgba(18, 23, 37, 0.02);
}

.nav-item.active {
    color: var(--ink);
    background: rgba(18, 23, 37, 0.03);
    border-left: 3px solid var(--ink);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.nav-item.active svg {
    color: var(--ink);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--fast);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
}

/* Main Dashboard Window */
.dashboard-main {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
    max-height: 100vh;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.dashboard-header h2 {
    font-family: "Outfit", sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ink);
}

.dashboard-header p {
    font-size: 14px;
    color: var(--ink-soft);
}

.date-widget {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    box-shadow: var(--shadow-soft);
}

.date-widget svg {
    color: var(--ink);
}

/* Progress Banner */
.progress-section {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-details span {
    color: var(--ink-soft);
}

.progress-details strong {
    color: var(--lime-dark);
}

.progress-bar-container {
    height: 8px;
    width: 100%;
    background: rgba(18, 23, 37, 0.04);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--fast), border-color var(--fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 24px rgba(18, 23, 37, 0.06);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon--attendance {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.stat-icon--tasks {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
}

.stat-icon--reviews {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.stat-icon--status {
    background: rgba(132, 204, 22, 0.08);
    color: var(--lime-dark);
}

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

.stat-info small {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-info h3 {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 2px 0;
    color: var(--ink);
}

.stat-info p {
    font-size: 11px;
    color: var(--ink-soft);
}

/* Tab Viewport Content Card */
.tab-viewport {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-height: 380px;
}

.tab-panel {
    display: none;
    animation: fadeIn var(--fast) ease;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.panel-header h3 {
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--ink);
}

.panel-header p {
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* ==========================================================================
   Tab 1: 30-Day Task Log Timeline
   ========================================================================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 9px;
    width: 2px;
    background: var(--surface-strong);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

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

/* Bullet markers */
.timeline-marker {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-soft);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--fast);
}

.timeline-marker svg {
    width: 10px;
    height: 10px;
}

/* Timeline Cards */
.timeline-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all var(--fast);
    box-shadow: 0 2px 8px rgba(18, 23, 37, 0.02);
}

.timeline-desc h4 {
    font-family: "Outfit", sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ink);
}

.timeline-desc p {
    font-size: 13px;
    color: var(--ink-soft);
}

/* Timeline States styling */
/* Completed Days */
.timeline-item--completed .timeline-marker {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.timeline-item--completed .timeline-card {
    border-color: rgba(16, 185, 129, 0.12);
}

/* Pending Days */
.timeline-item--pending .timeline-marker {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #ffffff;
}

.timeline-item--pending .timeline-card {
    border-color: rgba(245, 158, 11, 0.15);
}

/* Cancelled Days */
.timeline-item--cancelled .timeline-marker {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
}

.timeline-item--cancelled .timeline-card {
    border-color: rgba(239, 68, 68, 0.12);
    opacity: 0.8;
}

/* Off Days */
.timeline-item--off .timeline-marker {
    border-color: var(--muted);
    background: var(--bg);
    color: var(--muted);
}

.timeline-item--off .timeline-card {
    border-color: var(--border);
    opacity: 0.7;
}

/* Status Badges */
.badge-status {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status--completed {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-status--pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-status--cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-status--off {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--border);
}

/* ==========================================================================
   Tab 2: Project Showcase
   ========================================================================== */
.project-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-title-row {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.project-title-row h2 {
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-tag {
    background: rgba(18, 23, 37, 0.02);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
}

.project-desc h4, .project-meta-col h4 {
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink);
    margin-bottom: 12px;
    border-left: 3px solid var(--lime);
    padding-left: 8px;
}

.project-desc p {
    font-size: 14px;
    color: var(--ink-soft);
    text-align: justify;
    line-height: 1.7;
}

.feedback-card {
    background: rgba(18, 23, 37, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 20px;
    margin-top: 24px;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--ink);
}

.feedback-header strong {
    font-size: 13.5px;
}

.feedback-score {
    color: var(--lime-dark);
    font-weight: 800;
    font-size: 14px;
}

.feedback-card p {
    font-size: 13.5px;
    color: var(--ink-soft);
    font-style: italic;
}

.meta-details {
    background: rgba(18, 23, 37, 0.015);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 20px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-row:first-child {
    padding-top: 0;
}

.meta-label {
    color: var(--muted);
    font-weight: 600;
}

.meta-value {
    font-weight: 600;
    color: var(--ink);
}

.meta-value a {
    color: var(--lime-dark);
    text-decoration: underline;
    transition: color var(--fast);
}

.meta-value a:hover {
    color: var(--ink);
}

/* ==========================================================================
   Tab 3: Attendance Grid Calendar
   ========================================================================== */
.attendance-container {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.attendance-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.attendance-calendar-header h4 {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.calendar-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot--present { background-color: #10b981; }
.legend-dot--absent { background-color: #ef4444; }
.legend-dot--weekend { background-color: #64748b; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    padding-bottom: 8px;
}

.calendar-body-grid {
    grid-column: span 7;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1.2;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--fast);
    box-shadow: 0 1px 3px rgba(18, 23, 37, 0.01);
}

.calendar-day:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 10px rgba(18, 23, 37, 0.03);
}

.calendar-day-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
}

.calendar-day-status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
    text-align: center;
    text-transform: uppercase;
}

/* Status variants */
.calendar-day--present {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.calendar-day--present .calendar-day-num {
    color: #15803d;
}

.calendar-day--present .calendar-day-status {
    background: rgba(16, 185, 129, 0.1);
    color: #15803d;
}

.calendar-day--absent {
    background: #fef2f2;
    border-color: #fecaca;
}

.calendar-day--absent .calendar-day-num {
    color: #b91c1c;
}

.calendar-day--absent .calendar-day-status {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.calendar-day--weekend, .calendar-day--sunday {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.calendar-day--weekend .calendar-day-num, .calendar-day--sunday .calendar-day-num {
    color: #64748b;
}

.calendar-day--weekend .calendar-day-status, .calendar-day--sunday .calendar-day-status {
    background: #e2e8f0;
    color: #475569;
}

.calendar-day--empty {
    visibility: hidden;
}

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@media (max-width: 980px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 30px;
    }
    
    .dashboard-main {
        max-height: none;
        overflow-y: visible;
    }
    
    .sidebar-header {
        margin-bottom: 24px;
    }
    
    .profile-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        margin-bottom: 20px;
        padding: 16px;
    }

    .profile-avatar {
        margin: 0;
        flex-shrink: 0;
    }

    .profile-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .profile-card p {
        margin-bottom: 4px;
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }
    
    .nav-item {
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    .btn-logout {
        padding: 10px 16px;
        width: auto;
    }
    
    .sidebar-footer {
        display: flex;
        justify-content: flex-end;
        padding-top: 10px;
    }
}

@media (max-width: 600px) {
    .dashboard-main {
        padding: 20px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-right {
        width: 100%;
    }
    
    .date-widget {
        width: fit-content;
    }
    
    .progress-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .attendance-calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-viewport {
        padding: 0;
    }
    
    .project-card,
    .attendance-container {
        padding: 20px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 5px;
    }
    
    .timeline-marker {
        left: -24px;
        width: 14px;
        height: 14px;
        top: 8px;
    }
    
    .timeline-marker svg {
        display: none;
    }
    
    .timeline-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        padding: 4px;
    }
    
    .calendar-day-num {
        font-size: 10px;
    }
    
    .calendar-day-status {
        font-size: 7px;
    }
}

/* Custom Styles for 60-Day Dynamic Calendar */
.calendar-day--disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    opacity: 0.45;
    pointer-events: none;
}
.calendar-day--disabled .calendar-day-num {
    color: #94a3b8;
}
.calendar-day--disabled .calendar-day-status {
    background: #e2e8f0;
    color: #94a3b8;
}
.calendar-day--start {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.calendar-day--start .calendar-day-num {
    color: #1e40af;
}
.calendar-day--start .calendar-day-status {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}
.calendar-day--end {
    background: #faf5ff;
    border-color: #e9d5ff;
}
.calendar-day--end .calendar-day-num {
    color: #6b21a8;
}
.calendar-day--end .calendar-day-status {
    background: rgba(168, 85, 247, 0.1);
    color: #6b21a8;
}
.month-section {
    margin-bottom: 40px;
}
.month-section:last-child {
    margin-bottom: 0;
}
