/* ======================================
   CUSTOM STYLES - Kickerliga Management
   ====================================== */

/* ======================================
   VIDEO BACKGROUND SETUP
   ====================================== */

/* Video-Hintergrund für den Body */
body {
    position: relative;
    margin: 0;
    overflow-x: hidden;
}

/* Video-Hintergrund Element */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.8) contrast(1.2);
}

/* Allgemeine Anpassungen */
:root {
   --primary-gradient: linear-gradient(135deg, #188352 0%, #0a59cd 100%);
}

/* ======================================
   TRANSPARENZ-ANPASSUNGEN FÜR ALLE ELEMENTE
   ====================================== */

/* Cards transparenter machen */
.card {
    background: rgb(33 37 41 / 50%) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.card-header {
    background: rgba(13, 110, 253, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.card-header:first-child {
    background: var(--primary-gradient) !important;
}

.card-body {
  
}

/* Navigationsbar transparenter */
.navbar {
    background: rgba(33, 37, 41, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Tabellen transparenter */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    border-radius: 7px;
    overflow: hidden;
}
.table-responsive > table {
    margin-bottom:0;
}
.table-dark {
    background:transparent !important;
    backdrop-filter: blur(10px) !important;
}

.table-dark th,
.table-dark td {
    background: rgb(33 37 41 / 20%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-color-type: var(--bs-table-striped-color);
    --bs-table-bg-type: #2c30346b;
}
/* Formulare transparenter */
.form-control,
.form-select {
    background: rgba(33, 37, 41, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    background: rgba(33, 37, 41, 0.9) !important;
    border-color: rgba(13, 110, 253, 0.8) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Buttons anpassen */
.btn {
    backdrop-filter: blur(5px) !important;
}

/* List Groups transparenter */
.list-group-item {
    background: rgba(33, 37, 41, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Badges transparenter */
.badge {
    backdrop-filter: blur(5px) !important;
}

/* Alerts transparenter */
.alert {
    background: rgba(33, 37, 41, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Modals transparenter */
.modal-content {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.modal-header {
    background: rgba(13, 110, 253, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.card-header:first-child  .btn {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff;
    border-color: rgba(0, 0, 0, 0.7) !important;
    filter: opacity(0.8);
    backdrop-filter: blur(5px) !important;
}
.card-header:first-child  .btn:hover {
   filter: opacity(1);
   background: rgba(0, 0, 0, 0.9) !important;
}

/* Card-Anpassungen */
.card-custom {
    transition: transform 0.2s ease-in-out;
}

.card-custom:hover {
    transform: translateY(-2px);
}

/* Button-Anpassungen */
.btn-custom {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #c44569 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
}

/* Dashboard-spezifische Styles */
.dashboard-stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
    border-left: 4px solid #0d6efd;
    transition: border-left-color 0.3s ease;
}

.dashboard-stat-card:hover {
    border-left-color: #0a58ca;
}

/* Achievement-Badge-Styles */
.achievement-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* ELO-Rating-Styles */
.elo-rating-display {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Tabellen-Verbesserungen */
.table-custom {
    background-color: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
}

.table-custom th {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    border-bottom: 2px solid #0d6efd;
}

/* Match-Historie-Styles */
.match-result-win {
    border-left: 4px solid #198754;
}

.match-result-loss {
    border-left: 4px solid #dc3545;
}

.match-result-draw {
    border-left: 4px solid #6c757d;
}

/* Navigation-Anpassungen */
.navbar-custom {
    background: linear-gradient(90deg, #292929 0%, #151515 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(13, 110, 253, 0.3);
}

/* Form-Verbesserungen */
.form-floating-custom .form-control {
    background: rgba(39, 39, 39, 0.8);
    border: 1px solid #444;
    backdrop-filter: blur(5px);
}

.form-floating-custom .form-control:focus {
    background: rgba(51, 51, 51, 0.9);
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(42, 42, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .elo-rating-display {
        font-size: 1.25rem;
        padding: 0.75rem;
    }
    
    .achievement-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Animationen */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-on-hover:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Spezielle Erfolgs-/Fehler-Styles */
.success-glow {
    box-shadow: 0 0 20px rgba(25, 135, 84, 0.5);
}

.error-glow {
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

/* Chart-Container-Verbesserungen */
.chart-container {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======================================
   TISCHSEITEN-TRACKING STYLES
   ====================================== */

/* Basis-Seitenstyles */
.side-blue {
    color: #0d6efd !important;
    border-left: 3px solid #0d6efd;
}

.side-white {
    color: #adb5bd !important;
    border-left: 3px solid #6c757d;
}

/* Spieler-Badges mit Seitenkennzeichnung */
.player-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.player-side-badge.side-blue {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.3);
    color: #0d6efd;
}

.player-side-badge.side-white {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    color: #adb5bd;
}

/* Match-Item Seitendarstellung */
.match-item {
    transition: all 0.2s ease;
}

.match-item .player-vs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.match-item .player-name {
    font-weight: 500;
}

.match-item .vs-separator {
    font-weight: bold;
    color: #6c757d;
    margin: 0 0.25rem;
}

/* Seitenstatistik-Cards */
.side-stats-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(108, 117, 125, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.side-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.side-stats-card.preferred-side {
    border-color: #0d6efd;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.2);
}

/* Seitenstatistik-Überschriften */
.side-stats-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.side-stats-header .side-icon {
    font-size: 1.5rem;
}

.side-stats-header.blue {
    color: #0d6efd;
}

.side-stats-header.white {
    color: #adb5bd;
}

/* Win-Rate Anzeige */
.win-rate-display {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.win-rate-display.blue {
    color: #0d6efd;
}

.win-rate-display.white {
    color: #adb5bd;
}

/* Seitenwahl-Formular */
.side-selection {
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.side-selection .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.side-selection .form-select {
    background: rgba(39, 39, 39, 0.8);
    border: 1px solid #444;
    color: #f8f9fa;
}

.side-selection .form-select:focus {
    background: rgba(51, 51, 51, 0.9);
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Seitenverteilung Chart */
.side-distribution-chart {
    max-height: 300px;
    margin: 1rem 0;
}

/* Match-Historie mit Seiten */
.match-history-item {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(42, 42, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.match-history-item:hover {
    background: rgba(42, 42, 42, 0.5);
    transform: translateX(5px);
}

.match-history-item .match-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.match-history-item .match-result {
    font-weight: bold;
    margin-left: auto;
}

/* Responsive Anpassungen für Seitenstyles */
@media (max-width: 768px) {
    .player-side-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .side-stats-header {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .win-rate-display {
        font-size: 1.5rem;
    }
    
    .match-item .player-vs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .vs-separator {
        display: none;
    }
}

/* Seitenpräferenz-Indikator */
.preferred-side-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffd700;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Seitenvergleich-Widget */
.side-comparison-widget {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(108, 117, 125, 0.1) 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.side-comparison-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.side-comparison-stats .blue-stats {
    text-align: left;
    color: #0d6efd;
}

.side-comparison-stats .white-stats {
    text-align: right;
    color: #adb5bd;
}

.side-comparison-stats .vs-divider {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6c757d;
    padding: 0 1rem;
}

@media (max-width: 576px) {
    .side-comparison-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .side-comparison-stats .vs-divider {
        order: 2;
        margin: 0.5rem 0;
    }
}

.custom-shadow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
} 