/* style.css - Professional Dashboard Theme */
:root {
    --primary: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f3f4f6;
    --bg: #f9fafb;
    --purple: #7c3aed;
    --border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
}

body {
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Screens */
.hidden { display: none !important; }
h2 { color: var(--dark); margin-top: 0; }
input, select, textarea {
    width: 100%; padding: 12px; margin: 8px 0;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; box-sizing: border-box;
    transition: border 0.3s;
}
input:focus, textarea:focus { 
    border-color: var(--primary); 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px; 
    border: none; 
    border-radius: 6px;
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500;
    transition: all 0.2s ease;
}
button:hover { 
    background-color: #1d4ed8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
button:active {
    transform: translateY(1px);
}

/* --- DASHBOARD HEADER & STATS --- */
.dashboard-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px; 
    margin-bottom: 25px;
}
.profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.profile-info img {
    border: 2px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.profile-info h1 { 
    font-size: 24px; 
    margin: 0; 
    color: var(--text-primary);
    font-weight: 600;
}
.profile-badges span {
    background: var(--light);
    color: var(--text-secondary); 
    padding: 4px 12px;
    border-radius: 4px; 
    font-size: 12px; 
    font-weight: 500; 
    margin-right: 8px;
    border: 1px solid var(--border);
    display: inline-block;
}

.stats-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 16px; 
    margin-bottom: 30px;
}
.stat-card {
    background: white; 
    padding: 20px; 
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    text-align: center;
    border-top: 3px solid var(--border);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}
.stat-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.stat-card h3 { 
    margin: 0; 
    font-size: 32px; 
    font-weight: 600;
    color: var(--text-primary);
}
.stat-card p { 
    margin: 8px 0 0; 
    color: var(--text-secondary); 
    font-size: 12px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-total { 
    border-top-color: var(--primary);
}
.stat-total h3 { 
    color: var(--primary);
}

.stat-pending { 
    border-top-color: var(--warning);
}
.stat-pending h3 { 
    color: var(--warning);
}

.stat-done { 
    border-top-color: var(--success);
}
.stat-done h3 { 
    color: var(--success);
}

.stat-card[style*="border-color: #9b59b6"] {
    border-top-color: var(--purple);
}
.stat-card[style*="border-color: #9b59b6"] h3 {
    color: var(--purple);
}

/* --- TASK CARDS --- */
.task-card {
    background: white; 
    border-radius: 6px; 
    padding: 20px;
    margin-bottom: 16px; 
    border: 1px solid var(--border);
    position: relative; 
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.task-card:hover { 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.task-card.completed { 
    border-left: 4px solid var(--success);
}
.task-card.overdue { 
    border-left: 4px solid var(--danger);
}
.task-card.pending { 
    border-left: 4px solid var(--warning);
}

.task-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.task-title { font-size: 18px; font-weight: bold; color: var(--dark); }
.task-deadline { font-size: 13px; color: #666; background: #eee; padding: 3px 8px; border-radius: 4px; }

.status-tag {
    position: absolute; 
    top: 20px; 
    right: 20px;
    font-size: 11px; 
    font-weight: 600; 
    padding: 4px 10px; 
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-done { 
    background: #d1fae5;
    color: #065f46; 
}
.tag-pending { 
    background: #fef3c7;
    color: #92400e; 
}
.tag-overdue { 
    background: #fee2e2;
    color: #991b1b; 
}

/* Update Section */
.update-section {
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border);
    background: var(--light);
    padding: 16px;
    border-radius: 6px;
}
.update-box textarea { 
    background: white; 
    font-size: 13px; 
    height: 80px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.update-box textarea:focus {
    border-color: var(--primary);
    background: white;
}
.last-update { 
    font-size: 12px; 
    color: var(--text-secondary); 
    margin-bottom: 8px; 
    display: block;
    font-weight: 500;
}

/* Leave Form Modal Enhancements */
#leave-form-modal .container {
    animation: modalSlideIn 0.3s ease-out;
    max-width: 500px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Section Headers */
h3 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}
