/* ===========================
   GLOBAL BAS
   =========================== */

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #0a0a0a;
    color: #e5e7eb;
}

/* ===========================
   SIDEBAR (DESKTOP)
   =========================== */

.sidebar {
    width: 240px;
    background: #1a1a1a;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar .logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.poker-sidebar a,
.poker-sidebar button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin: 10px 0;
    background: rgba(76, 201, 240, 0.15);
    border: 1px solid rgba(76, 201, 240, 0.4);
    border-radius: 12px;
    color: #d8eefe;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 0 12px rgba(76, 201, 240, 0.25);
    cursor: pointer;
}

/* ===========================
   MAIN CONTENT (DESKTOP)
   =========================== */

.main {
    margin-left: 260px;
    padding: 30px;
    width: calc(100% - 260px);
    box-sizing: border-box;
}

.card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
}

/* ===========================
   POKERKLOCKA
   =========================== */

.clock-container {
    width: 100%;
    max-width: 900px;
}

.timer-display {
    padding: 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    text-align: center;
}

#level { font-size: 40px; margin-bottom: 10px; }
#blinds { font-size: 34px; margin-bottom: 20px; }
#time {
    font-size: 110px;
    font-weight: bold;
}

/* ===========================
   ADMIN-KNAPPAR
   =========================== */

.controls button {
    margin: 5px;
    padding: 10px 20px;
    background: rgba(76,201,240,0.2);
    border: 1px solid rgba(76,201,240,0.5);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

/* ===========================
   MOBILVERSION
   =========================== */

@media (max-width: 900px) {

    /* Dölj sidomenyn */
    .sidebar {
        display: none;
    }

    /* Toppmeny */
    .mobile-nav {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 12px;
        background: #1a1a1a;
        border-bottom: 1px solid rgba(76, 201, 240, 0.3);
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .mobile-nav .poker-btn {
        flex: 1;
        padding: 12px;
        font-size: 16px;
        margin: 0;
    }

    /* Main fullbredd */
    .main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px !important;
    }

    /* Pokerklocka */
    #time {
        font-size: 70px !important;
    }

    #level, #blinds {
        font-size: 26px !important;
    }

    .timer-display {
        padding: 20px !important;
    }

    /* Admin-knappar i två kolumner */
    .controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .controls button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
    }
}
/* ====== PUBLIC CLOCK UI UPGRADE ====== */

body {
    background: linear-gradient(135deg, #0a0f24, #1a2340);
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

#time {
    font-size: 120px;
    font-weight: bold;
    margin-top: 20px;
    text-shadow: 0 0 20px #00aaff;
}

.warning {
    background: #8b0000 !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { background-color: #8b0000; }
    50% { background-color: #ff4444; }
    100% { background-color: #8b0000; }
}

.level-change {
    animation: flash 2s ease;
}

@keyframes flash {
    0% { color: yellow; transform: scale(1.2); }
    100% { color: white; transform: scale(1); }
}

#nextLevelBox, #nextBreakBox {
    margin-top: 20px;
    font-size: 28px;
    opacity: 0.9;
}
/* ===== NY PUBLIK-UI FÖR POKERCLOCK ===== */

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #1b2b4a 0, #050814 60%, #000000 100%);
    color: #f5f5f5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.clock-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
}

.clock-header {
    text-align: center;
    margin-bottom: 20px;
}

.tournament-name {
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9fd5ff;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.7);
}

.clock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.level-info {
    text-align: center;
    margin-bottom: 10px;
}

.level-text {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 5px;
}

.blinds-text {
    font-size: 28px;
    opacity: 0.9;
}

.time-display {
    font-size: 140px;
    font-weight: 700;
    margin-top: 10px;
    text-shadow: 0 0 25px rgba(0, 200, 255, 0.9);
}

/* Footer-info: kommande nivå & nästa break */

.clock-footer {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-box {
    background: rgba(10, 20, 40, 0.9);
    border-radius: 12px;
    padding: 15px 25px;
    min-width: 260px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
    border: 1px solid rgba(0, 180, 255, 0.5);
}

.info-box .label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.info-box .value {
    font-size: 22px;
    font-weight: 500;
}

/* 10-sekundersvarning */

.warning {
    animation: warning-bg 1s infinite;
}

@keyframes warning-bg {
    0% { background-color: #3b0000; }
    50% { background-color: #8b0000; }
    100% { background-color: #3b0000; }
}

/* Nivåbyte-animation */

.level-change {
    animation: level-flash 1.5s ease;
}

@keyframes level-flash {
    0% { color: #ffe066; transform: scale(1.15); }
    100% { color: #f5f5f5; transform: scale(1); }
}

/* Responsiv anpassning */

@media (max-width: 768px) {
    .time-display {
        font-size: 80px;
    }

    .level-text {
        font-size: 28px;
    }

    .blinds-text {
        font-size: 20px;
    }

    .info-box {
        min-width: 200px;
        padding: 10px 15px;
    }

    .tournament-name {
        font-size: 22px;
    }
}
