/* Medieval Calendar - Theme Styles für Tailwind Dark Mode */

/* Mobile Modal Optimierungen */
@media (max-width: 768px) {
    .mobile-modal {
        padding: 1rem !important;
        margin: 0.5rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .mobile-modal .modal-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .mobile-modal input {
        font-size: 16px !important;
        min-height: 48px !important;
        padding: 12px 16px !important;
    }
    
    .mobile-modal button {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    .mobile-modal .space-y-4 > * + * {
        margin-top: 1rem !important;
    }
    
    .mobile-modal .space-y-6 > * + * {
        margin-top: 1.5rem !important;
    }
}

/* Light Mode Hintergrund */
body.light-mode {
    background-image: url('/assets/bilder/papyrus.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
}

/* Dark Mode - kein Hintergrund */
body.dark-mode {
    background: var(--bg-primary);
}

/* Dark Mode (Standard) - Verbesserte Farben */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #262626;
    --text-primary: #f5f5f5;
    --text-secondary: #e5e5e5;
    --text-muted: #d4d4d4;
    --border-color: #404040;
    --nav-bg: #1a1a1a;
    --nav-text: #fbbf24;
    --nav-hover: #f59e0b;
    --btn-primary-bg: #f59e0b;
    --btn-primary-hover: #d97706;
    --btn-outline-border: #f59e0b;
    --btn-outline-text: #f59e0b;
    --success-bg: #064e3b;
    --success-text: #6ee7b7;
    --warning-bg: #451a03;
    --warning-text: #fbbf24;
    --danger-bg: #450a0a;
    --danger-text: #fca5a5;
    --input-bg: #262626;
    --input-border: #404040;
    --input-focus: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Light Mode (Optional) - Angepasste Farben für Pergament-Hintergrund */
body.light-mode {
    --bg-primary: transparent;                       /* Papyrus bleibt sichtbar */
    --bg-secondary: rgba(255,255,255,0.75);
    --bg-card: rgba(255,255,255,0.94);               /* Container-Hintergrund */
    --text-primary: #111111;                         /* sehr dunkler Text */
    --text-secondary: #333333;                       /* dunkelgrau */
    --text-muted: #555555;                           /* mittelgrau */
    --border-color: #d7c9b5;                         /* warmes, pergamentnahes Border */
    --nav-bg: rgba(255,255,255,0.92);                /* Lesbare, helle Nav */
    --nav-text: #1b1b1b;
    --nav-hover: #5d2e0a;
    --btn-primary-bg: #8b4513;
    --btn-primary-hover: #a0522d;
    --btn-outline-border: #8b4513;
    --btn-outline-text: #5d2e0a;
    --success-bg: #d4edda;
    --success-text: #0f5132;
    --warning-bg: #fff3cd;
    --warning-text: #664d03;
    --danger-bg: #f8d7da;
    --danger-text: #58151c;
    --input-bg: #ffffff;
    --input-border: #8b4513;
    --input-focus: #654321;
    --shadow: 0 6px 14px -6px rgba(0,0,0,.12), 0 4px 10px -4px rgba(0,0,0,.08);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--nav-hover);
    color: var(--nav-text);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.theme-toggle-btn:hover {
    background: var(--nav-hover);
    color: var(--nav-bg);
    transform: scale(1.05);
}

/* Responsive Anpassungen für Theme Toggle */
@media (max-width: 768px) {
    .theme-toggle-btn {
        padding: 0.375rem;
        margin-right: 0.25rem;
    }
    
    .theme-toggle-btn i {
        width: 1rem;
        height: 1rem;
    }
}

/* Angepasste Komponenten für beide Themes */
.medieval-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

/* Light Mode spezifische Styles für medieval-card */
body.light-mode .medieval-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: none;
}

/* Grundlegende Textfarben erzwingen */
body.light-mode p,
body.light-mode li,
body.light-mode span,
body.light-mode label,
body.light-mode small,
body.light-mode .text-medieval-800,
body.light-mode .text-medieval-700,
body.light-mode .text-medieval-300,
body.light-mode .text-medieval-200 {
    color: var(--text-secondary) !important;
}

body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3, 
body.light-mode h4 {
    color: var(--text-primary) !important;
}

/* Optional: bessere Lesbarkeit für „freiliegenden" Text auf Papyrus */
body.light-mode .on-parchment,
body.light-mode .hero-title,
body.light-mode .hero-subtitle {
    text-shadow: 0 1px 2px rgba(255,255,255,0.75);
}

/* Links / Icons im Light Mode */
body.light-mode a { color: var(--btn-outline-text); }
body.light-mode a:hover { color: var(--btn-primary-bg); }
body.light-mode svg, 
body.light-mode [data-lucide] {
    color: currentColor;
    stroke: currentColor;
}

/* Light Mode Container - Solide Hintergründe */
body.light-mode .container,
body.light-mode .bg-white,
body.light-mode .bg-gray-50,
body.light-mode .bg-medieval-50,
body.light-mode .bg-parchment-50,
body.light-mode .medieval-card,
body.light-mode .marktplaner-card,
body.light-mode .teilnehmer-card,
body.light-mode .fc-daygrid-day,
body.light-mode .modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow) !important;
    color: var(--text-primary) !important;
    -webkit-backdrop-filter: saturate(120%) blur(1.5px);
    backdrop-filter: saturate(120%) blur(1.5px);
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Light Mode spezifische Styles für btn-primary */
body.light-mode .btn-primary {
    background: var(--btn-primary-bg);
    color: #ffffff;
    border: 2px solid var(--btn-primary-hover);
    box-shadow: var(--shadow);
    font-weight: 700;
    text-shadow: none;
}

body.light-mode .btn-primary:hover {
    background: var(--btn-primary-hover);
    border-color: var(--btn-primary-bg);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--btn-outline-border);
    color: var(--btn-outline-text);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--btn-primary-bg);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Light Mode spezifische Styles für btn-outline */
