/* 
 * Endless Worlds WoW Gildenplattform - Hauptstylesheet
 * Zentrales Design für alle Seiten gemäß Spezifikation
 * Dark Mode, Hover States, Loading States
 */

:root {
    /* Farbpalette */
    --primary-blue: #1e3a8a;
    --primary-blue-dark: #1e2d5a;
    --primary-blue-light: #3b82f6;
    --silver: #94a3b8;
    --gold: #f59e0b;
    --green: #10b981;
    --red: #ef4444;
    --gray-dark: #1f2937;
    --gray-medium: #6b7280;
    --gray-light: #e5e7eb;
    
    /* Dark Mode (einziges Theme) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --link-color: #60a5fa;
    --link-hover: #93c5fd;
}

/* Basis-Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Globale Link-Stile */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

/* Verbesserte Textkontraste */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

p, li, td, th {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Globales Page-Container Layout - einheitliche Abstände */
.page-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 125px);
    max-height: calc(100vh - 125px);
    padding: 0.5rem;
    margin: 0 0.5rem;
    overflow: hidden;
}

.page-container > .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-container .card-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.page-container .card-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.page-container .header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-container .card-body {
    flex: 1;
    padding: 1rem;
    min-height: 0;
    overflow-y: auto;
}

.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--primary-blue-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-blue-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-success {
    background-color: var(--green);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-error {
    background-color: var(--red);
    color: white;
}

.btn-error:hover:not(:disabled) {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-secondary {
    background-color: var(--gray-medium);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* ============================================
   GLOBAL BOX STYLES - Einheitliches Design
   .box und .card verwenden IDENTISCHE Styles
   ============================================ */

/* Gemeinsame Box/Card Styles */
.box,
.card {
    background: #1e2a3a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.box:last-child,
.card:last-child {
    margin-bottom: 0;
}

/* Gemeinsame Header Styles */
.box-header,
.card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8e8e8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-header h2,
.card-header h2,
.box-header .box-title,
.card-header .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8e8e8;
    margin: 0;
}

/* Gemeinsame Body Styles */
.box-body,
.card-body {
    padding: 1rem;
    color: #b0b0b0;
}

/* Header Actions */
.box-header .header-actions,
.card-header .header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Kein Hover-Effekt für spezielle Cards */
.calendar-card:hover {
    transform: none;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fef3c7;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #dbeafe;
}

/* Dark Mode Alerts */
[data-theme="dark"] .alert-success {
    background-color: #14532d;
    color: #bbf7d0;
    border-color: #166534;
}

[data-theme="dark"] .alert-error {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #991b1b;
}

[data-theme="dark"] .alert-warning {
    background-color: #78350f;
    color: #fef3c7;
    border-color: #92400e;
}

[data-theme="dark"] .alert-info {
    background-color: #1e3a8a;
    color: #dbeafe;
    border-color: #1e40af;
}

/* Enhanced Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

[data-theme="dark"] .loading-overlay {
    background-color: rgba(31, 41, 55, 0.9);
}

.loading-dots {
    display: inline-flex;
    gap: 0.25rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 4px;
    transition: width var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal) ease;
}

.slide-in-up {
    animation: slideInUp var(--transition-normal) ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    transition: all var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Enhanced UI Components */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

/* Badges sind nicht interaktiv - kein Hover-Effekt */

.badge-primary {
    background-color: var(--primary-blue);
    color: white;
}

.badge-success {
    background-color: var(--green);
    color: white;
}

.badge-error {
    background-color: var(--red);
    color: white;
}

.badge-warning {
    background-color: var(--gold);
    color: white;
}

/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gray-dark);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gray-dark);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Modal Enhancements - Bootstrap 5 Modal Support */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}

.modal.show .modal-dialog {
    transform: none;
    pointer-events: auto;
}

.modal-dialog-lg {
    max-width: 800px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: var(--text-secondary);
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 0.75;
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: all var(--transition-normal);
}

