/* ================================================
   OFFICE VIBES - Corporate Training, But Make It Fun
   A nostalgic tribute to mandatory training everywhere
   ================================================ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Caveat:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* === ROOT VARIABLES === */
:root {
    /* Main palette - Warm office tones with pops of color */
    --bg-primary: #f5f0e8;           /* Aged paper */
    --bg-secondary: #ebe4d8;         /* Slightly darker paper */
    --bg-card: #ffffff;              /* Clean white cards */
    --bg-card-hover: #fefdfb;
    --bg-sidebar: #fff8f0;          /* Soft warm pastel */
    --bg-sidebar-hover: rgba(255, 183, 71, 0.25);
    
    /* Accent colors - The fun stuff */
    --accent-primary: #e74c3c;       /* Red stapler red */
    --accent-secondary: #3498db;     /* Monday blues */
    --accent-tertiary: #f39c12;      /* Highlighter yellow */
    --accent-success: #27ae60;       /* Green checkmark */
    --accent-warning: #f39c12;       /* Caution tape */
    --accent-danger: #c0392b;        /* Urgent red */
    --accent-purple: #9b59b6;        /* Creative purple */
    --accent-teal: #1abc9c;          /* Fresh teal */
    
    /* Text colors */
    --text-primary: #2c3e50;
    --text-secondary: #5d6d7e;
    --text-muted: #95a5a6;
    --text-light: #ffffff;
    --text-sidebar: #4a4a4a;
    --text-sidebar-muted: #7a7a7a;
    
    /* Borders */
    --border-color: #d5cec3;
    --border-subtle: rgba(0,0,0,0.06);
    --border-dashed: #bdc3c7;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 62, 80, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 62, 80, 0.16);
    --shadow-sticky: 4px 4px 0px rgba(44, 62, 80, 0.15);
    
    /* Sticky note colors */
    --sticky-yellow: #fff740;
    --sticky-pink: #ff7eb9;
    --sticky-blue: #7afcff;
    --sticky-green: #98fb98;
    --sticky-orange: #ffb347;
    
    /* Animation timing */
    --transition-quick: 0.15s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === ANIMATED OFFICE BACKGROUND === */
.office-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Subtle grid pattern like cubicle walls */
.office-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(189, 195, 199, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(189, 195, 199, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Coffee stain decorative */
.coffee-stain {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, 
        rgba(139, 90, 43, 0.06) 0%, 
        rgba(139, 90, 43, 0.03) 40%,
        transparent 70%);
    transform: rotate(-15deg) scale(1.2, 1);
}

.coffee-stain-1 { top: 15%; right: 8%; }
.coffee-stain-2 { bottom: 25%; left: 5%; transform: rotate(30deg) scale(0.8, 1); }
.coffee-stain-3 { top: 60%; right: 3%; transform: rotate(-45deg) scale(0.6, 1); }

/* Floating office supplies */
.floating-item {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.12;
    filter: grayscale(20%);
}

/* Different float animations for more randomness */
@keyframes floatDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(15px, -30px) rotate(8deg); }
    40% { transform: translate(-10px, -15px) rotate(-5deg); }
    60% { transform: translate(20px, -40px) rotate(12deg); }
    80% { transform: translate(-5px, -20px) rotate(-3deg); }
}

@keyframes floatDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, -25px) rotate(-10deg); }
    50% { transform: translate(10px, -45px) rotate(6deg); }
    75% { transform: translate(-15px, -20px) rotate(-8deg); }
}

@keyframes floatDrift3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(25px, -35px) rotate(15deg); }
    66% { transform: translate(-18px, -50px) rotate(-12deg); }
}

@keyframes floatDrift4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    15% { transform: translate(-12px, -20px) rotate(-6deg); }
    35% { transform: translate(18px, -40px) rotate(10deg); }
    55% { transform: translate(-8px, -55px) rotate(-4deg); }
    75% { transform: translate(22px, -30px) rotate(8deg); }
}

@keyframes floatDrift5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(30px, -20px) rotate(5deg); }
    45% { transform: translate(-15px, -45px) rotate(-15deg); }
    70% { transform: translate(10px, -25px) rotate(10deg); }
}

