/* styles.css */
:root {
    --primary-color: #0066CC !important;
    /* Professional Blue */
    --secondary-color: #1E3A8A;
    /* Deep Blue */
    --background-color: #fff;
    --text-color: #000;
    --chat-bot-background-color: #f6f4f3;
    --border-color: #d9d9d9;
    --breadcrumb-bg-color: #0066CC;
    /* Updated to match primary */
    --footer-color: #ede7e7;
    --button-border-radius: 8px;
    --chat-ai-msg-background-color: #E3F2FD;
    /* Light blue for AI messages */
    --primary-background-color: #f6f4f3;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Add this to your styles.css if you want visual feedback during transitions */
#talkingAvatarStyle,
#avatarTtsVoice {
    transition: all 0.3s ease;
}

#talkingAvatarStyle:focus,
#avatarTtsVoice:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.container {
    /* max-width: 1400px; */
    margin: 0 auto;
    /* padding: 20px; */
    padding-top: 6rem;
    padding-bottom: 2rem;
    background-color: var(--primary-background-color);
}

.control-buttons,
.status-display,
.chat-logs-container {
    padding: 20px;
}

#configuration {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header Styles */
.header {
    /* background: linear-gradient(135deg, var(--primary-color), #9c1f99); */
    background-color: white;
    width: 100%;
    max-height: 8rem;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    /* padding: 1.2rem 1rem; */
    /* padding-top: 1.2rem; */
    z-index: 10;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 0.5rem;
    justify-content: space-between;
}

.company-logo {
    height: 40px;
    width: auto;
    /* border-radius: 8px; */
    /* background: white; */
    padding: 8px 16px;
}

.header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    border: none;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    color: var(--primary-color);
    border-left: var(--secondary-color) solid 1px;
    padding: 0px 21px;
    flex: 1;
}


/* User Info in Header */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 16px;
    background-color: var(--chat-ai-msg-background-color);
    border-radius: var(--button-border-radius);
}

.user-name {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
}

.logout-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.logout-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* margin-bottom: 10px; */
    padding: 8px;
    background: var(--chat-ai-msg-background-color);
    z-index: -1;
    width: 100% !important;
    /* border-radius: var(--button-border-radius); */
}

.subtitle p {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary-color);
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

/* Configuration Grid - Sidebar Layout */
.configuration-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    display: none;
    /* Changed from grid to flex column for sidebar */
}

.config-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--button-border-radius);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: auto;
    /* Changed from 300px */
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--button-border-radius);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(190, 43, 187, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Button Styles - Enhanced */
.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    margin-top: 0;
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--button-border-radius);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:disabled::before {
    display: none;
}

.btn-primary {
    background: var(--primary-color) !important;
    color: white;
    border: var(--primary-color) 2px solid;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: var(--secondary-color) 2px solid;
}

.btn-warning {
    background: #ff9800;
    color: white;
    border: #ff9800 2px solid;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: #dc3545 2px solid;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: #17a2b8 2px solid;
}

.btn-success {
    background: #28a745;
    color: white;
    border: #28a745 2px solid;
}

/* SVG Icon Styles */
.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

/* Icon color inheritance */
.btn svg {
    color: inherit;
}



/* Additional Options */
.additional-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--chat-bot-background-color);
    border-radius: var(--button-border-radius);
}

/* Status Display */
.status-display {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--button-border-radius);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-label {
    font-weight: 600;
    color: var(--secondary-color);
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

.status-value {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--chat-ai-msg-background-color);
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

/* User Message Box */
.user-message-box {
    margin-bottom: 30px;
}

.message-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--button-border-radius);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.message-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(190, 43, 187, 0.1);
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

/* Sidebar for configurations - 30% width */
.sidebar-config {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Avatar and Logs Container - 70% width */
.avatar-logs-container {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Video section container - 70% of right column */
.video-section-container {
    width: 100%;
    height: 65rem;
    /* Increased from 50rem to 65rem for better avatar display */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--button-border-radius);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Chat section - removed, using sidebar */
.chat-section-container {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat and Logs */
.chat-logs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 1rem;
}

.chat-section,
.logs-section {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--button-border-radius);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Logs section - 30% of right column */
.logs-section {
    height: auto;
    min-height: 15rem;
    max-height: 20rem;
}

.chat-section h3,
.logs-section h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

.chat-history,
.latency-log {
    width: 100%;
    height: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--button-border-radius);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 14px;
    resize: vertical;
    background: var(--chat-bot-background-color);
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

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

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.switchLabel {
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
    color: var(--secondary-color);
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

/* Avatar Status */
.avatar-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--button-border-radius);
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

/* Video container - parent for avatar videos */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    background: transparent;
}

/* Remote video - Normal avatar (always present) */
.remote-video,
.local-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    background: transparent;
}

/* Make video elements responsive and blend with background */
.remote-video video,
.local-video video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--button-border-radius);
    background: transparent;
}

