@import url('assets/fonts/inter.css');

:root {
    --bg: #0D0D0D;
    --surface: #1A1A1A;
    --primary: #FF2E2E;
    --secondary: #B3B3B3;
    --text: #FFFFFF;
    --muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    padding: 20px;
    letter-spacing: 0.5px;
}

body.index-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.register-body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    position: relative;
}

body.result-body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    position: relative;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

body.result-body .container {
    max-width: 800px;
    width: 1080px;
    padding: 60px;
}

body.result-body .result-icon {
    font-size: 120px;
    margin-bottom: 40px;
}

body.result-body h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

body.result-body .subtitle {
    font-size: 24px;
    margin-bottom: 40px;
}

body.result-body .result-name {
    font-size: 36px;
    margin-bottom: 30px;
}

body.result-body .result-message {
    padding: 40px;
    font-size: 28px;
    margin-bottom: 40px;
    background: #1a1a1a;
    border-radius: 20px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.result-body .result-message img {
    max-width: 100%;
    max-height: 800px;
    border-radius: 10px;
    border: 3px solid var(--primary);
}

body.result-body .result-type {
    font-size: 20px;
    padding: 15px 40px;
    margin-bottom: 40px;
}

body.result-body .result-actions .btn {
    font-size: 24px;
    padding: 24px;
    width: 500px;
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    max-width: 1080px;
    max-height: 1920px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.btn-start {
    width: auto;
    height: auto;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: block;
    box-shadow: none !important;
    animation: none !important;
    margin-bottom: 0 !important;
    letter-spacing: normal !important;
    border-radius: 0 !important;
}

.btn-start img {
    width: 100%;
    height: auto;
    display: block;
}

#inputSection {
    width: 100vw;
    height: 100vh;
    max-width: 1080px;
    max-height: 1920px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    z-index: 1;
}

.canvas-wrapper canvas {
    width: 1000px;
    height: 1000px;
    background: transparent;
    cursor: crosshair;
    touch-action: none;
    z-index: 2;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

#submitCanvasBtn, #clearCanvasBtn {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: none !important;
    transform: none !important;
    outline: none !important;
}

#submitCanvasBtn:hover, #clearCanvasBtn:hover,
#submitCanvasBtn:active, #clearCanvasBtn:active,
#submitCanvasBtn:focus, #clearCanvasBtn:focus {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
}

#submitCanvasBtn {
    top: 1230px;
}

#clearCanvasBtn {
    top: 1350px;
}

#submitCanvasBtn img, #clearCanvasBtn img {
    display: block;
    width: auto;
    height: auto;
}

.sending-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.sending-glow {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 8px solid #ff0000;
    box-shadow: 0 0 50px #ff0000, inset 0 0 50px #ff0000;
    animation: sendingPulse 1s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 5px;
}

@keyframes sendingPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 100px #ff0000, inset 0 0 100px #ff0000; }
}


@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 60px rgba(255, 46, 46, 0.5),
                    0 0 100px rgba(255, 46, 46, 0.3),
                    0 20px 40px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 80px rgba(255, 46, 46, 0.7),
                    0 0 120px rgba(255, 46, 46, 0.5),
                    0 25px 50px rgba(0, 0, 0, 0.5);
    }
}

.canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.canvas-wrapper canvas {
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px rgba(255, 46, 46, 0.3);
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 1080px;
    min-height: 1920px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.loading-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: spin 1s linear infinite, glow 1s ease-in-out infinite alternate;
}

.loading-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: spin 1s linear infinite, glow 1s ease-in-out infinite alternate;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 30px rgba(255, 46, 46, 0.5),
                    0 0 60px rgba(255, 46, 46, 0.3);
    }
    100% {
        box-shadow: 0 0 60px rgba(255, 46, 46, 0.8),
                    0 0 100px rgba(255, 46, 46, 0.5),
                    0 0 140px rgba(255, 46, 46, 0.3);
    }
}

body.admin-body {
    display: block;
    padding: 0;
}

.container {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 46, 46, 0.1);
}

h1 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 28px;
    letter-spacing: 1px;
}

.subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

input[type="text"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #2a2a2a;
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 46, 46, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 46, 46, 0.3),
                0 0 20px rgba(255, 46, 46, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(255, 46, 46, 0.4),
                0 0 30px rgba(255, 46, 46, 0.3);
}

.btn-secondary {
    background: #2a2a2a;
    color: var(--text);
}

.btn-secondary:hover {
    background: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-canvas {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 46, 46, 0.3);
}

.input-choice {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.choice-card {
    flex: 1;
    padding: 25px 15px;
    border: 2px solid #2a2a2a;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg);
}

.choice-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 46, 46, 0.2);
    transform: translateY(-3px);
}

.choice-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.2), rgba(255, 46, 46, 0.1));
    box-shadow: 0 0 40px rgba(255, 46, 46, 0.3);
}

.choice-card .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.choice-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.choice-card p {
    font-size: 11px;
    color: var(--muted);
}

.hidden {
    display: none;
}

.canvas-container {
    margin: 20px 0;
    border-radius: 16px;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

#drawingCanvas {
    display: block;
    margin: 0 auto;
    background: transparent;
    border-radius: 16px;
    cursor: crosshair;
    touch-action: none;
}

