/* =============================================
   RoboHero – Wspólne style CSS (Comic Book Reskin)
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@400;700&display=swap');

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', 'Segoe UI', sans-serif;
    font-weight: 700;
    background: url('assets/robohero_comic_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #1a1a2e;
    background-blend-mode: overlay;
    min-height: 100vh;
    color: #000;
}

h1, h2, h3, .topbar-brand, .slot-title, .box-title, .modal-title {
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Strona logowania === */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border: 4px solid #000;
    padding: 40px 35px;
    box-shadow: 8px 8px 0px #000;
    position: relative;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 3px 3px 0px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    letter-spacing: 3px;
    margin-bottom: -5px;
}

.login-logo p {
    color: #888;
    font-size: 1rem;
    margin-top: 8px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Comic Neue', sans-serif;
    transition: all 0.2s;
    outline: none;
    box-shadow: 3px 3px 0px #000;
}

.login-form input:focus {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000;
    background: #ffffe0;
}

.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 1.5rem;
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    background: #e74c3c;
    color: white;
    text-shadow: 2px 2px 0px #000;
    transition: all 0.1s ease;
    box-shadow: 5px 5px 0px #000;
    margin-top: 10px;
    text-transform: uppercase;
}

.btn-login:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px #000;
    background: #c0392b;
}

/* === Alerty === */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #060;
    border: 1px solid #cfc;
}

/* === Topbar (admin + klaser) === */
.topbar {
    background: #fff;
    border-bottom: 4px solid #000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 0px rgba(0,0,0,1);
}

.topbar-brand {
    font-size: 1.8rem;
    color: #e74c3c;
    text-shadow: 2px 2px 0px #000;
    -webkit-text-stroke: 1px #000;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
}

.topbar-right a {
    color: #000;
    background: #ffd700;
    border: 2px solid #000;
    padding: 8px 18px;
    border-radius: 0;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.1s;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

.topbar-right a:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000;
    text-decoration: none;
    background: #ffc107;
}

/* === Panel admina – Zakładki === */
.admin-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 12px 28px;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 1.1rem;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
    cursor: pointer;
    background: #f1c40f;
    color: #000;
    transition: all 0.1s;
    box-shadow: 4px 4px 0px #000;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

.tab-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.tab-btn.active {
    background: #e74c3c;
    color: white;
    text-shadow: 2px 2px 0px #000;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.tab-panel {
    display: none;
    background: #fff;
    border: 4px solid #000;
    border-radius: 0;
    padding: 30px;
    box-shadow: 8px 8px 0px #000;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* === Tabele === */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
}
.data-table th:last-child, .data-table td:last-child {
    border-right: none;
}

.data-table {
    border: 3px solid #000;
    border-collapse: collapse;
}

.data-table th {
    background: #3498db;
    color: white;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px #000;
}

.data-table tr:hover {
    background: #ffffe0;
}

.data-table img.thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: 2px 2px 0px #000;
}

/* === Formularze admin === */
.admin-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 20px;
    background: #ecf0f1;
    border: 3px solid #000;
    box-shadow: 6px 6px 0px #000;
}

.admin-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form input,
.admin-form select {
    padding: 10px 14px;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Comic Neue', sans-serif;
    outline: none;
    box-shadow: 3px 3px 0px #000;
}

.admin-form input:focus,
.admin-form select:focus {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000;
    background: #ffffe0;
}

