/* ------------------------------------------------------------------
   TRIALPREP AI - BRIGHT & AIRY THEME
   Clean, modern, professional courtroom simulator.
   ------------------------------------------------------------------ */

/* ----- Reset & Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fa;  /* Soft light gray-blue */
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    color: #1e2a3a;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 1100px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 35px 35px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9edf2;
    transition: box-shadow 0.2s;
}

/* ----- App Title (small, elegant) ----- */
.app-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #0a2540;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 2px solid #eef2f7;
    padding-bottom: 12px;
}

.app-title span {
    font-weight: 300;
    color: #4a6a8b;
}

/* ----- Case Info (horizontal) ----- */
.case-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    background: #f8faff;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #1e2a3a;
}

.case-info span {
    color: #2c3e50;
}

.case-info strong {
    color: #0a2540;
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 12px 0 18px 0;
}

/* ----- Headings ----- */
h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0a2540;
    margin: 16px 0 12px 0;
    letter-spacing: 0.3px;
}

/* ----- Transcript Box (larger, light) ----- */
.transcript {
    background: #fafcff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    max-height: 62vh;
    min-height: 320px;
    overflow-y: auto;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Scrollbar styling (light) */
.transcript::-webkit-scrollbar {
    width: 6px;
}
.transcript::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 10px;
}
.transcript::-webkit-scrollbar-thumb {
    background: #c0cbd8;
    border-radius: 10px;
}
.transcript::-webkit-scrollbar-thumb:hover {
    background: #a0b0c0;
}

/* ----- Each Event ----- */
.event {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.event:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Stage label (tiny, subtle) */
.stage {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7e9c;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

/* Speaker names – distinct but harmonious */
.system {
    color: #6b7e9c;
    font-weight: 500;
}
.judge {
    color: #1e5f8e;
    font-weight: 600;
}
.bailiff {
    color: #2e6b4a;
    font-weight: 500;
}
.clerk {
    color: #6d4c8a;
    font-weight: 500;
}
.attorney {
    color: #1b7a6b;
    font-weight: 500;
}
.defendant {
    color: #a64d3a;
    font-weight: 500;
}

/* Spoken text */
.spoken-text {
    margin-top: 4px;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #1a2634;
}

/* ----- Response Box (compact, bright) ----- */
.responseBox {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px 22px 22px;
    margin-top: 6px;
}

.responseBox h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #0a2540;
}

.responseBox textarea {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    color: #1e2a3a;
    border: 1px solid #d0d9e6;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 5em;
    max-height: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.responseBox textarea:focus {
    outline: none;
    border-color: #3b7cbf;
    box-shadow: 0 0 0 3px rgba(59, 124, 191, 0.15);
}

.responseBox textarea::placeholder {
    color: #9aabbb;
}

/* Buttons */
.responseBox .button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.responseBox button {
    background: #1e5f8e;
    color: #ffffff;
    border: none;
    padding: 11px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.responseBox button:hover {
    background: #134b73;
}

.responseBox button:active {
    transform: scale(0.97);
}

.responseBox button.secondary {
    background: #e2e8f0;
    color: #1e2a3a;
}

.responseBox button.secondary:hover {
    background: #d0d9e6;
}

/* ----- Responsive adjustments ----- */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    .case-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 0.9rem;
    }
    .transcript {
        max-height: 50vh;
        min-height: 200px;
        padding: 14px;
    }
    .app-title {
        font-size: 1.3rem;
    }
    .responseBox textarea {
        min-height: 4em;
    }
    .responseBox button {
        width: 100%;
        justify-content: center;
    }
}
