/* ============================================================
   1. BASE
============================================================ */

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0f0f0f;
    color: #f5f5f5;
}

label {
    font-size: 13px;
    opacity: 0.8;
    display: block;
    margin-bottom: 3px;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: #2a2a2a;
    color: white;
}

strong[onclick] {
    transition: 0.2s ease;
}

strong[onclick]:hover {
    color: #27ae60;
    transform: scale(1.05);
}


/* ============================================================
   2. LAYOUT
============================================================ */

header {
    background: #1a1a1a;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#burger {
    font-size: 22px;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    top: 60px;
    right: 15px;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 15px;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.dropdown button {
    width: 100%;
    margin: 5px 0;
}


/* ============================================================
   3. GENERIC COMPONENTS
============================================================ */

.card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 16px;
    margin: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease;
}

button {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

button:active {
    transform: scale(0.98);
}

.btn-small {
    padding: 4px 8px;
    border-radius: 6px;
}

.btn {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    color: #fff;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-red   { background: #e74c3c; }
.btn-green { background: #2ecc71; color: #111; }
.btn-blue  { background: #3498db; }
.btn-yellow { background: #f1c40f; color: #111; }
.btn-white  { background: #ffffff; color: #111; border: 1px solid #ccc; }
.btn-orange { background: #e67e22; color: #fff; }
.btn-gray   { background: #7f8c8d; color: #fff; }

.btn-red:hover   { background: #c0392b; }
.btn-green:hover { background: #27ae60; }
.btn-blue:hover  { background: #2980b9; }
.btn-yellow:hover { background: #d4ac0d; }
.btn-white:hover  { background: #f2f2f2; }
.btn-orange:hover { background: #d35400; }
.btn-gray:hover   { background: #6c7a7a; }
/* ============================================================
   4. MODALS
============================================================ */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modalContent {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 18px;
    width: 90%;
    max-width: 450px;
    animation: scaleIn 0.25s ease;
}

.modal-group-box {
    margin-top: 8px;
    padding: 10px;
    background: #141414;
    border: 1px solid #333;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.modal-group-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}


/* ============================================================
   5. HISTORY
============================================================ */

.historyContent {
    background: #1e1e1e;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.historyEntry {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #2a2a2a;
    font-size: 14px;
}

.historyEntry.review {
    border-left: 4px solid #f39c12;
    background: #2d2415;
}


/* ============================================================
   6. USER SYSTEM
============================================================ */

.group-chip {
    background: #333;
    padding: 3px 8px;      /* letzter Wert übernommen */
    border-radius: 14px;   /* letzter Wert übernommen */
    font-size: 12px;
}

.group-edit-box {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px;
    background: #181818;
    max-height: 150px;
    overflow-y: auto;
}

.group-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.group-option:hover {
    background: #222;
}
/* ============================================================
   7. UTILITIES
============================================================ */

.hidden {
    display: none !important;
}


/* ============================================================
   8. ANIMATIONS
============================================================ */

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================================================
   SOFT DELETE VISUAL
========================================================= */

.tournament-deleted {
    opacity: 0.5;
    border: 1px solid #aa3333;
}

.deleted-badge {
    background: #aa3333;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 8px;
}