.float-1 { top: 8%; left: 12%; animation: floatDrift1 22s ease-in-out infinite; animation-delay: -2s; }
.float-2 { top: 25%; right: 8%; animation: floatDrift2 26s ease-in-out infinite; animation-delay: -8s; }
.float-3 { bottom: 35%; left: 6%; animation: floatDrift3 30s ease-in-out infinite; animation-delay: -14s; }
.float-4 { top: 45%; right: 18%; animation: floatDrift4 24s ease-in-out infinite; animation-delay: -5s; }
.float-5 { bottom: 18%; right: 12%; animation: floatDrift5 28s ease-in-out infinite; animation-delay: -11s; }
.float-6 { top: 65%; left: 18%; animation: floatDrift1 25s ease-in-out infinite; animation-delay: -18s; }
.float-7 { top: 15%; left: 38%; animation: floatDrift2 23s ease-in-out infinite; animation-delay: -3s; }
.float-8 { bottom: 28%; left: 32%; animation: floatDrift3 27s ease-in-out infinite; animation-delay: -20s; }
.float-9 { top: 38%; left: 55%; animation: floatDrift4 29s ease-in-out infinite; animation-delay: -7s; }
.float-10 { bottom: 45%; right: 25%; animation: floatDrift5 21s ease-in-out infinite; animation-delay: -15s; }
.float-11 { top: 72%; right: 35%; animation: floatDrift1 26s ease-in-out infinite; animation-delay: -9s; }
.float-12 { top: 5%; right: 45%; animation: floatDrift2 24s ease-in-out infinite; animation-delay: -12s; }
.float-13 { bottom: 12%; left: 48%; animation: floatDrift3 28s ease-in-out infinite; animation-delay: -4s; }
.float-14 { top: 55%; left: 5%; animation: floatDrift4 22s ease-in-out infinite; animation-delay: -16s; }
.float-15 { bottom: 55%; right: 5%; animation: floatDrift5 25s ease-in-out infinite; animation-delay: -1s; }
.float-16 { top: 82%; left: 42%; animation: floatDrift1 30s ease-in-out infinite; animation-delay: -22s; }
.float-17 { top: 18%; right: 28%; animation: floatDrift2 27s ease-in-out infinite; animation-delay: -6s; }
.float-18 { bottom: 8%; right: 38%; animation: floatDrift4 23s ease-in-out infinite; animation-delay: -13s; font-size: 3rem; }

/* Paper plane animation */
.paper-plane {
    position: absolute;
    font-size: 2rem;
    opacity: 0.18;
    animation: flyAcross 35s linear infinite;
}

.paper-plane-2 {
    animation: flyAcross2 45s linear infinite;
    animation-delay: -20s;
    font-size: 1.8rem;
    opacity: 0.12;
}

@keyframes flyAcross {
    0% { 
        left: -5%; 
        top: 15%;
        transform: rotate(-15deg) scale(1);
    }
    25% {
        top: 25%;
        transform: rotate(-10deg) scale(1.05);
    }
    50% {
        top: 35%;
        transform: rotate(-5deg) scale(1);
    }
    75% {
        top: 50%;
        transform: rotate(5deg) scale(0.95);
    }
    100% { 
        left: 105%; 
        top: 65%;
        transform: rotate(15deg) scale(1);
    }
}

@keyframes flyAcross2 {
    0% { 
        left: 105%; 
        top: 70%;
        transform: rotate(165deg) scale(1);
    }
    30% {
        top: 55%;
        transform: rotate(175deg) scale(1.1);
    }
    60% {
        top: 40%;
        transform: rotate(185deg) scale(0.9);
    }
    100% { 
        left: -5%; 
        top: 25%;
        transform: rotate(195deg) scale(1);
    }
}

/* === LAYOUT === */
.layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* === SIDEBAR === */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 25px rgba(0,0,0,0.08);
    z-index: 100;
    border-right: 3px solid rgba(255, 183, 71, 0.3);
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 183, 71, 0.4);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 183, 71, 0.6);
}

/* Logo area - Sticky note style */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--sticky-yellow) 0%, #ffec80 100%);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sticky note fold effect */
.logo::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.08) 50%);
}

.logo::after {
    content: '™';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    color: rgba(0,0,0,0.3);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.8);
}

.logo-icon img {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: #4a4a4a;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-family: 'Caveat', cursive;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.1rem;
}

/* Navigation */
.nav-section {
    padding: 1rem 0.75rem;
}

.nav-section:first-of-type {
    padding-top: 1.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-sidebar-muted);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--text-sidebar);
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition-smooth);
    font-size: 0.925rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--sticky-pink), var(--sticky-orange));
    transform: scaleY(0);
    transition: transform var(--transition-smooth);
    border-radius: 0 3px 3px 0;
}

.nav-link:hover {
    background: rgba(255, 183, 71, 0.2);
    transform: translateX(4px);
    border-color: rgba(255, 183, 71, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 126, 185, 0.25), rgba(255, 179, 71, 0.25));
    color: #3a3a3a;
    font-weight: 600;
    border-color: rgba(255, 126, 185, 0.4);
}

.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link-icon {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
    transition: transform var(--transition-bounce);
}

.nav-link:hover .nav-link-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.4);
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--sticky-pink), var(--sticky-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

/* Little "online" indicator */
.user-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--sticky-green);
    border-radius: 50%;
    border: 2px solid #fff8f0;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-sidebar);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-sidebar-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem 3rem;
    position: relative;
    max-width: calc(100vw - 280px);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Page Header */
.page-header {
    margin-bottom: 2.5rem;
    position: relative;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent-primary);
    transform: translateX(-3px);
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