.canvas-actions,
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.canvas-actions .btn,
.form-actions .btn {
    margin-bottom: 0;
}

.result-container {
    text-align: center;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.result-name {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 600;
}

.result-message {
    padding: 30px;
    background: var(--bg);
    border-radius: 16px;
    margin-bottom: 25px;
    font-size: 18px;
    color: var(--text);
    line-height: 1.6;
    word-wrap: break-word;
    border: 1px solid #2a2a2a;
}

.result-message img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.result-type {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: white;
    border-radius: 25px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 46, 46, 0.3);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.result-actions .btn {
    display: block;
    text-decoration: none;
    text-align: center;
}

.display-container {
    width: 1080px;
    height: 1920px;
    background: url('assets/bg-display.png') center/cover no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.display-content {
    max-width: 900px;
    padding: 40px;
    text-align: center;
    font-size: 48px;
    line-height: 1.4;
    font-weight: 300;
    opacity: 1;
    transition: opacity 1s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 30px rgba(255, 46, 46, 0.5),
                 0 0 40px rgba(255, 46, 46, 0.3);
}

.display-content.fade-out {
    opacity: 0;
}

.display-content img {
    max-width: 100%;
    max-height: 1600px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) 
           drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)) 
           drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)) 
           drop-shadow(0 0 50px rgba(255, 255, 255, 0.3));
}

.display-name {
    position: absolute;
    bottom: 100px;
    font-size: 24px;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 46, 46, 0.5);
}

.display-footer {
    position: absolute;
    bottom: 40px;
    font-size: 16px;
    opacity: 0.5;
    font-weight: 300;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
}

.no-messages .icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.no-messages h2 {
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 600;
}

.no-messages p {
    color: var(--muted);
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 30px 25px;
        border-radius: 16px;
    }

    h1 {
        font-size: 24px;
    }

    .input-choice {
        flex-direction: column;
    }

    .display-container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }

    .display-content {
        font-size: 28px;
    }
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.admin-header h1 {
    margin-bottom: 5px;
}

.admin-header .btn {
    width: auto;
    padding: 10px 20px;
    margin-bottom: 0;
}

.stats-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    flex: 1;
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #2a2a2a;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.message-card.approved {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 46, 46, 0.15);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-name {
    font-weight: 600;
    font-size: 16px;
}

.message-type {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #2a2a2a;
    color: var(--muted);
}

.message-type.image {
    background: rgba(255, 46, 46, 0.2);
    color: var(--primary);
}

.message-date {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 15px;
}

.message-preview {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 150px;
    overflow: hidden;
}

.message-preview p {
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.message-preview img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 46, 46, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.col-actions {
    width: 60px;
    text-align: center;
}

.btn-delete {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: rgba(255, 46, 46, 0.2);
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

@media (max-width: 480px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header .btn {
        width: 100%;
    }

    .stats-bar {
        flex-direction: column;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.login-wrapper {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary);
}

.login-header p {
    color: var(--muted);
    font-size: 14px;
}

.error-msg {
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    padding: 10px;
    background: rgba(255, 46, 46, 0.1);
    border-radius: 8px;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background: var(--surface);
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid #2a2a2a;
}

.sidebar-header h2 {
    font-size: 20px;
    color: var(--primary);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 46, 46, 0.1);
    color: var(--primary);
}

.nav-icon {
    font-size: 18px;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px 15px;
    border-top: 1px solid #2a2a2a;
}

.btn-block {
    width: 100%;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px 40px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.content-header h1 {
    font-size: 28px;
    margin-bottom: 0;
}

.header-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border-radius: 10px;
    font-size: 13px;
    color: var(--secondary);
}

.stat-badge.approved {
    background: rgba(46, 255, 46, 0.1);
    color: #2eff2e;
}

.stat-badge.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-icon {
    font-size: 16px;
}

.table-container {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
}

.messages-table th {
    background: var(--bg);
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    border-bottom: 1px solid #2a2a2a;
}

.messages-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 14px;
    vertical-align: middle;
}

.messages-table tr:last-child td {
    border-bottom: none;
}

.messages-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.messages-table tr.approved {
    background: rgba(255, 46, 46, 0.05);
}

.col-id {
    width: 60px;
    color: var(--muted);
}

.col-name {
    width: 150px;
    font-weight: 600;
}

.col-phone {
    width: 130px;
    color: var(--muted);
}

.col-type {
    width: 100px;
}

.col-preview {
    max-width: 300px;
}

.col-date {
    width: 160px;
    color: var(--muted);
    font-size: 13px;
}

.col-status {
    width: 200px;
}

.type-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    background: #2a2a2a;
    color: var(--muted);
}

.type-badge.image {
    background: rgba(255, 46, 46, 0.15);
    color: var(--primary);
}

.preview-text {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.preview-image {
    max-height: 60px;
    max-width: 120px;
    border-radius: 6px;
    object-fit: contain;
}

.status-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
}

.status-label.active {
    color: #2eff2e;
}

.info-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.info-badge.waiting {
    background: #ffd700;
    color: #000;
}

.info-badge.play {
    background: #2eff2e;
    color: #000;
}

.info-badge.done {
    background: #ff0000;
    color: #fff;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 46, 46, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.loading-row td,
.empty-row td {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
