:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --card-bg: rgba(22, 27, 34, 0.95);
    --border-color: #30363d;
    --success: #3fb950;
    --fail: #f85149;
    --pending: #d29922;
    --accent: #58a6ff;
    --glass: rgba(13, 17, 23, 0.8);
}

body {
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

#app-container {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    color: var(--accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.action-btn {
    background: #238636;
    color: white;
    border: 1px solid rgba(240, 246, 252, 0.1);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #2ea043;
}

.media-test-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Report Overlay */
#evaluation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#evaluation-overlay.visible {
    display: flex;
}

.evaluation-card {
    background: var(--card-bg);
    border: 1px solid #444;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
}

#score-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

#checklist-container {
    overflow-y: auto;
    padding: 15px 25px;
    flex: 1;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #21262d;
    gap: 15px;
}

.check-item:last-child {
    border-bottom: none;
}

.check-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.check-message {
    color: #8b949e;
    font-size: 0.85rem;
    display: block;
    margin-top: 2px;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.exito .status-badge {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
}

.fallo .status-badge {
    background: rgba(248, 81, 73, 0.15);
    color: var(--fail);
}

.limitacion .status-badge {
    background: rgba(210, 153, 34, 0.15);
    color: var(--pending);
}

.see-btn {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.see-btn:hover {
    background: var(--accent);
    color: white;
}

/* Visual Logs & Bitácora */
.log-box {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    background: #161b22;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left-width: 4px;
}

.log-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.media-test-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.highlight-effect {
    outline: 5px solid var(--accent) !important;
    outline-offset: 6px;
    box-shadow: 0 0 40px var(--accent) !important;
    position: relative;
    z-index: 100;
    transition: all 0.3s;
}

/* Loading Animation */
.loading::after {
    content: "...";
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        color: rgba(0, 0, 0, 0);
        text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
    }

    40% {
        color: var(--text-color);
        text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
    }

    60% {
        text-shadow: .25em 0 0 var(--text-color), .5em 0 0 rgba(0, 0, 0, 0);
    }

    80%,
    100% {
        text-shadow: .25em 0 0 var(--text-color), .5em 0 0 var(--text-color);
    }
}

#checklist-container::-webkit-scrollbar {
    width: 8px;
}

#checklist-container::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

#checklist-container::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Response for small screens */
@media (max-width: 600px) {
    #visual-logs {
        grid-template-columns: 1fr;
    }

    .media-test-box {
        padding: 15px;
    }
}