[data-theme="dark"] .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Focus Styles */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* WoW-spezifische Stile */
.quality-epic { color: #a335ee; }
.quality-rare { color: #0070dd; }
.quality-uncommon { color: #1eff00; }
.quality-legendary { color: #ff8000; }

.role-tank { color: #c41e3a; }
.role-heal { color: #ffffff; }
.role-dps { color: #f58cba; }

.class-warrior { color: #c79c6e; }
.class-paladin { color: #f58cba; }
.class-hunter { color: #abd473; }
.class-rogue { color: #fff569; }
.class-priest { color: #ffffff; }
.class-deathknight { color: #c41e3a; }
.class-shaman { color: #0070de; }
.class-mage { color: #69ccf0; }
.class-warlock { color: #9482ca; }
.class-monk { color: #00ff96; }
.class-druid { color: #ff7d0a; }
.class-demonhunter { color: #a330c9; }
.class-evoker { color: #33937f; }

/* ============================================
   Kalender-spezifische Styles
   ============================================ */
.page-container .calendar-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.page-container .calendar-card .box-body {
    flex: 1;
    padding: 0.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.page-container .calendar-card .box-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

.page-container .calendar-card .box-header h2 {
    font-size: 0.95rem;
    margin: 0;
    color: #e8e8e8;
    font-weight: 600;
}

.page-container .admin-panel {
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.page-container .admin-panel .card {
    margin-bottom: 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.page-container .admin-panel .card-header {
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-container .admin-panel .card-body {
    padding: 0.75rem 1rem;
}

.page-container .admin-panel h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

/* Sessions-spezifische Styles - nutzt globale page-container */

/* Sessions Grid */
.sessions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    width: 100%;
}

/* Session Item - volle Breite */
.session-item {
    background: var(--bg-tertiary, #0f172a);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.session-item:hover {
    background: var(--bg-card);
    border-color: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.session-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.session-item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.session-item-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.session-item-roles {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #334155);
}

.session-item-roles .role-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.session-item-roles .role-count small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.session-item-roles .role-count.total {
    margin-left: auto;
}

/* Legacy session-card support */
.session-card {
    background: var(--bg-tertiary, #0f172a);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem;
}

.session-card .card-body {
    padding: 0;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-color: var(--primary-blue-light);
    background: var(--bg-card);
}

.session-card .card-title {
    color: var(--text-primary);
    font-weight: 600;
}

.session-card .role-counts {
    display: flex;
    gap: 1rem;
}

.session-card .role-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* Info Box für Modals */
.info-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-secondary);
}

/* FullCalendar kompaktere Darstellung */
#raid-calendar {
    max-height: calc(100vh - 180px);
    overflow: hidden;
}

#raid-calendar .fc {
    max-height: calc(100vh - 180px);
}

#raid-calendar .fc-view-harness {
    max-height: calc(100vh - 220px);
}

#raid-calendar .fc-daygrid-body {
    font-size: 0.85rem;
}

#raid-calendar .fc-daygrid-day {
    min-height: 60px;
}

#raid-calendar .fc-daygrid-body {
    height: auto;
}

#raid-calendar .fc-scrollgrid-sync-table {
    height: auto;
}

#raid-calendar .fc-daygrid-day-frame {
    min-height: 45px;
    max-height: 80px;
}

#raid-calendar .fc-toolbar {
    margin-bottom: 0.25rem;
    padding: 0;
}

#raid-calendar .fc-toolbar-title {
    font-size: 1rem;
}

#raid-calendar .fc-button {
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
}

#raid-calendar .fc-col-header-cell {
    padding: 0.2rem 0;
}

/* Body overflow für Raids-Seite */
body.raids-page {
    overflow: hidden;
}

/* Utility-Klassen für Flexbox Layout */
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

/* Raids-Seite spezifische Klassen */
.raids-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.raids-header-actions .btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.raids-header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.raids-header-actions .btn-success {
    background: rgba(16, 185, 129, 0.8);
    border-color: rgba(16, 185, 129, 0.9);
}

.raids-header-actions .btn-success:hover {
    background: rgba(16, 185, 129, 1);
}

.raids-admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.raids-admin-buttons .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.raids-admin-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Verbesserte Calendar-Card */
.page-container .calendar-card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-container .calendar-card .card-body {
    background: var(--bg-card);
}

/* FullCalendar Verbesserungen */
#raid-calendar .fc-toolbar-title {
    color: var(--text-primary);
    font-weight: 600;
}

#raid-calendar .fc-button {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    padding: 0.35rem 0.6rem !important;
    transition: all 0.2s ease !important;
}

#raid-calendar .fc-button:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--primary-blue-light) !important;
}

#raid-calendar .fc-button-active {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #ffffff !important;
}

#raid-calendar .fc-daygrid-day-number {
    color: var(--text-primary);
    font-weight: 500;
}

#raid-calendar .fc-col-header-cell-cushion {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

#raid-calendar .fc-daygrid-day.fc-day-today {
    background: rgba(59, 130, 246, 0.1) !important;
}

#raid-calendar .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#raid-calendar .fc-event {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #ffffff !important;
}

#raid-calendar .fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#raid-calendar .fc-event .fc-event-title,
#raid-calendar .fc-event .fc-event-content,
#raid-calendar .fc-event-main {
    color: #ffffff !important;
}

#raid-calendar .fc-event .fc-event-meta {
    color: rgba(255, 255, 255, 0.85) !important;
}


/* ============================================
   GLOBAL MODAL STYLES - Einheitliches Design
   Verwendet gleiche Farben wie .box und .card
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    pointer-events: none;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.modal-overlay-high {
    z-index: 10000;
}

/* Modal Dialog - Grundgerüst */
.modal-dialog {
    background: #1e2a3a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* Modal Größen */
.modal-dialog.modal-sm {
    max-width: 350px;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-dialog.modal-xl {
    max-width: 1000px;
}

.modal-dialog.raid-modal-wide {
    max-width: 950px;
}

/* Modal Header */
.modal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-header h2,
.modal-header h3,
.modal-header .modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8e8e8;
    margin: 0;
}

/* Modal Body - Konsistentes Padding */
.modal-body,
.modal-dialog > form,
.modal-dialog > div:not(.modal-header):not(.modal-footer) {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    color: #b0b0b0;
}

/* Wenn Form direkt im modal-dialog */
.modal-dialog > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-dialog > form > *:not(button):not(.form-actions):not(.modal-footer) {
    padding-left: 1rem;
    padding-right: 1rem;
}

.modal-dialog > form > *:first-child {
    padding-top: 1rem;
}

/* Modal Footer */
.modal-footer,
.form-actions,
.modal-dialog form > div:last-child:has(button) {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin-top: auto;
}

/* Modal Close Button */
.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #b0b0b0;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #e8e8e8;
}

/* Form-Elemente in Modals */
.modal-dialog .form-group,
.modal-dialog .mb-3 {
    margin-bottom: 1rem;
}

.modal-dialog .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-dialog .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e8e8e8;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-dialog .form-input,
.modal-dialog .form-control,
.modal-dialog .form-select,
.modal-dialog input[type="text"],
.modal-dialog input[type="password"],
.modal-dialog input[type="date"],
.modal-dialog input[type="time"],
.modal-dialog input[type="number"],
.modal-dialog select,
.modal-dialog textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 0.9rem;
}

.modal-dialog input:focus,
.modal-dialog select:focus,
.modal-dialog textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Form Grid Layouts */
.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Info Cards für Raid-Details */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
}

.info-card-icon {
    font-size: 1.25rem;
}

.info-card-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.info-card-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Role Stats Cards */
.role-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.role-stat {
    text-align: center;
    padding: 0.625rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
}

.role-stat-tank {
    border-left: 3px solid var(--primary-blue-light);
}

.role-stat-heal {
    border-left: 3px solid var(--green);
}

.role-stat-dps {
    border-left: 3px solid var(--red);
}

.role-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.role-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Radio Button Groups */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: var(--bg-secondary);
}

