:root {
    --primary: #ff6b9c;
    --primary-light: #ff9ec6;
    --primary-dark: #e05a87;
    --secondary: #a5d8ff;
    --accent: #c8a5ff;
    --light: #f4f4f4;
    --dark: #343a40;
    --success: #9ce3b8;
    --warning: #ffd6a5;
    --danger: #ffadad;
    --info: #bdb2ff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --fruehschicht: #a5d8ff;
    --spaetschicht: #9ce3b8;
    --urlaub: #c8a5ff;
    --frei: #ffd6a5;
    --background: linear-gradient(135deg, #f9f7fe 0%, #f2eefe 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--background);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 156, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(165, 216, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(200, 165, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Logo Styles */
.logo {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--primary);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 156, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo h1 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.logo-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 0;
}

.logo-small .logo-icon {
    font-size: 2.2rem;
    margin: 0;
    animation: none;
}

.logo-small h1 {
    font-size: 1.8rem;
    margin: 0;
}

/* Auth Styles */
.auth-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--card-shadow);
    max-width: 450px;
    margin: 80px auto;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.auth-container:hover::before {
    left: 100%;
}

.auth-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.auth-container h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.8rem;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 156, 0.2);
    background: var(--white);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: var(--gray);
    font-weight: 400;
}

/* Button Styles */
button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

button::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;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 156, 0.4);
}

button:active {
    transform: translateY(-1px);
}