/* Fun underline effect */
.page-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 2px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
    font-weight: 400;
}

/* Optional fun tagline */
.page-tagline {
    font-family: 'Caveat', cursive;
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--border-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === STAT CARDS - Sticky Note Style === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 4px 4px 20px 4px;
    position: relative;
    transform: rotate(-1deg);
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-sticky);
    border: none;
    overflow: visible;
}

.stat-card:nth-child(2) { transform: rotate(1deg); }
.stat-card:nth-child(3) { transform: rotate(-0.5deg); }
.stat-card:nth-child(4) { transform: rotate(1.5deg); }

.stat-card:hover {
    transform: rotate(0deg) scale(1.05) translateY(-5px);
    box-shadow: 6px 6px 0px rgba(44, 62, 80, 0.2);
    z-index: 10;
}

/* Folded corner effect - bottom right like peeling up */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent rgba(0,0,0,0.1) transparent;
    border-bottom-right-radius: 20px;
}

.stat-card.info { 
    background: var(--sticky-blue);
}
.stat-card.success { 
    background: var(--sticky-green);
}
.stat-card.warning { 
    background: var(--sticky-yellow);
}
.stat-card.danger { 
    background: var(--sticky-pink);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* === TRAINING LIST - File Folder Style === */
.training-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.training-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* File tab effect */
.training-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20px;
    width: 60px;
    height: 12px;
    background: var(--border-color);
    border-radius: 4px 4px 0 0;
    transition: all var(--transition-smooth);
}

.training-item:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.training-item:hover::before {
    background: var(--accent-primary);
}

.training-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform var(--transition-bounce);
}

.training-item:hover .training-icon {
    transform: rotate(-10deg) scale(1.1);
}

.training-icon.document { 
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}
.training-icon.link { 
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

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

.training-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.training-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.training-status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.training-status.pending { 
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.training-status.expiring { 
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
}

.training-status.complete { 
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214, 48, 49, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(214, 48, 49, 0); }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-success), #229954);
    color: white;
}

/* === TABLES === */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

th, td {
    padding: 1rem 1.25rem;
    text-align: left;
}

th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

td {
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

tr {
    transition: background var(--transition-quick);
}

tr:hover td {
    background: rgba(52, 152, 219, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

/* === PROGRESS BAR === */
.progress-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255,255,255,0.1) 5px,
        rgba(255,255,255,0.1) 10px
    );
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill.success { 
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}
.progress-fill.warning { 
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}
.progress-fill.danger { 
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Animated stripes for active progress */
.progress-fill.animated {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    from { background-position: 20px 0; }
    to { background-position: 0 0; }
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge.success { 
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.25));
    color: #27ae60;
}
.badge.warning { 
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(243, 156, 18, 0.25));
    color: #d68910;
}
.badge.danger { 
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.25));
    color: #e74c3c;
}
.badge.info { 
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.25));
    color: #2980b9;
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all var(--transition-smooth);
}

.checkbox-label:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--accent-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* === MESSAGES === */
.messages {
    margin-bottom: 2rem;
}

.message {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
    border-color: var(--accent-success);
    color: #1e8449;
}

.message.error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border-color: var(--accent-danger);
    color: #c0392b;
}

.message.warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(243, 156, 18, 0.05));
    border-color: var(--accent-warning);
    color: #b7950b;
}

.message.info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    border-color: var(--accent-secondary);
    color: #2471a3;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === COMPLETION CARD SPECIAL STYLING === */
.completion-card {
    border: 3px dashed var(--accent-primary);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.03), rgba(52, 152, 219, 0.03));
}

.completion-card .card-header {
    border-bottom: none;
    padding-bottom: 0;
}

/* Acknowledgment box */
.acknowledgment-box {
    background: var(--sticky-yellow);
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
    box-shadow: var(--shadow-sticky);
    position: relative;
}

.acknowledgment-box::before {
    content: '📌';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
}

/* === FUN QUOTES / EASTER EGGS === */
.fun-quote {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

/* "TPS Reports" inspired header decoration */
.tps-header {
    position: relative;
}

.tps-header::before {
    content: 'FORM TM-2024';
    position: absolute;
    top: -8px;
    right: 0;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .sidebar {
        width: 260px;
    }
    .main-content {
        margin-left: 260px;
        max-width: calc(100vw - 260px);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        margin-left: 240px;
        padding: 2rem;
        max-width: calc(100vw - 240px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        max-width: 100vw;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        transform: rotate(0deg) !important;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .floating-item,
    .coffee-stain,
    .paper-plane {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .training-item {
        flex-wrap: wrap;
    }
    
    .training-status {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* === MOBILE MENU BUTTON === */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* === PRINT STYLES === */
@media print {
    .sidebar,
    .office-background,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-item,
    .paper-plane {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-primary: #000;
        --text-secondary: #333;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}