.radio-option.status-yes {
    border-color: var(--green);
}

.radio-option.status-maybe {
    border-color: var(--gold);
}

.radio-option.status-no {
    border-color: var(--red);
}

/* ============================================
   Hero Section (Landing Page)
   ============================================ */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0 0 0.5rem 0;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Stats Grid (Quick Stats, Overview)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-value-blue { color: var(--primary-blue-light); }
.stat-value-green { color: var(--green); }
.stat-value-gold { color: var(--gold); }
.stat-value-red { color: var(--red); }

.stat-label {
    color: var(--text-secondary);
}

/* ============================================
   List Items (Raids, Loot, Activities)
   ============================================ */
.list-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-title {
    font-weight: 600;
}

.list-item-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.list-item-value {
    text-align: right;
    color: var(--text-secondary);
}

/* ============================================
   Filter Form Grid
   ============================================ */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-actions {
    grid-column: 1 / -1;
}

/* ============================================
   Charts Grid
   ============================================ */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-container h3 {
    margin-bottom: 1rem;
}

/* ============================================
   Auth Pages (Login, Register)
   ============================================ */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
}

.auth-box {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.auth-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary-blue-light);
}

/* ============================================
   Margin & Spacing Utilities
   ============================================ */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ============================================
   Text Utilities
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--green); }
.text-error { color: var(--red); }
.text-warning { color: var(--gold); }

.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

.font-mono { font-family: monospace; }

/* ============================================
   Display Utilities
   ============================================ */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }

.flex-wrap { flex-wrap: wrap; }

/* ============================================
   Width Utilities
   ============================================ */
.w-100 { width: 100%; }

