/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Proxima+Nova:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #e4067e;
    --secondary-color: #dadae4;
    --accent-color: #342b60;
    --text-color: #333333;
    --light-text: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Proxima Nova', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f7;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

/* Header Content */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; /* Space between the title and subtitle */
}

/* Header Text */
.header-text {
    display: flex;
    flex-direction: column; /* Stack the title and subtitle vertically */
    align-items: center; /* Center-align the text horizontally */
    text-align: center; /* Ensure the text is centered */
}

/* Logo Style */
.header-logo {
    width: 50px; /* Adjust the size of the logo */
    height: auto;
}

/* Header Title */
header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the icon and text */
}

/* Header Subtitle */
header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--light-text);
}

.home-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.home-btn:hover {
    background-color: #c8066f;
}

.home-btn i {
    font-size: 1.2rem;
}

/* Section Styles */
section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

section h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
}

section h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.hidden-section {
    display: none;
}

.active-section {
    display: block;
}

/* Input Styles */
.input-container {
    display: flex;
    margin: 20px 0;
}

input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

button:hover {
    background-color: #c8066f;
}

#validation-message {
    color: var(--primary-color);
    margin-top: 10px;
    font-weight: 500;
}

/* Course Info Styles */
.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.label {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.value {
    font-size: 1.1rem;
}

.module-info-item {
    margin-bottom: 5px;
    padding: 3px 0;
}

/* MLO Display Styles */
#mlo-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.module-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.module-header {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.module-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.mlo-item {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    position: relative;
    margin-bottom: 15px;
}

.mlo-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.mlo-item p {
    line-height: 1.6;
}

/* Options Panel Styles */
.options-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.option-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.option-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--accent-color);
}

.option-btn i {
    font-size: 1.2rem;
}

/* CLO Input Styles */
.clo-input-container {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#add-clo-btn {
    border-radius: var(--border-radius);
    background-color: var(--accent-color);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
}

#clo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clo-item {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clo-text {
    flex: 1;
}

.clo-actions {
    display: flex;
    gap: 10px;
}

.clo-actions button {
    background-color: transparent;
    color: var(--accent-color);
    padding: 5px;
    border-radius: 50%;
}

.clo-actions button:hover {
    background-color: rgba(52, 43, 96, 0.1);
}

/* Suggestions Styles */
#suggestions-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.suggestion-item {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.suggestion-checkbox {
    margin-right: 15px;
    transform: scale(1.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: stretch; /* Make buttons the same height */
}

#modify-suggestions-btn {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
}

/* Analysis Styles */
.alignment-item {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.alignment-title {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.alignment-score {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.alignment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.alignment-clo, .alignment-mlo {
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
}

.alignment-reason {
    grid-column: span 2;
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
}

.alignment-suggestion {
    grid-column: span 2;
    background-color: #fff8e1;
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffc107;
}

/* Report Styles */
#report-container {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.report-title {
    flex: 1;
}

#continue-editing-btn {
    background-color: #4CAF50;
    margin-right: 10px;
}

#continue-editing-btn:hover {
    background-color: #45a049;
}

#continue-editing-btn,
#continue-editing-bottom-btn {
    background-color: #4dbed2;
}

#continue-editing-btn:hover,
#continue-editing-bottom-btn:hover {
    background-color: #3da8bd;  /* Slightly darker shade for hover */
}

.report-header h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.report-section {
    margin-bottom: 30px;
}

.report-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.report-table th, .report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--secondary-color);
}

.report-table th {
    background-color: var(--accent-color);
    color: white;
}

.report-table tr:nth-child(even) {
    background-color: var(--secondary-color);
}

.report-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
}

.report-footer button {
    min-width: 200px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

#continue-editing-bottom-btn,
#export-report-btn {
    background-color: #4dbed2;
    border-radius: var(--border-radius);
    padding: 12px 25px;
    font-weight: 600;
}

#export-report-btn {
    background-color: #aa1352;
}

#export-report-btn:hover {
    background-color: #950f47;  /* Slightly darker shade for hover */
}

#email-report-btn {
    background-color: #342b60;
    border-radius: var(--border-radius);
    padding: 12px 25px;
    font-weight: 600;
}

#email-report-btn:hover {
    background-color: #2a2350;  /* Slightly darker shade for hover */
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Loading Indicator */
#loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden-section {
    display: none;
}

.active-section {
    display: block;
}

/* Dialog Styles */
.confirm-dialog {
    font-family: 'Proxima Nova', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow);
}

.confirm-dialog button {
    margin: 0 5px;
    padding: 8px 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
    }
    
    .options-container {
        flex-direction: column;
        align-items: center;
    }
    
    .alignment-details {
        grid-template-columns: 1fr;
    }
    
    .alignment-clo, .alignment-mlo, .alignment-reason, .alignment-suggestion {
        grid-column: 1;
    }
}

/* Score Colors */
.score-1 {
    background-color: #d32f2f;
}

.score-2 {
    background-color: #f57c00;
}

.score-3 {
    background-color: #fbc02d;
}

.score-4 {
    background-color: #7cb342;
}

.score-5 {
    background-color: #388e3c;
}

/* Language Toggle Styles */
.language-toggle {
    margin-bottom: 10px;
}

.lang-btn {
    padding: 5px 10px;
    margin-right: 5px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
}

.lang-btn.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}