body.light-mode .btn-outline {
    background: var(--bg-card);
    border: 2px solid var(--btn-outline-border);
    color: var(--btn-outline-text);
    font-weight: 700;
    text-shadow: none;
}

body.light-mode .btn-outline:hover {
    background: var(--btn-primary-bg);
    color: #ffffff;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Input Fields - Höhere Spezifität für Tailwind CSS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="file"],
textarea,
select,
.input-field {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 0.5rem !important;
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
}

/* Light Mode spezifische Styles für Input Fields */
body.light-mode input[type="text"],
body.light-mode input[type="email"],
body.light-mode input[type="password"],
body.light-mode input[type="url"],
body.light-mode input[type="tel"],
body.light-mode input[type="number"],
body.light-mode input[type="date"],
body.light-mode input[type="time"],
body.light-mode input[type="search"],
body.light-mode input[type="file"],
body.light-mode textarea,
body.light-mode select,
body.light-mode .input-field {
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.1);
    font-weight: 600;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus,
.input-field:focus {
    outline: none !important;
    border-color: var(--input-focus) !important;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Light Mode spezifische Styles für Input Focus */
body.light-mode input[type="text"]:focus,
body.light-mode input[type="email"]:focus,
body.light-mode input[type="password"]:focus,
body.light-mode input[type="url"]:focus,
body.light-mode input[type="tel"]:focus,
body.light-mode input[type="number"]:focus,
body.light-mode input[type="date"]:focus,
body.light-mode input[type="time"]:focus,
body.light-mode input[type="search"]:focus,
body.light-mode input[type="file"]:focus,
body.light-mode textarea:focus,
body.light-mode select:focus,
body.light-mode .input-field:focus {
    border-color: var(--input-focus);
    box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.2), 0 0 0 3px rgba(139, 69, 19, 0.2);
    background: var(--input-bg);
    color: var(--text-primary);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="date"]::placeholder,
input[type="time"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder,
.input-field::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7 !important;
}

/* Light Mode spezifische Styles für Placeholder */
body.light-mode input[type="text"]::placeholder,
body.light-mode input[type="email"]::placeholder,
body.light-mode input[type="password"]::placeholder,
body.light-mode input[type="url"]::placeholder,
body.light-mode input[type="tel"]::placeholder,
body.light-mode input[type="number"]::placeholder,
body.light-mode input[type="date"]::placeholder,
body.light-mode input[type="time"]::placeholder,
body.light-mode input[type="search"]::placeholder,
body.light-mode textarea::placeholder,
body.light-mode .input-field::placeholder {
    color: var(--btn-outline-text);
    opacity: 0.8;
    font-weight: 600;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.badge-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(12, 74, 110, 0.2);
}

.badge-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid rgba(146, 64, 14, 0.2);
}

.badge-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(153, 27, 27, 0.2);
}

