/* Import Google Fonts with Polish character support */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Refined Color Palette - Softer & More Elegant */
    --primary-color: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-light: #f5f3ff;
    --primary-dark: #5b21b6;

    --secondary-color: #6b7280;
    --secondary-hover: #4b5563;

    --success-color: #22c55e;
    --success-hover: #16a34a;
    --success-light: #f0fdf4;

    --danger-color: #f43f5e;
    --danger-hover: #e11d48;
    --danger-light: #fef2f2;

    --warning-color: #fb923c;
    --warning-hover: #ea580c;
    --warning-light: #fff7ed;

    --info-color: #14b8a6;
    --info-hover: #0d9488;
    --info-light: #f0fdfa;

    /* Backgrounds - More breathing room */
    --background: #fafafa;
    --background-secondary: #f4f4f5;
    --card-background: #ffffff;
    --card-background-hover: #fefefe;

    /* Text Colors - Better hierarchy */
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #a1a1aa;
    --text-inverse: #ffffff;

    /* Borders - Softer */
    --border-color: #f4f4f5;
    --border-color-hover: #e4e4e7;
    --border-radius-sm: 10px;
    --border-radius-md: 14px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;

    /* Shadows - Lighter & More Subtle */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 8px -3px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.12), 0 8px 12px -5px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Colored Shadows - More subtle */
    --shadow-primary: 0 8px 20px -5px rgba(124, 58, 237, 0.15);
    --shadow-success: 0 8px 20px -5px rgba(34, 197, 94, 0.15);
    --shadow-danger: 0 8px 20px -5px rgba(244, 63, 94, 0.15);

    /* Gradients - Softer */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --gradient-primary-subtle: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    --gradient-info: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #fb923c 0%, #f97316 100%);

    /* Glass Effects - More transparency */
    --glass-background: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Transitions - Smoother & Faster */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing - More generous */
    --spacing-xs: 6px;
    --spacing-sm: 10px;
    --spacing-md: 18px;
    --spacing-lg: 28px;
    --spacing-xl: 36px;
    --spacing-2xl: 52px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styles */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

::-moz-selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Login Screen - Modern Design */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cardSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.login-card h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--gradient-primary-subtle);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.login-card h2 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    background: var(--card-background);
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-family: inherit;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-color-hover);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: translateY(-1px);
}

.btn {
    padding: 11px 24px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.btn-primary {
    background: var(--gradient-primary-subtle);
    color: white;
    width: 100%;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-success);
}

.btn-success:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: var(--shadow-danger);
}

.btn-danger:hover {
    background: var(--danger-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--background);
    border-radius: 8px;
    font-size: 0.875rem;
}

.demo-info p {
    margin: 5px 0;
}

.demo-info code {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Main Panel - Modern Design */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 18px 40px;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05), 0 4px 16px -4px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand h1 {
    font-size: 1.375rem;
    background: var(--gradient-primary-subtle);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px -2px rgba(124, 58, 237, 0.3);
}

.container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: inset -1px 0 0 0 rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    align-self: flex-start;
    z-index: 50;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
}

/* Custom scrollbar for sidebar (Webkit) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

.menu {
    list-style: none;
    padding: 28px 20px;
}

.menu li {
    margin-bottom: 6px;
}

.menu li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-primary-subtle);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.menu li a:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary-color);
    transform: translateX(2px);
}

.menu li a.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 8px -2px rgba(124, 58, 237, 0.2);
}

.menu li a.active::before {
    transform: scaleY(1);
}

.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view h2 {
    margin-bottom: 24px;
    font-size: 2rem;
}

/* Stats Grid - Premium Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #fcfcfc 100%);
    padding: 36px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08),
                0 4px 16px -4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12),
                0 12px 32px -8px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card h3 {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

/* Recent Activity */
.recent-activity {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.recent-activity h3 {
    margin-bottom: 20px;
}

.activity-item {
    padding: 16px;
    border-left: 4px solid var(--border-color);
    margin-bottom: 12px;
    background: var(--background);
    border-radius: 4px;
}

.activity-item.pending {
    border-left-color: var(--warning-color);
}

.activity-item.approved {
    border-left-color: var(--success-color);
}

.activity-item.rejected {
    border-left-color: var(--danger-color);
}

/* Leave Form */
.leave-form {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.days-info {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--background);
    border-radius: 8px;
    font-size: 1.125rem;
}

/* Request Cards - Enhanced Design */
.request-card {
    background: linear-gradient(145deg, #ffffff 0%, #fcfcfc 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08),
                0 4px 16px -4px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border-left: 6px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.request-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: inherit;
    opacity: 0.8;
}

.request-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transition: all 0.4s ease;
}

.request-card:hover {
    transform: translateY(-4px) translateX(2px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12),
                0 12px 32px -8px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.15);
}

