/**
@author Arnis
*/

/* Anpassung des Hintergrundbildes mit fester Größe */
body {
    /* Das Hintergrundbild wird dynamisch via JavaScript gesetzt */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top; /* Zentrale Ausrichtung */
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Medienabfragen für verschiedene Bildschirmgrößen */
@media (max-width: 1920px) {
    body {
        background-size: 1600px 900px; /* Kleinere feste Größe für mittelgroße Bildschirme */
    }
}

@media (max-width: 1200px) {
    body {
        background-size: 100% auto; /* Proportionale Anpassung an die Bildschirmbreite für kleinere Bildschirme */
        background-position: center center;
    }
}

/* Anpassung der vertikalen Ausrichtung für navbar-text */
.navbar-text {
    display: flex;
    align-items: center;
    margin-right: 10px; /* Optional: Abstand zu den Links */
}

/* Stilanpassungen für Charakterauswahl in Raid-Tabelle */
.character-selection-form {
    margin: 0;
}

.character-selection-form select {
    min-width: 150px;
    font-size: 0.9rem;
}

/* Stilanpassungen für Button-Gruppen */
.btn-group {
    display: flex;
}

.btn-group .btn {
    border-radius: 0.25rem;
}

.btn-group .btn:not(:last-child) {
    margin-right: 2px;
}

/* Charakter-Anzeige in der Tabelle */
.text-success {
    font-weight: 500;
}

/* Modale Dialoge für Charakterauswahl */
.modal-body form {
    margin-bottom: 0;
}

.modal-body .form-select {
    margin-bottom: 1rem;
}

.container {
    background-color: white;
    padding: 21px;
    border-radius: .25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Verbessertes Responsive Design */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .container {
        padding: 15px;
        margin-top: 10px !important;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.875rem;
    }
}

/* Bessere Lesbarkeit für Tabellen */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
}

/* Verbesserte Button-Styles */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-info {
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hervorhebung der Zeilen bei Hover */
.table-striped tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Styles für Klassen-Icons in der Raid-Übersicht */
.character-info {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    line-height: 1.2;
}

.character-info:last-child {
    margin-bottom: 0;
}

.class-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.character-name {
    font-weight: bold;
    margin-right: 6px;
    font-size: inherit;
}

.character-class {
    color: #666;
    font-size: inherit;
    font-style: italic;
}

/* Responsive Anpassungen für Klassen-Icons */
@media (max-width: 768px) {
    .class-icon {
        width: 14px;
        height: 14px;
        margin-right: 3px;
    }
    
    .character-class {
        font-size: 0.9em;
    }
}

/* Spezielle Anpassungen für Tabellenzellen mit Charakterinformationen */
.table td .character-info {
    font-size: inherit;
}

.table td .character-name {
    font-weight: 600;
    font-size: inherit;
}

/* Styles für Raid-Reserve-Anzeige */
.table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.table-warning td {
    border-color: rgba(255, 193, 7, 0.2);
}

.reserve-counter {
    color: #856404;
    font-weight: bold;
}

.status-badge {
    font-size: 0.8em;
}