/* ============================================
   Calendar Container
   ============================================ */
.calendar-container {
    height: 500px;
    min-height: 400px;
}

/* ============================================
   Raid Tooltip
   ============================================ */
.raid-tooltip {
    position: fixed;
    z-index: 10000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px var(--shadow-color);
    max-width: 280px;
    pointer-events: none;
}

.raid-tooltip-title {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.raid-tooltip-subtitle {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 12px;
}

.raid-tooltip-grid {
    display: grid;
    gap: 6px;
    font-size: 0.85em;
}

.raid-tooltip-row {
    display: flex;
    justify-content: space-between;
}

.raid-tooltip-label {
    color: var(--text-secondary);
}

.raid-tooltip-value {
    color: var(--text-primary);
}

.raid-tooltip-roles {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    justify-content: center;
}

.raid-tooltip-role {
    text-align: center;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.raid-tooltip-role-value {
    font-weight: bold;
}

.raid-tooltip-role-label {
    font-size: 0.7em;
    color: var(--text-secondary);
}

.raid-tooltip-note {
    margin-top: 12px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.8em;
    color: var(--text-secondary);
}

.raid-tooltip-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 0.75em;
    color: var(--text-secondary);
}

/* ============================================
   Raid Details Modal
   ============================================ */
.raid-modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.raid-modal-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.raid-modal-info-icon {
    font-size: 20px;
}

.raid-modal-info-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.raid-modal-info-value {
    color: var(--text-primary);
}

.raid-modal-roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.raid-modal-role {
    text-align: center;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.raid-modal-role-tank {
    border-left: 3px solid var(--primary-blue-light);
}

.raid-modal-role-heal {
    border-left: 3px solid var(--green);
}

.raid-modal-role-dps {
    border-left: 3px solid var(--red);
}

.raid-modal-role-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.raid-modal-role-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.raid-modal-note {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-top: 12px;
}

.raid-modal-note-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.raid-modal-note-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.raid-signup-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.raid-signup-form h4 {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

/* ============================================
   FullCalendar Event Content
   ============================================ */
.fc-event-content {
    padding: 2px;
    overflow: hidden;
    color: #ffffff;
}

.fc-event-title {
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fc-event-meta {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Admin Page Styles
   ============================================ */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.admin-card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-card-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-card-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex: 1;
}

.admin-card-body .btn {
    align-self: flex-start;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.security-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.security-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.security-row code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-blue-light);
}

.users-table, .characters-table {
    width: 100%;
    margin-top: 1rem;
}

.users-table th, .characters-table th {
    text-align: left;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.users-table td, .characters-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* ============================================
   Profile Page Styles
   ============================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    height: 100%;
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.profile-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
    word-break: break-all;
}

.profile-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.content-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.characters-container {
    min-height: 100px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.character-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.character-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.character-info strong {
    font-size: 1rem;
}

.character-info .text-muted {
    font-size: 0.8rem;
}

.character-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
}

.character-actions {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.activities-container {
    min-height: 80px;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    border-color: var(--primary-blue);
}

.activity-icon {
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}

.activity-text {
    flex: 1;
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-placeholder p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* ============================================
   Session Detail Styles
   ============================================ */
#sessionDetailModal .modal-dialog {
    max-width: 900px;
    width: 95vw;
}

.sheet-layout {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 1rem;
    min-height: 300px;
}

.sheet-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.raid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.raid-table thead {
    background: var(--bg-tertiary);
}

.raid-table th {
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    border-bottom: 2px solid var(--border-color);
}

.raid-table th:nth-child(3),
.raid-table td.cell-role { text-align: center; width: 50px; }
.raid-table th:nth-child(5),
.raid-table td.cell-edit { width: 35px; text-align: center; }

.raid-row {
    border-left: 3px solid transparent;
}

.raid-row.tank { background: rgba(239, 68, 68, 0.15); border-left-color: var(--red); }
.raid-row.heal { background: rgba(34, 197, 94, 0.15); border-left-color: var(--green); }
.raid-row.dps { background: rgba(59, 130, 246, 0.15); border-left-color: var(--primary-blue-light); }
.raid-row.empty { background: var(--bg-tertiary); }

.raid-row.own-row {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.raid-row td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cell-name { font-weight: 500; color: var(--text-primary); }
.cell-class { color: var(--text-secondary); }
.cell-notes { color: var(--text-muted); font-size: 0.8rem; }
.cell-edit button {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    font-size: 0.9rem;
}
.cell-edit button:hover { opacity: 1; }

.sheet-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stats-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
}

.stats-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 3px;
}

.stats-row.tank { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.stats-row.heal { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.stats-row.dps { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.stats-row.active { background: rgba(34, 197, 94, 0.2); color: #86efac; }

.detail-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.signup-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-btn {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.form-group-btn .btn {
    flex: 1;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .sheet-layout {
        grid-template-columns: 1fr;
    }
    .sheet-right { 
        flex-direction: row; 
        order: -1;
    }
    .stats-box { flex: 1; }
}

/* Raid Modal - Zweispaltiges Layout */
.raid-modal-columns {
    display: flex;
    flex-direction: row !important;
    gap: 1.5rem;
    margin-top: 1rem;
}

.raid-modal-left {
    flex: 0 0 45%;
    min-width: 0;
}

.raid-modal-right {
    flex: 0 0 50%;
    min-width: 0;
    max-height: 350px;
    overflow-y: auto;
}

.raid-modal-right .raid-signups-admin {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
}

.raid-modal-right table {
    font-size: 0.85rem;
}

.raid-modal-right th,
.raid-modal-right td {
    padding: 0.4rem 0.5rem;
}

@media (max-width: 900px) {
    .raid-modal-columns {
        flex-direction: column;
    }
    .raid-modal-right {
        order: -1;
        max-height: 250px;
    }
}

/* Password Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrapper .form-input,
.password-input-wrapper .form-control {
    padding-right: 3rem;
    width: 100%;
}
.password-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    padding: 0.25rem;
}
.password-toggle:hover {
    opacity: 1;
}

/* Raid Modal Layout */
.raid-modal-wide {
    max-width: 950px;
    width: 95%;
}

.raid-modal-columns {
    display: flex;
    gap: 1.5rem;
}

.raid-modal-left {
    flex: 1;
}

.raid-modal-right {
    flex: 0 0 350px;
    max-height: 280px;
    overflow-y: auto;
}

.raid-signup-form-bottom {
    margin-top: 1rem;
}

/* Signup List Styles */
.signup-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.signup-list-item {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    gap: 0.5rem;
}

.signup-list-icon {
    font-size: 0.9rem;
}

.signup-list-name {
    flex: 1;
    min-width: 80px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e8e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signup-list-status {
    font-size: 0.9rem;
}

.signup-list-status.status-yes { color: #10b981; }
.signup-list-status.status-maybe { color: #f59e0b; }
.signup-list-status.status-no { color: #ef4444; }

.signup-list-select {
    padding: 0.15rem 0.25rem;
    font-size: 0.7rem;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.signup-list-delete {
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.signup-list-delete:hover {
    background: #dc2626;
}

/* User Signup Status */
.user-signup-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-signup-icon {
    font-size: 1.25rem;
}

.user-signup-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-signup-select {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Modal High Z-Index */
.modal-overlay-high {
    z-index: 10000;
}

/* Flex Utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-column-gap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Nav Settings List */
.nav-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.nav-settings-label {
    font-size: 1rem;
}

.text-small {
    font-size: 0.85rem;
}

/* Character Selection Cards */
.char-select-cards {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.char-card {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    cursor: pointer;
    position: relative;
}

.char-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.char-card-content {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.char-card input[type="radio"]:checked + .char-card-content {
    border-color: var(--primary-blue-light);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.char-card:hover .char-card-content {
    border-color: var(--primary-blue-light);
}

.char-card-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: var(--gold);
}

.char-card-twink .char-card-badge {
    color: var(--silver);
}

.char-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-card-details {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-card-role {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.twink-select {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

.char-loading {
    color: var(--text-muted);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
}

/* Signup Inline Layout */
.signup-inline {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.status-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.status-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.status-btn input[type="radio"] {
    display: none;
}

.status-btn:hover {
    background: var(--bg-tertiary);
}

.status-btn.status-yes:has(input:checked) {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    color: #10b981;
}

.status-btn.status-maybe:has(input:checked) {
    background: rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
    color: #f59e0b;
}

.status-btn.status-no:has(input:checked) {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ef4444;
}

/* Character Card Highlights */
.character-card.char-main {
    border: 2px solid var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.character-card.char-twink {
    border: 2px solid var(--primary-blue-light);
    background: rgba(59, 130, 246, 0.05);
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
}

.badge.bg-info {
    background: var(--primary-blue-light);
    color: white;
}

/* Profile Loot Section */
.profile-loot-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.profile-loot-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recent-loot-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.loot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.8rem;
}

.loot-name {
    color: var(--text-primary);
    font-weight: 500;
}

.loot-date {
    font-size: 0.7rem;
}