.request-card:hover::after {
    width: 160px;
    height: 160px;
}

.request-card.pending {
    border-left-color: var(--warning-color);
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 50%, #ffffff 100%);
}

.request-card.pending::after {
    background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.08) 0%, transparent 70%);
}

.request-card.approved {
    border-left-color: var(--success-color);
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 50%, #ffffff 100%);
}

.request-card.approved::after {
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
}

.request-card.rejected {
    border-left-color: var(--danger-color);
    background: linear-gradient(145deg, #ffffff 0%, #fef2f2 50%, #ffffff 100%);
}

.request-card.rejected::after {
    background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.08) 0%, transparent 70%);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.request-info {
    flex: 1;
}

.request-type {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.request-dates {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.request-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-xs);
}

.request-status.pending {
    background: var(--warning-light);
    color: var(--warning-hover);
}

.request-status.approved {
    background: var(--success-light);
    color: var(--success-hover);
}

.request-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.request-details {
    margin-bottom: 16px;
}

.request-detail {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.request-actions {
    display: flex;
    gap: 12px;
}

.request-user {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* Filter Tabs - Modern Design */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 8px;
    background: var(--background);
    border-radius: var(--border-radius-lg);
    width: fit-content;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    color: var(--text-secondary);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   NEW DASHBOARD LAYOUT (Video Buddy Style)
   ============================================ */

.dashboard-layout {
    display: block;
    padding: 0;
}

/* Dashboard Main Content */
.dashboard-main {
    min-width: 0;
    width: 100%;
}

.dashboard-greeting {
    text-align: center;
    margin-bottom: 48px;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: block;
    visibility: visible;
    min-height: 150px;
}

.dashboard-greeting h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.dashboard-user-avatar {
    display: flex;
    justify-content: center;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

/* Dashboard Agenda */
.dashboard-agenda {
    margin-bottom: 48px;
    display: block;
    visibility: visible;
    min-height: 100px;
}

.dashboard-agenda h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-item {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    cursor: default;
}

.agenda-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.agenda-item.pending {
    border-left-color: var(--warning-color);
}

.agenda-item.approved {
    border-left-color: var(--success-color);
}

.agenda-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agenda-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.agenda-item-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.agenda-item-actions {
    display: flex;
    gap: 8px;
}

.agenda-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color-hover);
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: auto;
}

.agenda-btn:hover {
    background: var(--background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.agenda-btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.agenda-btn-primary:hover {
    background: var(--primary-hover);
}

.agenda-empty {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 12px;
    color: var(--text-secondary);
}

/* Dashboard Bottom Grid */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.dashboard-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-height: 320px;
}

.dashboard-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Dashboard Card with Actions (Statistics + Buttons) */
.dashboard-card-with-actions {
    /* Single column like other cards */
}

.dashboard-card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.dashboard-card-stats {
    flex: 0 0 auto;
}

.dashboard-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.dashboard-card-actions .dashboard-action-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.dashboard-card-actions .dashboard-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.dashboard-card-actions .dashboard-action-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

.dashboard-card-actions .dashboard-action-primary:hover {
    box-shadow: var(--shadow-primary);
}

.dashboard-card-actions .action-icon {
    font-size: 1.5rem;
}

.dashboard-card-actions .action-text {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
}

.dashboard-card-actions .dashboard-action-primary .action-text {
    color: white;
}

/* Mini Calendar */
.mini-calendar {
    font-size: 0.875rem;
}

.mini-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mini-calendar-month {
    font-weight: 600;
    color: var(--primary-color);
}

.mini-calendar-nav {
    display: flex;
    gap: 8px;
}

.mini-calendar-nav button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.mini-calendar-nav button:hover {
    background: var(--background);
    color: var(--primary-color);
}

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

.mini-calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px;
    font-size: 0.75rem;
}

.mini-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.mini-calendar-day:hover {
    background: var(--background);
}

.mini-calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.mini-calendar-day.has-leave {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.mini-calendar-day.other-month {
    color: var(--text-tertiary);
}

/* Dashboard Requests List */
.dashboard-requests {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.dashboard-request-item {
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
    border-left: 3px solid var(--border-color);
    transition: all 0.2s ease;
}

.dashboard-request-item:hover {
    background: var(--background-secondary);
}

.dashboard-request-item.pending {
    border-left-color: var(--warning-color);
}

.dashboard-request-item.approved {
    border-left-color: var(--success-color);
}

.dashboard-request-item.rejected {
    border-left-color: var(--danger-color);
}

.dashboard-request-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dashboard-request-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dashboard-requests-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-tertiary);
}

/* Dashboard Insights */
.dashboard-insights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.insight-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.insight-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dashboard Actions Sidebar */
/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .agenda-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .agenda-item-actions {
        justify-content: flex-start;
    }
}

