/* ==========================================================================
   Swarashtra News - Intern Portal Styling
   Aesthetic: Premium Light Theme with Corporate Navy/Blue & Soft Accents
   ========================================================================== */

:root {
    --bg: #f5f7fa;
    --bg-soft: #ffffff;
    --surface: rgba(0, 27, 68, 0.03);
    --surface-strong: rgba(0, 27, 68, 0.06);
    --border: rgba(0, 27, 68, 0.08);
    --border-hover: rgba(0, 27, 68, 0.16);
    --ink: #001B44;
    --ink-soft: #334155;
    --muted: #64748b;
    --primary: #003A8C;
    --primary-hover: #002C6A;
    --secondary: #0056D6;
    --secondary-hover: #0046B0;
    --saffron: #ff9a3c;
    --green-accent: #16a34a;
    --accent-gradient: linear-gradient(135deg, #001B44 0%, #003A8C 100%);
    --radius-xs: 8px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 27, 68, 0.04);
    --shadow-strong: 0 20px 50px rgba(0, 27, 68, 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%, rgba(255, 154, 60, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 95% 15%, rgba(22, 163, 74, 0.1) 0%, transparent 35%),
                linear-gradient(180deg, #f5f7fa 0%, #eef2f7 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.2;
}

.bg-orb--one {
    top: -200px;
    left: -100px;
    background: var(--saffron);
}

.bg-orb--two {
    bottom: -200px;
    right: -100px;
    background: var(--green-accent);
}

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

/* Logo styling */
.login-logo-text, .sidebar-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-block;
}

.logo-saffron {
    color: #001B44;
}

.logo-green {
    color: #003A8C;
    position: relative;
}

.logo-green::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #16a34a;
    border-radius: 50%;
    margin-left: 2px;
}

/* ==========================================================================
   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.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 440px;
    padding: 44px;
    box-shadow: var(--shadow-strong);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.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(--muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    padding: 12px 16px;
    outline: none;
    transition: all var(--fast);
    width: 100%;
}

.form-group input:focus {
    background: var(--bg-soft);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.12);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.toggle-password {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 14px;
    height: 100%;
    transition: color var(--fast);
}

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

.login-error {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-xs);
    color: #d62828;
    font-size: 13px;
    padding: 12px;
    text-align: center;
}

.btn-login {
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-xs);
    color: var(--bg-soft);
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    transition: transform var(--fast), opacity var(--fast);
}

.btn-login:hover {
    opacity: 0.95;
}

.btn-login:active {
    transform: scale(0.98);
}


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

/* Sidebar Navigation */
.sidebar {
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 32px 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

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

.sidebar-header small {
    color: var(--muted);
    font-size: 12px;
}

/* Profile summary card */
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    margin-bottom: 32px;
}

.profile-avatar {
    background: var(--accent-gradient);
    border-radius: 50%;
    color: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 600;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.profile-info {
    overflow: hidden;
}

.profile-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-info p {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 4px;
}

.badge-dept {
    background: var(--surface-strong);
    border-radius: 4px;
    color: var(--ink-soft);
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    text-transform: uppercase;
}

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

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

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

.nav-item:hover {
    background: var(--surface);
    color: var(--ink);
}

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

.nav-item.active {
    background: var(--surface);
    color: var(--secondary);
}

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

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

.btn-logout {
    align-items: center;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    gap: 12px;
    padding: 12px 16px;
    transition: color var(--fast);
    width: 100%;
}

.btn-logout:hover {
    color: #e63946;
}

/* ==========================================================================
   Dashboard Main Viewport
   ========================================================================== */
.dashboard-main {
    height: 100vh;
    overflow-y: auto;
    padding: 44px 56px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

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

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

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

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

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

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

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

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

.progress-bar-container {
    background: var(--surface-strong);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    width: 100%;
}

.progress-bar-fill {
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    height: 100%;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Quick Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 44px;
}

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

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

.stat-icon--attendance {
    background: rgba(0, 86, 214, 0.08);
    color: var(--secondary);
}

.stat-icon--tasks {
    background: rgba(255, 154, 60, 0.08);
    color: var(--saffron);
}

.stat-icon--reviews {
    background: rgba(0, 58, 140, 0.08);
    color: var(--primary);
}

.stat-icon--status {
    background: rgba(22, 163, 74, 0.08);
    color: var(--green-accent);
}

.stat-info small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

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

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

/* ==========================================================================
   Tab panels Viewport Box
   ========================================================================== */
.tab-viewport {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 44px;
    box-shadow: var(--shadow-soft);
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn var(--fast) forwards;
}

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

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

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

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

/* Tab panel 1: Timeline Logs tree */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    background: var(--border);
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
}

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

.timeline-marker {
    background: var(--bg-soft);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -32px;
    top: 4px;
    width: 24px;
    height: 24px;
    z-index: 2;
    transition: all var(--fast);
}

.timeline-marker svg {
    width: 12px;
    height: 12px;
    color: var(--muted);
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    transition: all var(--fast);
}

.timeline-card:hover {
    border-color: var(--border-hover);
    background: rgba(0, 27, 68, 0.04);
}

.timeline-desc h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

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

/* Badge states inside timeline */
.badge-status {
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.badge-status--completed {
    background: rgba(22, 163, 74, 0.08);
    color: var(--green-accent);
}

.badge-status--pending {
    background: rgba(255, 154, 60, 0.08);
    color: var(--saffron);
}

.badge-status--cancelled {
    background: rgba(230, 57, 70, 0.08);
    color: #e63946;
}

.badge-status--off {
    background: var(--surface-strong);
    color: var(--muted);
}

/* Active status colors for markers */
.timeline-item--completed .timeline-marker {
    border-color: var(--green-accent);
    background: rgba(22, 163, 74, 0.08);
}
.timeline-item--completed .timeline-marker svg {
    color: var(--green-accent);
}

.timeline-item--pending .timeline-marker {
    border-color: var(--saffron);
    background: rgba(255, 154, 60, 0.08);
}
.timeline-item--pending .timeline-marker svg {
    color: var(--saffron);
}

.timeline-item--cancelled .timeline-marker {
    border-color: #e63946;
    background: rgba(230, 57, 70, 0.08);
}
.timeline-item--cancelled .timeline-marker svg {
    color: #e63946;
}

.timeline-item--off .timeline-marker {
    border-color: var(--muted);
    background: var(--surface-strong);
}
.timeline-item--off .timeline-marker svg {
    color: var(--muted);
}


/* ==========================================================================
   Tab Panel 2: Project Showcase
   ========================================================================== */
.project-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.project-title-row {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 28px 32px;
}

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

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

.badge-tag {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
}

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

.project-desc h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.project-desc p {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 28px;
}

.feedback-card {
    background: rgba(22, 163, 74, 0.03);
    border: 1px dashed rgba(22, 163, 74, 0.3);
    border-radius: var(--radius-xs);
    padding: 20px 24px;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-accent);
    margin-bottom: 10px;
}

.feedback-score {
    background: rgba(22, 163, 74, 0.08);
    border-radius: 4px;
    padding: 2px 8px;
}

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

/* Project metadata sidebar */
.project-meta-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

.meta-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 12px;
}

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

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


