/* Global Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #224abe;
    --accent-color: #1cc88a;
}

body {
    background-color: #f8f9fc;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Game Area Styles */
.game-area {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scenario-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.scenario-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Scenario Card Styles */
.scenario-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s;
}

.scenario-card:hover {
    transform: translateY(-5px);
}

/* Star Rating Styles */
.star-rating {
    color: #ffc107;
}

.star-empty {
    color: #e0e0e0;
}

/* Recording Controls */
.recording-controls {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 2rem 0;
}

.recording-controls button {
    margin-right: 0;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
}

/* Button styles */
button.btn-record,
.btn-record {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

button.btn-record:hover,
.btn-record:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

button.btn-pause,
.btn-pause {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

button.btn-pause:hover,
.btn-pause:hover {
    background-color: #e0a800 !important;
    border-color: #d39e00 !important;
}

button.btn-finish,
.btn-finish {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

button.btn-finish:hover,
.btn-finish:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Smaller font size for recording status */
.recording-status {
    font-size: 0.65rem !important; /* Adjust as needed */
}

.recording-active {
    color: #dc3545;
}

.recording-paused {
    color: #ffc107;
}

/* Transcript Area */
.transcript-area {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 200px;
}

.transcript-text {
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 1.1rem;
}

/* JSON Viewer */
.json-viewer {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
}

/* Hints Section */
.hints-container {
    display: none !important;
    margin-top: 20px;
    padding-top: 15px;
}

#showHintsBtn {
    margin-bottom: 15px;
}

.hint-item {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Custom styles for scenario page elements */
#scenario-specific-hints {
    background-color: #f8f9fa; /* A light grey, similar to Bootstrap's .bg-light */
    padding: 1rem; /* Adjust padding as needed, overrides inline style if any */
    border-radius: 0.25rem; /* Optional: for rounded corners */
    margin-top: 0.5rem; /* Add some space above the hints if they are directly under other content */
}

/* Sidebar Styles */
.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.progress-section {
    margin-bottom: 2rem;
}

.progress {
    height: 20px;
    margin-top: 1rem;
}

.progress-bar {
    background-color: #0d6efd;
}

.feedback-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.feedback-content {
    color: #6c757d;
    line-height: 1.6;
}

/* Header Banner */
.header-banner {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Navbar Styles */
.navbar-brand {
    font-weight: bold;
}

/* Footer Styles */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

/* Completed Badge Styles */
.completed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Ensure level badge doesn't overlap with completed badge */
.scenario-card .card-body .badge.bg-primary {
    display: inline-block;
    margin-top: 5px;
}

/* Scenario Instruction Styles */
.impression {
    background-color: lightgreen;
}

.exam {
    background-color: blanchedalmond;
}

.plan {
    background-color: lightskyblue;
}

.plan_details {
    background-color: azure;
}

.morphology {
    background-color: lavender;
}

.body_location {
    background-color: mistyrose;
}

.follow_up {
    background-color: gold;
}

/* Welcome Page Styles */
.welcome-container {
    max-width: 1000px;
    margin: 20px auto 40px auto;
    padding: 2rem;
}

.welcome-card {
    padding: 3rem;
    border-radius: 15px;
    background-color: #ffffff;
    border: none;
}

.welcome-footer {
    background-color: #e9ecef;
    text-align: center;
    padding: 1.5rem 0;
    color: #858796;
    margin-top: 3rem;
}

.welcome-logo-banner {
    max-height: 120px;
    max-width: 512px;
    width: 100%; /* Make it scale down with the container */
    height: auto; /* Maintain aspect ratio */
}

.welcome-logo-main {
    max-width: 256px; /* Set a maximum size */
    width: 100%; /* Make it scale down with the container */
    height: auto; /* Maintain aspect ratio */
}

/* Additional Welcome Page Feature Styles */
.btn-welcome {
    min-width: 180px;
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-welcome:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.hero-title {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.testimonial-section {
    background-color: #f1f5fe;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recording-controls button {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .transcript-area {
        min-height: 150px;
    }
    
    .welcome-container, .welcome-card {
        padding: 1rem;
    }
}

.hidden {
    display: none !important;
}

.highlight-button {
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.8), 0 0 20px rgba(255, 193, 7, 0.6) !important;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

.domain-option {
    border: 2px solid #e3e6f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.domain-option:hover {
    border-color: #4e73df;
    background-color: #f8f9fc;
}
.domain-option.selected {
    border-color: #4e73df;
    background-color: #eef2ff;
}
.domain-icon {
    font-size: 2rem;
    color: #4e73df;
    margin-bottom: 10px;
}
