/* General Body & Typography */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8f0; /* Light green background */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #2e8b57; /* Sea Green - darker green for headings */
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a2d2a2; /* Lighter green border */
}

/* Header */
.main-header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    background: linear-gradient(90deg, #4CAF50, #8bc34a, #4CAF50); /* Light green to slightly darker green */
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite; /* Smooth color shifting effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and title */
    max-width: 1200px; /* Limit content width within header */
    width: 100%;
    padding: 0 20px; /* Padding for responsive design */
}

.header-logo {
    height: 60px; /* Adjust as needed, will scale with header height */
    width: auto;
    max-height: 70%; /* Ensures it scales with header height */
}

.header-title {
    color: #fff;
    font-size: 2.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap; /* Prevent title from wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if title is too long */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Session Info Section - NEW STYLES */
.session-info-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.session-info-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    gap: 20px;
    margin-top: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #388e3c;
    margin-bottom: 8px;
}

.input-group input[type="text"],
.input-group input[type="date"],
.input-group input[type="time"] {
    padding: 10px 15px;
    border: 1px solid #d4edda;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}


/* Coaching Questions Section */
.questions-list {
    margin-top: 30px;
}

.question-item {
    background-color: #fff;
    border: 1px solid #d4edda; /* Light green border */
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.question-item.selected {
    border-color: #4CAF50;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
    color: #388e3c; /* Darker green */
}

.question-text {
    flex-grow: 1;
    margin-right: 15px;
}

.question-actions {
    display: flex;
    gap: 10px;
}

.action-button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #45a049;
}

.action-button.active {
    background-color: #388e3c;
}

.key-points-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9fff9; /* Very light green */
    border: 1px dashed #a2d2a2;
    border-radius: 5px;
    display: none; /* Hidden by default */
}

.key-points-container.show {
    display: block;
}

.key-point-group {
    margin-bottom: 15px;
}

.key-point-group h4 {
    color: #2e8b57;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
}

.key-point-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.key-point-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2); /* Slightly larger checkbox */
}

.key-point-item label {
    cursor: pointer;
    color: #555;
}

/* Results Section */
.results-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.summary-box { /* Updated to apply to all summary boxes */
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #c8e6c9; /* Light green border */
    border-radius: 8px;
    background-color: #e8f5e9; /* Even lighter green */
}

.summary-box ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.summary-box ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #d4edda;
    color: #4CAF50;
}

.summary-box ul li:last-child {
    border-bottom: none;
}

#total-score {
    font-weight: bold;
    color: #388e3c;
    font-size: 1.2em;
}

.analysis-text {
    margin-top: 20px;
    padding: 15px;
    border-left: 5px solid #4CAF50;
    background-color: #f9fff9;
    font-style: italic;
    color: #555;
}

.print-button {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    padding: 15px 30px;
    background-color: #2e8b57; /* Darker green for print button */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.print-button:hover {
    background-color: #266b44;
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background-color: #e8f5e9; /* Light green background */
    color: #555;
    font-size: 0.9em;
    border-top: 1px solid #d4edda;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-logo {
        height: 50px;
    }

    .header-title {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .session-info-inputs {
        grid-template-columns: 1fr; /* Stack inputs on smaller screens */
    }

    .question-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .question-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end; /* Align buttons to the right */
    }

    .action-button {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .print-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 40px;
    }

    .header-title {
        font-size: 1.4em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .question-item {
        padding: 15px;
    }
    .print-button {
        width: 100%; /* Full width button on small screens */
        padding: 10px;
        font-size: 0.9em;
    }
}

/* Print Specific Styles - UPDATED */
@media print {
    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
    }

    .main-header, .main-footer, .print-button, .action-button, .question-actions, .key-points-container input[type="checkbox"], .key-points-container label {
        display: none !important; /* Hide elements not relevant for printing */
    }

    .container {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .coaching-section, .results-section, .session-info-section { /* Add session-info-section here */
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    /* Print styles for session info */
    .session-info-section {
        margin-bottom: 20px;
    }
    .session-info-inputs {
        display: block; /* Stack elements for print */
        gap: 0;
    }
    .session-info-inputs .input-group {
        flex-direction: row; /* Display label and value side-by-side */
        align-items: center;
        margin-bottom: 5px;
    }
    .session-info-inputs .input-group label {
        margin-bottom: 0;
        margin-right: 10px;
        font-weight: bold;
        color: #000;
    }
    .session-info-inputs .input-group span { /* Style for the value span in print */
        font-weight: normal;
        color: #000;
    }
    /* Hide the original input fields in print */
    .session-info-inputs input {
        display: none !important;
    }
    #session-details-summary {
        display: block !important; /* Ensure this summary is visible in print */
        border: none;
        background-color: #fff;
        padding: 0;
        margin-bottom: 15px;
    }
    #session-details-summary h3 {
        color: #000;
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    #session-details-summary p {
        margin-bottom: 5px;
    }
    #session-details-summary strong {
        font-weight: bold;
    }


    .question-item {
        border: 1px solid #eee;
        padding: 10px;
        page-break-inside: avoid; /* Avoid breaking question items across pages */
        margin-bottom: 10px;
    }

    .question-item.selected .question-text {
        font-weight: bold; /* Highlight selected questions */
    }

    .key-points-container.show {
        display: block !important;
        border: none;
        background-color: #fff;
        padding: 0;
        margin-top: 5px;
    }

    .key-point-item {
        margin-bottom: 5px;
    }

    .key-point-group h4 {
        color: #000;
        font-weight: bold;
    }

    .summary-box { /* Apply to all summary boxes for print */
        border: 1px solid #eee;
        background-color: #fff;
        padding: 15px;
        margin-bottom: 15px;
        page-break-before: auto; /* Allow breaking before if space is tight */
    }
    /* Ensure the main results summary starts on a new page */
    .results-section {
        page-break-before: always;
    }


    .summary-box ul li {
        border-bottom: none;
        font-weight: normal;
    }

    #total-score, .analysis-text {
        color: #000;
        font-weight: normal;
        border-left: none;
    }
    .section-title {
        border-bottom: 1px solid #ccc;
        padding-bottom: 5px;
        margin-bottom: 20px;
    }
}