/* Calendar - Professional Design */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 4px;
}

#calendar {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 50%, #ffffff 100%);
    padding: 40px 36px;
    border-radius: 20px;
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.08),
                0 6px 24px -4px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

#calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
}

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

.calendar-day-header {
    padding: 16px 8px;
    text-align: center;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 8px;
    margin-bottom: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 10px 6px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    text-align: center;
    position: relative;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.04);
}

.calendar-day:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.25),
                0 4px 12px -2px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    z-index: 10;
    background: linear-gradient(145deg, #ffffff, #faf5ff);
}

.calendar-day.other-month {
    color: var(--text-tertiary);
    opacity: 0.3;
    cursor: default;
    background: transparent;
}

.calendar-day.other-month:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.calendar-day.today {
    border-color: var(--primary-color);
    border-width: 3px;
    font-weight: 700;
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1),
                0 6px 16px -2px rgba(124, 58, 237, 0.3);
    position: relative;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
}

.calendar-day.weekend {
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-color: rgba(0, 0, 0, 0.04);
}

.calendar-day.weekend.today {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1),
                0 6px 16px -2px rgba(251, 146, 60, 0.3);
}

.day-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.leave-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px -1px rgba(124, 58, 237, 0.4),
                0 0 0 2px #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.calendar-day:hover .leave-indicator {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px -1px rgba(124, 58, 237, 0.6),
                0 0 0 3px #ffffff;
}

.calendar-day.has-leave {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    border-color: var(--success-color);
    border-width: 2.5px;
    box-shadow: 0 2px 8px -2px rgba(34, 197, 94, 0.2),
                0 4px 12px -2px rgba(34, 197, 94, 0.15);
}