/* === Przyciski ogólne === */
.btn {
    padding: 10px 24px;
    font-size: 1.1rem;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    background: #ecf0f1;
    color: #000;
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 4px 4px 0px #000;
    text-transform: uppercase;
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.btn-primary {
    background: #3498db;
    color: white;
    text-shadow: 2px 2px 0px #000;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    text-shadow: 2px 2px 0px #000;
}

.btn-success {
    background: #2ecc71;
    color: white;
    text-shadow: 2px 2px 0px #000;
}

/* === Tryb lekcji – wybór ucznia === */
.lesson-selector {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 25px;
    background: #ecf0f1;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 6px 6px 0px #000;
}

.lesson-selector select {
    padding: 12px 18px;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Comic Neue', sans-serif;
    min-width: 220px;
    outline: none;
    box-shadow: 3px 3px 0px #000;
}

.lesson-selector .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

/* === Badge epicki === */
.badge-epic {
    display: inline-block;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

/* === Klaser ucznia === */
.klaser-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.klaser-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.klaser-header h2 {
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.klaser-header .stats {
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.klaser-box-section {
    margin-bottom: 35px;
}

.klaser-box-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.klaser-box-title img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.klaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.klaser-sticker {
    background: #fff;
    border: 4px solid #000;
    overflow: hidden;
    box-shadow: 6px 6px 0px #000;
    transition: transform 0.1s;
    position: relative;
}

.klaser-sticker:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #000;
}

.klaser-sticker img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.klaser-sticker .sticker-info {
    padding: 10px 12px;
    text-align: center;
}

.klaser-sticker .sticker-info .name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.klaser-sticker .sticker-info .date {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* Naklejka niezdobyta */
.klaser-sticker.locked img {
    filter: grayscale(1) brightness(0.6);
}

.klaser-sticker.locked .sticker-info .name {
    color: #aaa;
}

.klaser-sticker.locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    font-size: 2.5rem;
    opacity: 0.7;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

/* Naklejka epicka zdobyta */
.klaser-sticker.epic-won {
    border: 3px solid #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* === Slot Machine – Tryb lekcji === */

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.box-card {
    background: #fff;
    border: 4px solid #000;
    border-radius: 0;
    padding: 20px;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 8px 8px 0px #000;
    position: relative;
    overflow: hidden;
}

.box-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0px #000;
}

.chest-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.box-title {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

/* === Modal Slot Machine === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slot-machine {
    background: #fff;
    border: 5px solid #000;
    border-radius: 0;
    padding: 30px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 15px 15px 0px #000;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.chest-opening {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    animation: chestBounce 0.8s ease;
}

.chest-opening img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes chestBounce {
    0% {
        transform: scale(0) rotate(-180deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.slot-title {
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 3px 3px 0px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    margin-bottom: 15px;
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
}

.slot-student-info {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.slot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    min-height: 250px;
}

.slot-item {
    width: 180px;
    height: 180px;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 6px 6px 0px #000;
    border: 4px solid #000;
}

.slot-item.side {
    opacity: 0.4;
    transform: scale(0.75);
    filter: blur(3px);
}

.slot-item.center {
    transform: scale(1.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 5px solid rgba(255, 255, 255, 0.8);
}

.slot-item.center.winner {
    animation: winnerBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes winnerBounce {

    0%,
    100% {
        transform: scale(1.3);
    }

    25% {
        transform: scale(1.5) rotate(5deg);
    }

    50% {
        transform: scale(1.2) rotate(-5deg);
    }

    75% {
        transform: scale(1.4) rotate(3deg);
    }
}

.slot-item.center.epic::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347, #FFD700);
    background-size: 400% 400%;
    border-radius: 30px;
    z-index: -1;
    animation: epicGlow 2s linear infinite;
    filter: blur(8px);
}

.slot-item.center.rare::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #4fc3f7, #0288d1, #b3e5fc, #4fc3f7);
    background-size: 400% 400%;
    border-radius: 30px;
    z-index: -1;
    animation: epicGlow 2s linear infinite;
    filter: blur(8px);
}

@keyframes epicGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.slot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Showcase wygranej */
.winner-showcase {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.winner-showcase.show {
    opacity: 1;
    transform: scale(1);
    animation: showcasePop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes showcasePop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.winner-showcase img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.sticker-name {
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
    margin-top: 10px;
}

.sticker-name.epic {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerFade 2s ease-in-out infinite;
    font-size: 2rem;
}

@keyframes shimmerFade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.epic-badge {
    display: inline-block;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 8px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-spin {
    padding: 15px 35px;
    font-size: 1.3rem;
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 5px 5px 0px #000;
    background: #e74c3c;
    color: white;
    text-shadow: 2px 2px 0px #000;
    text-transform: uppercase;
}

.btn-spin:hover:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px #000;
}

.btn-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-back {
    padding: 15px 35px;
    font-size: 1.3rem;
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 5px 5px 0px #000;
    background: #ecf0f1;
    color: #000;
}

.btn-back:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px #000;
}

/* Confetti */
.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    z-index: 10000;
    pointer-events: none;
}

.confetti.square {
    border-radius: 0;
}

.confetti.circle {
    border-radius: 50%;
}

.confetti.triangle {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* === Loading spinner === */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === Responsive === */
@media (max-width: 1200px) {
    .boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .boxes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .slot-machine {
        padding: 30px 20px;
    }

    .slot-container {
        flex-direction: column;
        gap: 15px;
        min-height: 250px;
    }

    .slot-item {
        width: 180px;
        height: 180px;
    }

    .slot-item.side {
        display: none;
    }

    .slot-item.center {
        transform: scale(1.1);
    }

    .winner-showcase img {
        width: 150px;
        height: 150px;
    }

    .admin-form {
        flex-direction: column;
        align-items: stretch;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .topbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .klaser-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .lesson-selector {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .klaser-header h2 {
        font-size: 1.4rem;
    }

    .klaser-header .stats {
        font-size: 0.8rem;
    }

    .klaser-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .klaser-sticker .sticker-info .name {
        font-size: 0.75rem;
    }

    .klaser-sticker .sticker-info .date {
        font-size: 0.65rem;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .topbar-brand {
        font-size: 1.1rem;
    }

    .topbar-right {
        gap: 8px;
        font-size: 0.8rem;
    }

    .topbar-right a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .data-table img.thumb {
        width: 30px;
        height: 30px;
    }

    .boxes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .chest-image {
        height: 120px;
    }

    .box-title {
        font-size: 1rem;
    }
}

/* === Dark Mode === */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .topbar {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 4px solid #000;
    box-shadow: 0 4px 0px rgba(0,0,0,1);
}

body.dark-mode .tab-panel {
    background: rgba(30, 30, 50, 0.95);
    border: 4px solid #000;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
    color: #e0e0e0;
}

body.dark-mode .tab-panel h2 {
    color: #e0e0e0;
}

body.dark-mode .tab-btn {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .tab-btn.active {
    background: rgba(102, 126, 234, 0.9);
    color: white;
}

body.dark-mode .data-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

body.dark-mode .data-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #ddd;
}

body.dark-mode .data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .admin-form {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .admin-form input,
body.dark-mode .admin-form select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ddd;
}

body.dark-mode .admin-form label {
    color: #aaa;
}

body.dark-mode .login-card {
    background: rgba(30, 30, 50, 0.95);
}

body.dark-mode .login-form input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ddd;
}

body.dark-mode .login-form label {
    color: #bbb;
}

body.dark-mode .login-logo p {
    color: #888;
}

body.dark-mode .klaser-sticker {
    background: rgba(30, 30, 50, 0.95);
}

body.dark-mode .klaser-sticker .sticker-info .name {
    color: #ddd;
}

body.dark-mode .klaser-sticker .sticker-info .date {
    color: #999;
}

body.dark-mode .lesson-selector {
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.3);
}

body.dark-mode .slot-machine {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .slot-title {
    background: linear-gradient(45deg, #667eea, #a855f7);
    -webkit-background-clip: text;
}

body.dark-mode .sticker-name {
    color: #ddd;
}

body.dark-mode .btn-back {
    background: rgba(255, 255, 255, 0.15);
    color: #ddd;
}

body.dark-mode .winner-showcase {
    background: rgba(30, 30, 50, 0.95);
}

body.dark-mode .box-card {
    background: rgba(30, 30, 50, 0.95);
}

body.dark-mode .box-title {
    color: #ddd;
}

body.dark-mode .alert-error {
    background: rgba(200, 0, 0, 0.15);
    border-color: rgba(200, 0, 0, 0.3);
}

body.dark-mode .alert-success {
    background: rgba(0, 200, 0, 0.15);
    border-color: rgba(0, 200, 0, 0.3);
}

/* === Kiosk / Fullscreen === */
:fullscreen .admin-wrapper {
    max-width: 100%;
    padding: 10px 30px;
}

:fullscreen .boxes-grid {
    max-width: 100%;
}

:fullscreen .tab-panel {
    min-height: calc(100vh - 20px);
    border-radius: 0;
}