/* 
 * DL Exam Interface Stylesheet
 * Defines the dark mode theme, layout, and visualization components for the prediction app.
 * Uses CSS Variables for easy theming.
 */
:root {
    --bg-color: #0a0a0a;
    --panel-bg: #141414;
    --text-color: #e0e0e0;
    --accent-color: #00ff88;
    --accent-glow: 0 0 10px rgba(0, 255, 136, 0.5);
    --secondary-color: #2a2a2a;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 40px 20px;
    /* Increased top padding */
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

h1 {
    font-weight: 300;
    font-size: 2.5rem;
    margin: 0;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: var(--accent-glow);
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}

.panel {
    background-color: var(--panel-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
    font-size: 1.2rem;
    color: #888;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #aaa;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color);
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    box-sizing: border-box;
    font-family: inherit;
}

input[type="range"] {
    width: 100%;
}

.row {
    display: flex;
    gap: 15px;
}

.row .form-group {
    flex: 1;
}

button#predictBtn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background-color: var(--accent-color);
    color: black;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s;
}

button#predictBtn:active {
    transform: scale(0.98);
}

/* Visualization Styles */
.viz-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.neural-display {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
}

.probability-ring {
    position: relative;
    width: 200px;
    height: 200px;
}

.probability-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.probability-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.probability-ring .bg {
    stroke: var(--secondary-color);
}

.probability-ring .progress {
    stroke: var(--accent-color);
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    /* Start empty */
    transition: stroke-dashoffset 1s ease-out, stroke 0.5s;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.prob-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.prob-text span {
    display: block;
}

#probPercent {
    font-size: 2.5rem;
    font-weight: bold;
}

.status-msg {
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

/* Metrics */
#metricsBox {
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.metric {
    text-align: center;
}

.metric .label {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.metric .value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
}