/* ==========================================================================
   Tab Panel 3: Attendance Grid
   ========================================================================== */
.attendance-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

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

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

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

.legend-dot--present { background: var(--green-accent); }
.legend-dot--absent { background: #e63946; }
.legend-dot--weekend { background: var(--border-hover); }

/* Months Container */
#calendarMonthsContainer {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.month-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    background: var(--surface);
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-day-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

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

/* Individual Calendar Day Cards */
.calendar-day {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    aspect-ratio: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.calendar-day-num {
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.calendar-day-status {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: block;
    text-align: right;
}

/* Day card state styling */
.calendar-day--empty {
    background: none;
    border: none;
    pointer-events: none;
}

.calendar-day--disabled {
    background: rgba(100, 116, 139, 0.05);
    border-color: rgba(100, 116, 139, 0.1);
    color: var(--muted);
}
.calendar-day--disabled .calendar-day-num {
    color: var(--muted);
    opacity: 0.6;
}
.calendar-day--disabled .calendar-day-status {
    color: var(--muted);
    opacity: 0.6;
}

.calendar-day--start {
    background: rgba(0, 86, 214, 0.08);
    border-color: var(--secondary);
    box-shadow: inset 0 0 0 1px var(--secondary);
}
.calendar-day--start .calendar-day-status {
    color: var(--secondary);
}

.calendar-day--end {
    background: rgba(255, 154, 60, 0.08);
    border-color: var(--saffron);
    box-shadow: inset 0 0 0 1px var(--saffron);
}
.calendar-day--end .calendar-day-status {
    color: #e27515;
}

.calendar-day--weekend {
    background: var(--surface-strong);
    border-color: var(--border);
}
.calendar-day--weekend .calendar-day-status {
    color: var(--muted);
}

.calendar-day--sunday {
    background: var(--surface-strong);
    border-color: var(--border);
}
.calendar-day--sunday .calendar-day-status {
    color: var(--muted);
}

.calendar-day--present {
    background: rgba(22, 163, 74, 0.04);
    border-color: rgba(22, 163, 74, 0.3);
}
.calendar-day--present::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green-accent);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}
.calendar-day--present .calendar-day-status {
    color: var(--green-accent);
}

.calendar-day--absent {
    background: rgba(230, 57, 70, 0.04);
    border-color: rgba(230, 57, 70, 0.3);
}
.calendar-day--absent::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #e63946;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}
.calendar-day--absent .calendar-day-status {
    color: #e63946;
}

/* Legend items weekday title labels header */
.calendar-grid > div:first-child {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        height: auto;
        position: relative;
        padding: 24px;
    }
    .dashboard-main {
        height: auto;
        padding: 32px 24px;
    }
    .project-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .calendar-body-grid {
        gap: 6px;
    }
    .calendar-day {
        padding: 6px;
    }
    .calendar-day-num {
        font-size: 11px;
    }
    .calendar-day-status {
        font-size: 7px;
    }
    .tab-viewport {
        padding: 20px;
    }
}