.calendar-day.has-leave:hover {
    box-shadow: 0 8px 20px -4px rgba(34, 197, 94, 0.35),
                0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.calendar-day.has-leave.weekend {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
}

.calendar-day.has-leave .leave-indicator {
    background: linear-gradient(135deg, var(--success-color), #16a34a);
    box-shadow: 0 2px 8px -1px rgba(34, 197, 94, 0.5),
                0 0 0 2px #ffffff;
}

.calendar-day.multiple-leaves {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    border-color: var(--warning-color);
    border-width: 2.5px;
    box-shadow: 0 2px 8px -2px rgba(251, 146, 60, 0.25),
                0 4px 12px -2px rgba(251, 146, 60, 0.2);
}

.calendar-day.multiple-leaves:hover {
    box-shadow: 0 8px 20px -4px rgba(251, 146, 60, 0.4),
                0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.calendar-day.multiple-leaves .leave-indicator {
    background: linear-gradient(135deg, var(--warning-color), #ea580c);
    animation: pulse 2.5s ease-in-out infinite;
    box-shadow: 0 2px 8px -1px rgba(251, 146, 60, 0.6),
                0 0 0 2px #ffffff;
}

/* Day detail items in toast */
.day-detail-item {
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
}

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

.detail-type {
    color: #6b7280;
    font-size: 0.875rem;
}

.detail-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 4px 0;
}

.detail-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.detail-status.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.detail-status.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.detail-dates {
    color: #9ca3af;
    font-size: 0.75rem;
}

.calendar-legend {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.pending {
    background: #fef3c7;
}

.legend-color.approved {
    background: #d1fae5;
}

.legend-color.rejected {
    background: #fee2e2;
}

/* ============================================
   NEW CALENDAR FEATURES
   ============================================ */

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    margin: 0;
}

/* Calendar Filters */
.calendar-filters {
    background: linear-gradient(145deg, #f8f9fa 0%, #f0f0f1 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.filters-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.filter-group .form-control {
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-group .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Calendar Stats */
.calendar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Updated Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.calendar-controls h3 {
    margin: 0;
    min-width: 200px;
    text-align: center;
}

/* Updated Legend */
.calendar-legend {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(145deg, #f8f9fa 0%, #f0f0f1 100%);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.legend-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legend-section strong {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.legend-section .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Type-based legend colors */
.legend-color.type-wypoczynkowy {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.legend-color.type-na-zadanie {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.legend-color.type-bezplatny {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.legend-color.type-okolicznosciowy {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

/* Month Leaves List */
.month-leaves-list {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
}

.month-leaves-list h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

#month-leaves-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.month-leave-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.month-leave-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.month-leave-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.month-leave-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.month-leave-type {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.month-leave-dates {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-leave-status {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.month-leave-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.month-leave-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.month-leave-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.empty-month-leaves {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-month-leaves .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

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

    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .calendar-controls {
        flex-wrap: wrap;
    }

    .calendar-controls h3 {
        min-width: 100%;
        order: -1;
        margin-bottom: 12px;
    }

    .legend-section {
        flex-direction: column;
        gap: 8px;
    }

    .month-leave-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Alert messages */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

/* Notification Button */
.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-icon:hover {
    background: var(--background);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-hover) 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    box-shadow: 0 2px 8px -2px rgba(244, 63, 94, 0.4), 0 0 0 2px white;
    text-align: center;
}

/* Notifications View */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--background);
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1;
}

.notification-item {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08),
                0 4px 12px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    border-left: 5px solid var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.notification-item:hover {
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12),
                0 12px 32px -8px rgba(124, 58, 237, 0.15);
    transform: translateY(-3px) translateX(2px);
    border-color: rgba(124, 58, 237, 0.2);
}

.notification-item:hover::before {
    width: 8px;
}

.notification-item.unread {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 50%, #eff6ff 100%);
    border-left-color: var(--primary-color);
    box-shadow: 0 2px 8px -2px rgba(124, 58, 237, 0.15),
                0 4px 12px -2px rgba(124, 58, 237, 0.1);
}

.notification-item.unread::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2),
                0 2px 6px rgba(124, 58, 237, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.notification-item.read {
    opacity: 0.65;
    border-left-color: var(--border-color);
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
}

.notification-item.read::before {
    background: var(--border-color);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.notification-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notification-preview {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.unread-indicator {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.modal-header h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
    color: var(--text-tertiary);
}

.btn-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    background: #fafafa;
    justify-content: flex-end;
    gap: 12px;
}

/* Email Preview */
.email-preview {
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
}

.email-meta {
    background: white;
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
}

.email-meta p {
    margin: 8px 0;
    font-size: 0.875rem;
}

.email-meta strong {
    color: var(--text-secondary);
    display: inline-block;
    min-width: 80px;
}

.email-body {
    padding: 24px;
    background: white;
    margin: 2px;
    border-radius: 4px;
    line-height: 1.8;
}

.email-body h1, .email-body h2, .email-body h3 {
    margin-top: 20px;
    margin-bottom: 12px;
}

.email-body p {
    margin: 12px 0;
}

.email-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.email-body .email-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

/* Hamburger Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation - X when open */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .container {
        flex-direction: column;
        min-height: auto;
    }

    /* Sidebar as Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Hidden by default */
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        border-right: 1px solid var(--border-color);
        overflow-y: auto;
        z-index: 1000;
        transition: left 0.3s ease;
        padding-top: 60px; /* Space for navbar */
    }

    /* Sidebar open state */
    .sidebar.active {
        left: 0;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    /* Menu vertical layout */
    .menu {
        display: flex;
        flex-direction: column;
        padding: 16px 0;
        gap: 0;
    }

    .menu li {
        margin-bottom: 0;
    }

    .menu li a {
        padding: 14px 20px;
        font-size: 0.9375rem;
        display: block;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .menu li a:hover {
        background: var(--hover-color);
        border-left-color: var(--primary-color);
    }

    .menu li a.active {
        background: var(--primary-light);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        font-weight: 600;
    }

    .main-content {
        padding: 16px;
        width: 100%;
    }

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

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

    .navbar {
        padding: 10px 12px;
        flex-wrap: nowrap;
        min-height: auto;
        height: auto;
        gap: 8px;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .navbar-brand img {
        max-height: 30px !important;
        margin-right: 8px;
    }

    .navbar-brand h1 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-user {
        gap: 6px;
        font-size: 0.875rem;
        flex-shrink: 0;
    }

    .navbar-user > span:first-of-type {
        display: none;
    }

    .badge {
        padding: 3px 8px;
        font-size: 0.5625rem;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 0.6875rem;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .notifications-header {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* Settings View */
.settings-section {
    margin-bottom: 40px;
}

.settings-section h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.settings-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    background: #ffffff;
    font-family: inherit;
}

.form-control:hover {
    border-color: var(--border-color-hover);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.settings-card hr {
    border: none;
    border-top: 1px solid var(--border-color);
}

.settings-card h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ============================================
   LOGO PREVIEW & BRANDING SECTION
   ============================================ */

.form-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

.logo-preview-section {
    margin: 20px 0;
}

.logo-preview-container {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.logo-preview-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.logo-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.logo-preview-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.btn-icon-small {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.btn-danger-icon:hover {
    background: var(--danger-light);
    transform: scale(1.1);
}

.logo-preview-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.logo-preview-box {
    background: #ffffff;
    border: 2px dashed var(--border-color-hover);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: all 0.3s ease;
}

.logo-preview-box:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.logo-preview-box img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-preview-box img:hover {
    transform: scale(1.05);
}

.logo-preview-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logo-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.logo-info-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.logo-info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.logo-info-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.logo-empty-state {
    background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px dashed var(--border-color-hover);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.logo-empty-state:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.logo-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.logo-empty-state p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.logo-empty-state small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.upload-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease;
}

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

.upload-result.success {
    background: var(--success-light);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.upload-result.error {
    background: var(--danger-light);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.upload-result.info {
    background: var(--info-light);
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

.btn-icon {
    margin-right: 8px;
}

/* Responsive Logo Preview */
@media (max-width: 768px) {
    .logo-preview-wrapper {
        grid-template-columns: 1fr;
    }

    .logo-preview-box {
        min-height: 150px;
        padding: 24px;
    }
}

/* ============================================
   LOGO DISPLAY OPTIONS
   ============================================ */

.logo-display-options {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(145deg, #f8f9fa 0%, #f0f0f1 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

.options-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* Option Section */
.option-section {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.option-section:last-child {
    margin-bottom: 0;
}

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

.option-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.size-value {
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 55px;
    text-align: center;
}

/* Slider */
.size-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e5e7eb 0%, var(--primary-color) 100%);
    outline: none;
    -webkit-appearance: none;
    margin: 12px 0 8px 0;
    cursor: pointer;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    transition: all 0.2s ease;
}

.size-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.5);
}

.size-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    transition: all 0.2s ease;
}

.size-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0 4px;
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-container:hover .checkbox-content {
    color: var(--primary-color);
}

.checkbox-input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-content {
    flex: 1;
}

.checkbox-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.checkbox-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive Display Options */
@media (max-width: 768px) {
    .logo-display-options {
        padding: 16px;
    }

    .size-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    .size-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
}

/* Users Management */
.users-header,
.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.user-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08),
                0 4px 16px -4px rgba(0, 0, 0, 0.06);
    margin-bottom: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 6px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.user-card.manager-card {
    border-left-color: #be123c;
    background: linear-gradient(145deg, #ffffff 0%, #fdf2f8 50%, #ffffff 100%);
}

.user-card.manager-card::after {
    background: radial-gradient(circle, rgba(190, 18, 60, 0.08) 0%, transparent 70%);
}

.user-card.pracownik-card {
    border-left-color: #1e40af;
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 50%, #ffffff 100%);
}

.user-card.pracownik-card::after {
    background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
}

.user-card:hover {
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12),
                0 12px 32px -8px rgba(124, 58, 237, 0.15);
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(124, 58, 237, 0.15);
}

.user-card:hover::after {
    width: 180px;
    height: 180px;
    bottom: -25%;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-username {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: monospace;
}

.user-role-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.user-role-badge.pracownik {
    background: #dbeafe;
    color: #1e40af;
}

.user-role-badge.manager {
    background: #fce7f3;
    color: #9f1239;
}

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

.user-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-detail strong {
    color: var(--text-primary);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.user-stats {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

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

.user-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.user-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

small {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* ====================================
   Enhanced Dashboard Styles
   ==================================== */

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.stat-card.stat-primary { border-left: 4px solid var(--primary-color); }
.stat-card.stat-success { border-left: 4px solid var(--success-color); }
.stat-card.stat-warning { border-left: 4px solid var(--warning-color); }
.stat-card.stat-info { border-left: 4px solid #3b82f6; }

.dashboard-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.dashboard-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Chart Bars */
.chart-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-bar-label {
    min-width: 100px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.chart-bar-wrapper {
    flex: 1;
    background: #e5e7eb;
    border-radius: 8px;
    height: 32px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    border-radius: 8px;
    transition: width 0.5s ease;
    position: relative;
}

.chart-bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.chart-bar-used {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.chart-bar-pending {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.chart-bar-available {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
}

/* Leave Types Breakdown */
.breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: background 0.2s;
}

.breakdown-item:hover {
    background: #f3f4f6;
}

.breakdown-label {
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.breakdown-label strong {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.breakdown-label span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.breakdown-bar-wrapper {
    flex: 1;
    background: #e5e7eb;
    border-radius: 6px;
    height: 20px;
    overflow: hidden;
}

.breakdown-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.breakdown-value {
    min-width: 100px;
    text-align: right;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .chart-bar-label {
        min-width: 80px;
        font-size: 0.8rem;
    }

    .breakdown-label {
        min-width: 120px;
    }

    .breakdown-item {
        flex-wrap: wrap;
    }

    .breakdown-value {
        min-width: auto;
        width: 100%;
        text-align: left;
        margin-top: 8px;
    }
}

/* ====================================
   Visual Enhancements v1.4.0
   ==================================== */

/* Enhanced card hover effects */
.request-card,
.user-card,
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-card:hover,
.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Enhanced buttons with gradients */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Enhanced filter tabs */
.filter-tabs {
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.tab-btn {
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.tab-btn.active::after,
.tab-btn:hover::after {
    width: 80%;
}

/* Enhanced status badges with animation */
.request-status,
.user-status {
    position: relative;
    overflow: hidden;
}

.request-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.request-status:hover::before {
    left: 100%;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced sidebar */
.sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.menu li a {
    transition: all 0.3s ease;
    position: relative;
}

.menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.menu li a:hover::before,
.menu li a.active::before {
    height: 70%;
}

/* Enhanced header */
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animated notification badge */
.notification-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Enhanced form inputs */
.form-control,
select,
textarea {
    transition: all var(--transition-base);
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    font-family: inherit;
}

.form-control:hover,
select:hover,
textarea:hover {
    border-color: var(--border-color-hover);
}

.form-control:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
    transform: none;
    outline: none;
}

/* Loading animation for buttons */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced empty states */
.empty-state {
    transition: all 0.3s ease;
}

.empty-state:hover {
    transform: scale(1.02);
}

.empty-state-icon {
    transition: transform 0.3s ease;
}

.empty-state:hover .empty-state-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Glass morphism effect for cards */
.settings-card,
.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced calendar days */
.calendar-day {
    transition: all 0.2s ease;
}

.calendar-day:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 18px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 5px solid;
}

.toast.success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(209,250,229,0.2) 100%);
}

.toast.error {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(254,226,226,0.2) 100%);
}

.toast.warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(254,243,199,0.2) 100%);
}

.toast.info {
    border-left-color: var(--primary-color);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease forwards;
}

/* Request For Employee Form */
.request-for-container {
    display: none;
    margin-bottom: 25px;
    animation: slideDown 0.3s ease;
}

.request-for-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.request-for-header {
    padding: 24px;
    color: white;
}

.request-for-title {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.request-for-icon {
    font-size: 1.8rem;
    display: inline-block;
}

.request-for-description {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
    line-height: 1.5;
}

.request-for-form {
    background: white;
    padding: 28px;
    border-radius: 12px;
    margin: 0 16px 16px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.request-for-form .form-group {
    margin-bottom: 20px;
}

.request-for-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.request-for-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.request-for-form .form-control:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.request-for-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.working-days-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.working-days-label {
    color: #1e40af;
    font-weight: 500;
}

.working-days-value {
    color: #1e3a8a;
    font-size: 1.2rem;
    font-weight: 700;
}

.request-for-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-submit-request {
    flex: 1;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}

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

/* Notification Settings */
.notification-settings-grid {
    display: grid;
    gap: 16px;
}

.notification-setting-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.notification-setting-item:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.notification-setting-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.notification-label strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.notification-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.notification-setting-item:has(.notification-checkbox:checked) {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.notification-setting-item:has(.notification-checkbox:checked) .notification-label strong {
    color: #065f46;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .manage-header {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-header button {
        width: 100%;
    }

    #toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
    }

    .request-for-form {
        padding: 20px;
        margin: 0 12px 12px 12px;
    }

    .request-for-form .form-row {
        grid-template-columns: 1fr;
    }

    .request-for-actions {
        flex-direction: column;
    }

    .btn-submit-request {
        width: 100%;
    }
}
/* ============================================
   THEME SELECTOR STYLES
   ============================================ */

.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 24px 0;
}

.theme-option {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.theme-option::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12),
                0 12px 32px -8px rgba(124, 58, 237, 0.15);
}

.theme-option:hover::after {
    opacity: 1;
}

.theme-option.active {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1),
                0 8px 24px -4px rgba(124, 58, 237, 0.2);
}

.theme-preview {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: 40px 1fr;
}

.theme-preview-header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.theme-preview-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e5e7eb;
}

.theme-preview-content {
    background: #fafafa;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-preview-card {
    background: white;
    border-radius: 6px;
    height: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Light Theme Preview */
.theme-preview-light .theme-preview-header {
    background: linear-gradient(135deg, #4169E1, #3B5FD5);
}

.theme-preview-light .theme-preview-sidebar {
    background: #ffffff;
    border-right: 1px solid #e8ebf0;
}

.theme-preview-light .theme-preview-content {
    background: #f5f7fa;
}

.theme-preview-light .theme-preview-card {
    box-shadow: 0 2px 4px rgba(65, 105, 225, 0.08);
    border: 1px solid #e8ebf0;
}

.theme-info {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.theme-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.theme-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.theme-select-btn {
    width: 100%;
    position: relative;
    z-index: 1;
}

.theme-option.active .theme-select-btn {
    background: var(--primary-color);
    color: white;
    cursor: default;
}

/* ============================================
   LIGHT & CLEAN THEME
   ============================================ */

body.theme-light {
    /* Light Theme Color Palette */
    --primary-color: #4169E1;
    --primary-hover: #3B5FD5;
    --primary-light: #6B8DEF;
    
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
    
    /* Backgrounds - Clean & Bright */
    --background: #F5F7FA;
    --background-secondary: #FFFFFF;
    --surface: #FFFFFF;
    
    /* Text Colors - High Contrast */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    
    /* Borders - Subtle */
    --border-color: #E8EBF0;
    --border-color-hover: #D1D5DB;
    
    /* Shadows - Soft & Clean */
    --shadow-sm: 0 2px 4px rgba(65, 105, 225, 0.08);
    --shadow: 0 4px 8px rgba(65, 105, 225, 0.1);
    --shadow-md: 0 6px 12px rgba(65, 105, 225, 0.12);
    --shadow-lg: 0 12px 24px rgba(65, 105, 225, 0.15);
    --shadow-primary: 0 4px 12px rgba(65, 105, 225, 0.2);
    --shadow-success: 0 4px 12px rgba(16, 185, 129, 0.2);
    
    /* Gradients - Blue tones */
    --gradient-primary: linear-gradient(135deg, #4169E1 0%, #3B5FD5 100%);
    --gradient-primary-subtle: linear-gradient(135deg, #4169E1 0%, #6B8DEF 100%);
}

/* Navbar - Light Theme */
body.theme-light .navbar {
    background: #FFFFFF;
    border-bottom: 1px solid #E8EBF0;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.08);
}

body.theme-light .navbar-brand h1 {
    background: linear-gradient(135deg, #4169E1, #3B5FD5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-light .btn-icon {
    background: #F5F7FA;
    color: #4169E1;
}

body.theme-light .btn-icon:hover {
    background: #E8EBF0;
    color: #3B5FD5;
}

/* Sidebar - Light Theme */
body.theme-light .sidebar {
    background: #FFFFFF;
    border-right: 1px solid #E8EBF0;
    box-shadow: 2px 0 12px rgba(65, 105, 225, 0.06);
}

body.theme-light .sidebar .menu-item {
    color: #6B7280;
    font-weight: 500;
}

body.theme-light .sidebar .menu-item:hover {
    background: #F5F7FA;
    color: #4169E1;
}

body.theme-light .sidebar .menu-item.active {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #4169E1;
    border-left: 4px solid #4169E1;
    font-weight: 600;
}

/* Buttons - Light Theme */
body.theme-light .btn-primary {
    background: linear-gradient(135deg, #4169E1, #3B5FD5);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

body.theme-light .btn-primary:hover {
    background: linear-gradient(135deg, #3B5FD5, #3451C6);
    box-shadow: 0 6px 16px rgba(65, 105, 225, 0.4);
}

body.theme-light .btn-secondary {
    background: #F5F7FA;
    color: #4169E1;
    border: 1.5px solid #E8EBF0;
}

body.theme-light .btn-secondary:hover {
    background: #E8EBF0;
    border-color: #4169E1;
}

/* Cards - Light Theme */
body.theme-light .stat-card,
body.theme-light .request-card,
body.theme-light .user-card,
body.theme-light .settings-card {
    background: #FFFFFF;
    border: 1px solid #E8EBF0;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.08);
}

body.theme-light .stat-card:hover,
body.theme-light .request-card:hover,
body.theme-light .user-card:hover {
    box-shadow: 0 8px 24px rgba(65, 105, 225, 0.15);
    border-color: #D1D5DB;
}

body.theme-light .stat-card::after,
body.theme-light .request-card::after,
body.theme-light .user-card::after {
    background: radial-gradient(circle, rgba(65, 105, 225, 0.06) 0%, transparent 70%);
}

body.theme-light .stat-value {
    background: linear-gradient(135deg, #4169E1 0%, #6B8DEF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Calendar - Light Theme */
body.theme-light #calendar {
    background: #FFFFFF;
    border: 1px solid #E8EBF0;
    box-shadow: 0 4px 16px rgba(65, 105, 225, 0.1);
}

body.theme-light .calendar-day {
    background: #FAFAFA;
    border-color: #E8EBF0;
}

body.theme-light .calendar-day:hover {
    background: linear-gradient(145deg, #ffffff, #EEF2FF);
    border-color: #4169E1;
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.2);
}

body.theme-light .calendar-day.today {
    background: linear-gradient(145deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%);
    border-color: #4169E1;
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.1),
                0 6px 16px rgba(65, 105, 225, 0.25);
}

body.theme-light .calendar-day-header {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.08), rgba(107, 141, 239, 0.08));
    color: #4169E1;
    font-weight: 700;
}

body.theme-light .leave-indicator {
    background: linear-gradient(135deg, #4169E1, #3B5FD5);
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.4),
                0 0 0 2px #ffffff;
}

/* Status badges - Light Theme */
body.theme-light .status-badge.pending {
    background: #FEF3C7;
    color: #D97706;
}

body.theme-light .status-badge.approved {
    background: #D1FAE5;
    color: #059669;
}

body.theme-light .status-badge.rejected {
    background: #FEE2E2;
    color: #DC2626;
}

/* Forms - Light Theme */
body.theme-light .form-control {
    background: #FAFAFA;
    border: 1.5px solid #E8EBF0;
}

body.theme-light .form-control:focus {
    border-color: #4169E1;
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.1);
    background: #FFFFFF;
}

/* Notifications - Light Theme */
body.theme-light .notification-item {
    background: #FFFFFF;
    border-left-color: #4169E1;
    border: 1px solid #E8EBF0;
}

body.theme-light .notification-item.unread {
    background: linear-gradient(145deg, #EEF2FF 0%, #E0E7FF 50%, #EEF2FF 100%);
    border-left-color: #4169E1;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.12);
}

body.theme-light .notification-item.unread::after {
    background: linear-gradient(135deg, #4169E1, #3B5FD5);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.2),
                0 2px 6px rgba(65, 105, 225, 0.4);
}

/* Modal - Light Theme */
body.theme-light .modal {
    background: rgba(31, 41, 55, 0.4);
}

body.theme-light .modal-content {
    background: #FFFFFF;
    border: 1px solid #E8EBF0;
}

body.theme-light .modal-header {
    background: linear-gradient(135deg, #4169E1, #3B5FD5);
}

/* Login - Light Theme */
body.theme-light .login-container {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%);
}

body.theme-light .login-card {
    background: #FFFFFF;
    border: 1px solid #E8EBF0;
    box-shadow: 0 12px 48px rgba(65, 105, 225, 0.15);
}

body.theme-light .login-card h1 {
    background: linear-gradient(135deg, #4169E1, #3B5FD5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ILUSTRACJE I GRAFIKI - Nowe style v1.6.0
   ============================================ */

/* Empty States */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    min-height: 400px;
}

.empty-state-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.empty-state-action {
    margin-top: var(--spacing-md);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    display: block;
}

.success-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: var(--spacing-sm);
}

.success-modal-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Login Hero */
.login-layout {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--spacing-2xl);
    align-items: center;
}

.login-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.login-hero img {
    width: 100%;
    max-width: 600px;
    height: auto;
    animation: floatAnimation 6s ease-in-out infinite;
}

/* Dashboard Welcome */
.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.dashboard-welcome-image {
    flex-shrink: 0;
    width: 250px;
    height: auto;
}

.dashboard-welcome-content {
    flex: 1;
}

.dashboard-welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.dashboard-welcome-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Error State */
.error-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    text-align: center;
    min-height: 400px;
}

.error-state-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: var(--spacing-lg);
}

.error-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--danger-color);
    margin-bottom: var(--spacing-sm);
}

.error-state-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Background Pattern (optional) */
body.with-pattern {
    background-image: url('images/patterns/bg-pattern.png');
    background-repeat: repeat;
    background-size: 200px 200px;
    background-attachment: fixed;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .login-hero {
        max-width: 400px;
    }

    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-welcome-image {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .login-layout {
        flex-direction: column;
    }

    .login-hero {
        display: none; /* Ukryj na mobile */
    }

    .empty-state-image {
        max-width: 300px;
    }

    .success-modal-image {
        max-width: 250px;
    }

    .dashboard-welcome-image {
        width: 150px;
    }

    .dashboard-welcome {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .dashboard-welcome-title {
        font-size: 1.25rem;
    }

    .dashboard-welcome-text {
        font-size: 0.95rem;
    }

    .view {
        min-height: calc(100vh - 140px);
    }
}

/* Tutorial Modal */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease-out;
}

.tutorial-modal.active {
    display: flex;
}

.tutorial-modal-content {
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.tutorial-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tutorial-close:hover {
    background: var(--danger-light);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.tutorial-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    display: block;
}

.tutorial-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.tutorial-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.tutorial-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

@media (max-width: 768px) {
    .tutorial-modal-content {
        padding: var(--spacing-xl);
    }

    .tutorial-image {
        max-width: 300px;
    }

    .tutorial-title {
        font-size: 1.5rem;
    }

    .tutorial-text {
        font-size: 1rem;
    }

    .tutorial-actions {
        flex-direction: column;
    }

    .tutorial-actions button {
        width: 100%;
    }
}

/* Reports View */
.reports-container {
    max-width: 1400px;
}

.reports-header {
    margin-bottom: var(--spacing-xl);
}

.reports-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.reports-form {
    margin-bottom: var(--spacing-xl);
}

.reports-form h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.form-actions button {
    min-width: 160px;
}

.report-stats {
    margin-bottom: var(--spacing-lg);
}

.report-preview h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.no-data {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.badge-success {
    background: var(--success-light);
    color: var(--success-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .report-preview .table {
        font-size: 0.875rem;
    }

    .report-preview th,
    .report-preview td {
        padding: 8px 4px;
    }
}