/* Ensure the main remote video div also has transparent background */
#remoteVideo {
    background: transparent !important;
}

/* Optional: Add a subtle overlay to make text more readable if needed */
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    /* Very subtle dark overlay */
    z-index: 1;
    pointer-events: none;
}

/* Ensure videos are above the overlay */
.remote-video video,
.local-video video {
    z-index: 3;
    position: relative;
}

/* Alternative: If you want the background only when no video is playing */
.video-container.no-video {
    background-image: url('../image/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-container.no-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Optional dark overlay for better text visibility */
    z-index: 1;
}

/* Placeholder text styling when no video */
.video-container.no-video::after {
    content: 'Avatar will appear here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* Debug styles for testing - you can remove these later */
.coaching-video-overlay.debug {
    background: rgba(255, 0, 0, 0.5) !important;
    border: 3px solid red !important;
    display: block !important;
    z-index: 999 !important;
}

.coaching-video-overlay.debug::before {
    content: "COACHING OVERLAY - DEBUG MODE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1000;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .configuration-grid {
        flex-direction: column;
        gap: 20px;
        display: none;
    }

    .config-card {
        min-height: auto;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar-config,
    .avatar-logs-container {
        width: 100%;
    }

    .video-section-container {
        height: 33rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .company-logo {
        height: 50px;
    }

    .configuration-grid {
        flex-direction: column;
        gap: 20px;
        display: none;
    }

    .config-card {
        min-height: auto;
    }

    .control-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .additional-options {
        flex-direction: column;
        align-items: center;
    }

    .status-display {
        flex-direction: column;
        align-items: center;
    }

    .chat-logs-container {
        grid-template-columns: 1fr;
    }

    .main-content {
        flex-direction: column;
        height: auto;
    }

    .sidebar-config,
    .avatar-logs-container {
        width: 100%;
    }

    .video-section-container {
        height: 33rem;
        background-size: cover;
        background-position: center;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-content h2 {
    margin: 20px 0 10px 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

.loading-content p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.loading-subtext {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
}

/* Spinner Animation */
.spinner {
    margin: 0 auto 20px auto;
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid var(--primary-color);
    border-right: 6px solid #28a745;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}


@media screen and (max-width: 480px) {
    .btn-icon {
        width: 14px;
        height: 14px;
    }

    .btn {
        gap: 8px;
        padding: 12px 24px;
        font-size: 14px;
        min-width: 140px;
    }
}

/* Ensure videos scale properly with browser zoom */
@media screen and (max-width: 100vw) {

    .remote-video,
    .local-video,
    .coaching-video-overlay {
        /* width: 100vw; */
        height: auto;
        max-width: none;
        max-height: none;
    }

    .video-section-container {
        height: 33rem;
    }
}

/* Adjustments for very small screens */
@media screen and (max-width: 320px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }

    .video-section-container {
        height: 33rem;
    }
}

/* Evaluation Modal Styles */
.evaluation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.evaluation-modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.evaluation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
    color: white;
    border-radius: 12px 12px 0 0;
}

.evaluation-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.evaluation-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.evaluation-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: #666;
    font-size: 1.1rem;
}

/* Report Content Styles */
.report-section {
    margin-bottom: 30px;
}

.report-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.report-section h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.score-card {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.score-card h3 {
    margin-top: 0;
    color: var(--secondary-color);
    border: none;
}

.overall-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin: 10px 0;
}

.score-label {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

.category-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-name {
    font-weight: 500;
    color: var(--secondary-color);
}

.category-points {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.strengths-list,
.improvements-list {
    list-style: none;
    padding-left: 0;
}

.strengths-list li,
.improvements-list li {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    position: relative;
    padding-left: 40px;
}

.strengths-list li {
    background-color: #E8F5E9;
    border-left: 4px solid #4CAF50;
}

.strengths-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.3rem;
}

.improvements-list li {
    background-color: #FFF3E0;
    border-left: 4px solid #FF9800;
}

.improvements-list li::before {
    content: "→";
    position: absolute;
    left: 15px;
    color: #FF9800;
    font-weight: bold;
    font-size: 1.3rem;
}

.rationale-list {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.rationale-list ul {
    margin: 5px 0;
    padding-left: 20px;
}

.performance-summary {
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 20px;
}

.performance-summary p {
    margin: 10px 0;
    line-height: 1.8;
}

/* Responsive adjustments for modal */
@media screen and (max-width: 768px) {
    .evaluation-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }

    .evaluation-modal-header {
        padding: 15px 20px;
    }

    .evaluation-modal-header h2 {
        font-size: 1.4rem;
    }

    .evaluation-modal-body {
        padding: 20px;
    }

    .overall-score {
        font-size: 2.5rem;
    }

    .evaluation-modal-footer {
        flex-direction: column;
    }

    .evaluation-modal-footer .btn {
        width: 100%;
    }
}