.badge-primary {
    background-color: var(--btn-primary-bg);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Light Mode spezifische Styles für Badges */
body.light-mode .badge-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 2px solid var(--success-text);
    font-weight: 700;
    text-shadow: none;
}

body.light-mode .badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 2px solid var(--warning-text);
    font-weight: 700;
    text-shadow: none;
}

body.light-mode .badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 2px solid var(--danger-text);
    font-weight: 700;
    text-shadow: none;
}

body.light-mode .badge-primary {
    background: var(--btn-primary-bg);
    color: #ffffff;
    border: 2px solid var(--btn-primary-hover);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

body.light-mode .badge-secondary {
    background: var(--bg-card);
    color: var(--btn-outline-text);
    border: 2px solid var(--btn-outline-border);
    font-weight: 700;
    text-shadow: none;
}

/* Navigation Anpassungen */
nav {
    background-color: var(--nav-bg) !important;
    color: var(--nav-text) !important;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

nav a {
    color: var(--nav-text) !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    color: var(--nav-hover) !important;
    transform: translateY(-1px);
}

/* Light Mode spezifische Styles für Navigation */
body.light-mode nav {
    background: var(--nav-bg);
    color: var(--nav-text);
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: saturate(120%) blur(6px);
    backdrop-filter: saturate(120%) blur(6px);
}

body.light-mode nav a {
    color: var(--nav-text);
    font-weight: 700;
    text-shadow: none;
}

body.light-mode nav a:hover {
    color: var(--nav-hover);
    text-shadow: none;
    transform: translateY(-1px);
}

/* FullCalendar Anpassungen */
.fc {
    color: var(--text-primary);
}

.fc-toolbar-title {
    color: var(--text-primary);
    font-weight: 700;
}

.fc-button {
    background-color: var(--btn-primary-bg) !important;
    border-color: var(--btn-primary-bg) !important;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.fc-button:hover {
    background-color: var(--btn-primary-hover) !important;
    border-color: var(--btn-primary-hover) !important;
    transform: translateY(-1px) !important;
}

.fc-daygrid-day {
    background-color: var(--bg-card);
    border-color: var(--border-color) !important;
}

.fc-daygrid-day:hover {
    background-color: var(--bg-secondary);
}

.fc-event {
    border-radius: 0.375rem;
    border: none;
    font-weight: 600;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.fc-event-approved {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(12, 74, 110, 0.2);
}

.fc-event-pending {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid rgba(146, 64, 14, 0.2);
}

.fc-event-rejected {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(153, 27, 27, 0.2);
}

/* Light Mode spezifische Styles für FullCalendar */
body.light-mode .fc {
    color: var(--text-primary);
}

body.light-mode .fc-toolbar-title {
    color: var(--text-primary);
    font-weight: 800;
    text-shadow: none;
}

body.light-mode .fc-button {
    background: var(--btn-primary-bg) !important;
    border: 2px solid var(--btn-primary-hover) !important;
    box-shadow: var(--shadow) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

body.light-mode .fc-button:hover {
    background: var(--btn-primary-hover) !important;
    border-color: var(--btn-primary-bg) !important;
    box-shadow: var(--shadow) !important;
    transform: translateY(-2px) !important;
}

body.light-mode .fc-daygrid-day {
    background: var(--bg-card);
    border-color: var(--border-color) !important;
    color: var(--text-primary);
}

body.light-mode .fc-daygrid-day:hover {
    background: var(--bg-secondary);
    box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.12);
}

body.light-mode .fc-event-approved {
    background: var(--success-bg);
    color: var(--success-text);
    border: 2px solid var(--success-text);
    font-weight: 700;
    text-shadow: none;
}

body.light-mode .fc-event-pending {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 2px solid var(--warning-text);
    font-weight: 700;
    text-shadow: none;
}

body.light-mode .fc-event-rejected {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 2px solid var(--danger-text);
    font-weight: 700;
    text-shadow: none;
}

/* Body Background */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode spezifische Styles für Body */
body.light-mode {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
}

/* Light Mode spezifische Styles für Marktplaner-Karten */
body.light-mode .marktplaner-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow: var(--shadow) !important;
    color: var(--text-primary) !important;
}

body.light-mode .marktplaner-card h2,
body.light-mode .marktplaner-card h3 {
    color: var(--text-primary) !important;
}

body.light-mode .marktplaner-card p {
    color: var(--text-secondary) !important;
}

body.light-mode .marktplaner-card label {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Light Mode spezifische Styles für Teilnehmer-Karten */
body.light-mode .teilnehmer-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.light-mode .teilnehmer-card h4 {
    color: var(--text-primary) !important;
}

body.light-mode .teilnehmer-card p {
    color: var(--text-secondary) !important;
}

body.light-mode .teilnehmer-card span {
    color: var(--text-muted) !important;
}

/* Smooth Transitions für alle Elemente */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Scrollbar Anpassungen */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Light Mode spezifische Styles für Scrollbar */
body.light-mode ::-webkit-scrollbar-track {
    background: var(--bg-card);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: var(--btn-primary-bg);
    border: 2px solid var(--bg-card);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--btn-primary-hover);
}

/* Modal System */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Modal Form Styles */
.modal-body .input-field {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
}

.modal-body .input-field:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

/* Modal Button Styles */
.modal-body .btn-primary,
.modal-body .btn-outline {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
}

/* Modal Responsive */
@media (max-width: 640px) {
    .modal-container {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem auto;
        border-radius: 0.75rem;
    }
    
    .modal-header {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 4rem);
        overflow-y: auto;
    }
    
    .modal-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .modal-close {
        padding: 0.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }
}

/* Tablet Optimierungen */
@media (min-width: 641px) and (max-width: 1024px) {
    .modal-content {
        width: 80%;
        max-width: 600px;
    }
    
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Zusätzliche Verbesserungen */
.text-medieval-800 {
    color: var(--text-primary);
}

.text-medieval-700 {
    color: var(--text-secondary);
}

.text-medieval-300 {
    color: var(--text-muted);
}

.text-medieval-200 {
    color: var(--text-muted);
}

/* Hover Effekte für Karten */
.medieval-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Focus Styles für bessere Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--input-focus);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: var(--btn-primary-bg);
    color: white;
}

::-moz-selection {
    background-color: var(--btn-primary-bg);
    color: white;
} 

/* Event Request Styles - Für preview.php und request.php */
.change-item {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 1.5rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1rem !important;
    background: var(--bg-card) !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Dark Mode spezifische Styles für .change-item */
.dark .change-item {
    background: #262626 !important;
    border-color: #404040 !important;
    color: #f5f5f5 !important;
}

/* Zusätzliche Dark Mode Styles für change-item Inhalte */
.dark .change-item .text-medieval-800 {
    color: #f5f5f5 !important;
}

.dark .change-item .text-medieval-700 {
    color: #e5e5e5 !important;
}

.dark .change-item .text-medieval-300 {
    color: #d4d4d4 !important;
}

.dark .change-item .text-medieval-200 {
    color: #f5f5f5 !important;
}

.dark .change-item label {
    color: #e5e5e5 !important;
}

/* Dark Mode Styles für leere Bereiche und Container */
.dark .change-item .bg-yellow-50 {
    background: #451a03 !important;
}

.dark .change-item .bg-yellow-900\/20 {
    background: rgba(120, 53, 15, 0.2) !important;
}

/* Dark Mode Styles für Status-Klassen */
.dark .change-item.bg-green-50 {
    background: #064e3b !important;
    border-color: #059669 !important;
}

.dark .change-item.bg-red-50 {
    background: #450a0a !important;
    border-color: #dc2626 !important;
}

.dark .change-item.bg-yellow-50 {
    background: #451a03 !important;
    border-color: #f59e0b !important;
}

/* Dark Mode Styles für alle Text-Elemente in change-item */
.dark .change-item div {
    color: #f5f5f5 !important;
}

.dark .change-item strong {
    color: #fbbf24 !important;
}

/* Dark Mode Styles für Genehmigen/Ablehnen Buttons */
.dark .change-item .btn-approve {
    background: #059669 !important;
    border-color: #059669 !important;
    color: white !important;
}

.dark .change-item .btn-approve:hover {
    background: #047857 !important;
    border-color: #047857 !important;
}

.dark .change-item .btn-reject {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
}

.dark .change-item .btn-reject:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

.change-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.change-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.change-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.btn-approve, .btn-reject {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
    text-decoration: none;
}

.btn-approve {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-approve:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-reject {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-reject:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Status-Badge Styles für bessere Sichtbarkeit */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.input-field {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input-border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-message.success {
    background: #10b981;
}

.toast-message.error {
    background: #ef4444;
}

.toast-message.warning {
    background: #f59e0b;
}

.toast-message.info {
    background: #3b82f6;
} 