button:disabled {
    background-color: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button:disabled:hover::before {
    left: -100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: 100%;
    padding: 1.3rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-pink {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-fruehschicht {
    background: linear-gradient(135deg, var(--fruehschicht) 0%, #74c0fc 100%);
    color: #1c3b5a;
}

.btn-fruehschicht:hover {
    background: linear-gradient(135deg, #8bc8ff 0%, #4dabf7 100%);
    color: #1c3b5a;
}

.btn-spaetschicht {
    background: linear-gradient(135deg, var(--spaetschicht) 0%, #69db7c 100%);
    color: #1b3d2f;
}

.btn-spaetschicht:hover {
    background: linear-gradient(135deg, #a9e7b8 0%, #51cf66 100%);
    color: #1b3d2f;
}

.btn-urlaub {
    background: linear-gradient(135deg, var(--urlaub) 0%, #9775fa 100%);
    color: #2a2045;
}

.btn-urlaub:hover {
    background: linear-gradient(135deg, #d0bfff 0%, #845ef7 100%);
    color: #2a2045;
}

.btn-frei {
    background: linear-gradient(135deg, var(--frei) 0%, #ffa94d 100%);
    color: #5c3809;
}

.btn-frei:hover {
    background: linear-gradient(135deg, #ffdeac 0%, #ff922b 100%);
    color: #5c3809;
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
}

.btn-lg {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    min-height: 64px;
}

/* Dashboard Styles */
.dashboard {
    display: block;
    background-color: var(--white);
    border-radius: 25px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    min-height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.dashboard:hover {
    box-shadow: var(--card-hover);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 800;
    letter-spacing: -0.5px;
}

#current-month {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* User Info Styles */
.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Tabs Styles */
.tabs {
    display: flex;
    background-color: var(--light);
    border-bottom: 1px solid var(--gray-light);
    position: relative;
}

.tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-light), transparent);
}

.tab {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    flex: 1;
    justify-content: center;
    position: relative;
    background: none;
    border: none;
    font-size: 1rem;
}

.tab:hover {
    color: var(--primary);
    background-color: rgba(255, 107, 156, 0.1);
}

.tab.active {
    color: var(--primary);
    background-color: var(--white);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.tab-icon {
    font-size: 1.3rem;
    transition: var(--transition);
}

.tab.active .tab-icon {
    transform: scale(1.1);
}

.tab-badge {
    background: var(--primary);
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.tab-content {
    padding: 2.5rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--light);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-light);
}

.calendar-controls h2 {
    color: var(--dark);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.month-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.month-nav-btn {
    background-color: var(--white);
    color: var(--dark);
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid var(--gray-light);
    transition: var(--transition);
}

.month-nav-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 107, 156, 0.3);
}

.view-toggle {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    padding: 4px;
    border: 2px solid var(--gray-light);
}

.view-option {
    padding: 8px 16px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--gray);
}

.view-option.active {
    background: var(--primary);
    color: var(--white);
}

/* Calendar Styles */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.calendar-header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 15px;
    color: var(--white);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--card-shadow);
}

.day {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 15px;
    padding: 15px;
    min-height: 160px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--card-shadow);
}

.day:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
    border-color: var(--primary-light);
}

.day-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
    align-items: center;
}

.date {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.day-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.day-events {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shift-info {
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 60px;
    border-left: 4px solid;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.shift-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.shift-info.fruehschicht {
    background: linear-gradient(135deg, var(--fruehschicht) 0%, #a5d8ff 100%);
    color: #1c3b5a;
    border-left-color: #4dabf7;
}

.shift-info.spaetschicht {
    background: linear-gradient(135deg, var(--spaetschicht) 0%, #9ce3b8 100%);
    color: #1b3d2f;
    border-left-color: #40c057;
}

.shift-info.urlaub {
    background: linear-gradient(135deg, var(--urlaub) 0%, #c8a5ff 100%);
    color: #2a2045;
    border-left-color: #9775fa;
}

.shift-info.frei {
    background: linear-gradient(135deg, var(--frei) 0%, #ffd6a5 100%);
    color: #5c3809;
    border-left-color: #ffa94d;
}

.shift-time {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 4px;
    font-weight: 500;
}

.shift-controls {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shift-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.shift-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin-bottom: 0;
    background-color: var(--gray-light);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

.shift-option::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.5s;
}

.shift-option:hover::before {
    left: 100%;
}

.shift-option:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shift-option.fruehschicht:hover {
    background-color: var(--fruehschicht);
    color: #1c3b5a;
}

.shift-option.spaetschicht:hover {
    background-color: var(--spaetschicht);
    color: #1b3d2f;
}

.shift-option.urlaub:hover {
    background-color: var(--urlaub);
    color: #2a2045;
}

.shift-option.frei:hover {
    background-color: var(--frei);
    color: #5c3809;
}

.shift-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    vertical-align: middle;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.quick-action {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-light);
    cursor: pointer;
}

.quick-action:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.quick-action-text {
    font-weight: 600;
    color: var(--dark);
}

/* Stats Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
    opacity: 0.8;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    margin: 15px 0;
    color: var(--primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.stat-change.positive {
    background: var(--success);
    color: #1b3d2f;
}

.stat-change.negative {
    background: var(--danger);
    color: #721c24;
}

/* Chart Styles */
.chart-container {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-top: 30px;
    border: 1px solid var(--gray-light);
    position: relative;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 10px;
}

.chart-period {
    padding: 8px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.chart-period.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* History Styles */
.history-container {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-top: 30px;
    border: 1px solid var(--gray-light);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.history-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.history-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.history-list {
    list-style: none;
}

.history-item {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 156, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.history-item:hover::before {
    opacity: 1;
}

.history-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.history-date {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
    min-width: 120px;
}

.history-type {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    text-align: center;
}

.history-type.fruehschicht {
    background: var(--fruehschicht);
    color: #1c3b5a;
}

.history-type.spaetschicht {
    background: var(--spaetschicht);
    color: #1b3d2f;
}

.history-type.urlaub {
    background: var(--urlaub);
    color: #2a2045;
}

.history-type.frei {
    background: var(--frei);
    color: #5c3809;
}

.history-details {
    flex-grow: 1;
    padding: 0 20px;
    color: var(--gray);
}

.history-actions {
    display: flex;
    gap: 10px;
}

.history-action {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: var(--gray-light);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.history-action:hover {
    background: var(--primary);
    color: var(--white);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 25px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(40px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.modal-header h3 {
    color: var(--dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    background: none;
    border: none;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--primary);
    transform: scale(1.1);
    background-color: var(--gray-light);
}

.time-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.time-inputs .form-group {
    flex: 1;
    margin-bottom: 0;
}

.time-inputs input {
    text-align: center;
    font-weight: 600;
}

.comment-input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    min-height: 120px;
    transition: var(--transition);
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 156, 0.2);
}

/* Empty day styling */
.day.empty {
    background-color: transparent;
    border: 1px dashed var(--gray-light);
    cursor: default;
    box-shadow: none;
}

.day.empty:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gray-light);
}

/* Special styling for current day */
.day.current-day {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 156, 0.2);
    background: linear-gradient(135deg, var(--primary-ultralight) 0%, var(--white) 100%);
}

.day.current-day .day-number {
    background: var(--primary);
    color: var(--white);
}

/* Weekend styling */
.day.weekend {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
}

.day.weekend .date {
    color: var(--danger);
}

/* Holiday styling */
.day.holiday {
    background: linear-gradient(135deg, var(--warning) 0%, var(--white) 100%);
}

.day.holiday .date {
    color: var(--danger);
    font-weight: 700;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 107, 156, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 156, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

/* Message Styles */
.message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    border-left: 4px solid;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: var(--success);
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger);
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: var(--warning);
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: var(--info);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    border-left: 4px solid;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: var(--success);
    color: #155724;
    border-left-color: #155724;
}

.notification.error {
    background: var(--danger);
    color: #721c24;
    border-left-color: #721c24;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--gray-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.footer-link {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

/* Print Styles */
@media print {
    .tabs,
    .shift-controls,
    .month-nav,
    .action-buttons,
    .user-info,
    .quick-actions {
        display: none !important;
    }
    
    .dashboard {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .day {
        break-inside: avoid;
        border: 1px solid #000;
    }
    
    .stat-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #d1005d;
        --primary-dark: #a8004a;
        --gray-light: #d0d0d0;
        --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .day {
        border: 2px solid var(--gray-800);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-icon {
        animation: none;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
    
    .calendar {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 968px) {
    .calendar {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .calendar-header {
        display: none;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1 0 33.333%;
        padding: 1.2rem 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .shift-options {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .history-actions {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .calendar {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tab {
        flex: 1 0 50%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .controls-right {
        justify-content: center;
    }
    
    .user-info {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }
    
    .header-content {
        text-align: center;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .time-inputs {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .calendar {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tab {
        flex: 1 0 100%;
    }
    
    .auth-container {
        margin: 40px auto;
        padding: 2rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .calendar-controls h2 {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calendar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .day {
        min-height: 140px;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .chart-container,
    .history-container {
        padding: 20px;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 10px;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
.close:focus-visible,
.tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background-color: var(--primary-light);
    color: var(--dark);
}

::-moz-selection {
    background-color: var(--primary-light);
    color: var(--dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }

.overflow-hidden { overflow: hidden; }

/* Color Utilities */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-gray { color: var(--gray); }
.text-white { color: var(--white); }

.bg-primary { background-color: var(--primary); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-danger { background-color: var(--danger); }
.bg-info { background-color: var(--info); }
.bg-light { background-color: var(--light); }
.bg-white { background-color: var(--white); }

/* Border Utilities */
.border { border: 1px solid var(--gray-light); }
.border-0 { border: none; }
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Animation Utilities */
.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.5s ease; }
.slide-in-right { animation: slideInRight 0.3s ease; }

/* Responsive Utilities */
.d-md-none { display: none; }
@media (max-width: 768px) {
    .d-md-block { display: block; }
    .d-md-none { display: none; }
}

/* Print Utilities */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}

/* Calendar Subscription Styles */
.subscription-info {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.subscription-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.subscription-method {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.subscription-method h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.url-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.url-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    background: var(--white);
    font-family: monospace;
    font-size: 0.9rem;
}

.subscription-instructions {
    margin-top: 20px;
}

.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.instruction {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
}

.instruction strong {
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

.instruction ol {
    margin-left: 20px;
}

.instruction li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.important-notes {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.important-notes h4 {
    color: #856404;
    margin-bottom: 10px;
}

.important-notes ul {
    list-style: none;
    padding-left: 0;
}

.important-notes li {
    padding: 5px 0;
    color: #856404;
}

.subscription-info h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
}

.subscription-info > p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.color-legend {
    background: var(--light);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.color-legend h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.color-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}