*, *::before, *::after {
    box-sizing: border-box;
}
  
  /* PROaCTiVE-specific styles */
html {
width: 100%;
margin: 0;
padding: 0;
}

body {
margin: 0;
padding: 0;
width: 100%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #ecf0f1;
min-height: 100vh;
display: flex;
flex-direction: column;
}

/* Main container with sidebar */
.main-container {
display: flex;
flex: 1;
min-height: calc(100vh - 200px);
}

/* Sidebar styles */
.sidebar {
width: 280px;
background-color: #ffffff;
color: #333333;
padding: 20px;
transition: width 0.3s ease;
overflow-y: auto;
overflow-x: hidden;
position: relative;
flex-shrink: 0;
box-shadow: 2px 0 8px rgba(0,0,0,0.1);
border-right: 1px solid #e0e0e0;
}

.sidebar.collapsed {
width: 60px;
padding: 20px 10px;
}

.sidebar-toggle {
position: absolute;
top: 15px;
right: 15px;
background: transparent;
border: none;
color: #333333;
font-size: 18px;
cursor: pointer;
padding: 5px;
border-radius: 4px;
transition: background-color 0.2s;
}

.sidebar-toggle:hover {
background-color: rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed .sidebar-content {
display: none;
}

.sidebar-section {
margin-bottom: 25px;
}

.sidebar-section:last-child {
margin-bottom: 0;
}

.dashboard-radio-group {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 20px;
}

.dashboard-radio {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 8px;
border-radius: 4px;
transition: background-color 0.2s;
}

.dashboard-radio:hover {
background-color: rgba(0, 0, 0, 0.05);
}

.dashboard-radio input[type="radio"] {
margin: 0;
cursor: pointer;
accent-color: #28537b;
}

.dashboard-radio label {
cursor: pointer;
color: #333333;
font-size: 14px;
margin: 0;
}

.sidebar-heading {
font-size: 16px;
font-weight: 600;
color: #28537b;
margin-bottom: 10px;
margin-top: 0;
}

.sidebar-link {
color: #28537b;
text-decoration: none;
font-size: 14px;
display: block;
padding: 8px 0;
transition: color 0.2s;
}

.sidebar-link:hover {
color: #1a3d5a;
text-decoration: underline;
}

.sidebar-divider {
height: 1px;
background-color: #e0e0e0;
margin: 20px 0;
}

.sidebar-select {
width: 100%;
padding: 8px 12px;
background-color: #ffffff;
color: #333333;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
margin-top: 8px;
}

.sidebar-input {
width: 100%;
padding: 8px 12px;
background-color: #ffffff;
color: #333333;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
margin-top: 8px;
}

.sidebar-input:focus {
outline: none;
border-color: #28537b;
box-shadow: 0 0 0 2px rgba(40, 83, 123, 0.2);
}

.sidebar-select:hover {
background-color: #f8f9fa;
border-color: #28537b;
}

.sidebar-select:focus {
outline: none;
border-color: #28537b;
box-shadow: 0 0 0 2px rgba(40, 83, 123, 0.2);
}

.sidebar-buttons {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 20px;
}

.sidebar-button {
width: 100%;
padding: 10px;
background-color: #f8f9fa;
color: #333333;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
}

.sidebar-button:hover {
background-color: #e9ecef;
border-color: #28537b;
color: #28537b;
}

.advanced-settings {
margin-top: 20px;
}

.advanced-settings-toggle {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
color: #333333;
font-size: 14px;
padding: 8px 0;
user-select: none;
}

.advanced-settings-toggle:hover {
color: #28537b;
}

.advanced-settings-content {
display: none;
margin-top: 10px;
padding-left: 20px;
}

.advanced-settings.expanded .advanced-settings-content {
display: block;
}

.advanced-settings.expanded .advanced-settings-toggle::before {
content: '▼ ';
}

.advanced-settings:not(.expanded) .advanced-settings-toggle::before {
content: '▶ ';
}

/* Main content area */
.main-content-wrapper {
flex: 1;
display: flex;
flex-direction: column;
overflow-x: hidden;
}

.proactive-hero {
background: linear-gradient(135deg, #28537b, #86a2a4);
color: white;
padding: 1.5rem 2rem;
text-align: center;
}

.proactive-hero h1 {
font-size: 2rem;
margin-bottom: 0.25rem;
}

.proactive-hero h3 {
font-size: 1rem;
font-weight: normal;
opacity: 0.9;
margin: 0;
}

.proactive-nav {
display: flex;
justify-content: center;
gap: 2rem;
padding: 0.75rem;
background-color: rgba(255, 255, 255, 0.1);
margin-top: 1rem;
}

.proactive-nav a {
color: white;
text-decoration: none;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 4px;
transition: background-color 0.3s ease;
}

.proactive-nav a:hover {
background-color: rgba(255, 255, 255, 0.2);
}

.proactive-nav a.current {
background-color: rgba(255, 255, 255, 0.3);
font-weight: bold;
}

.student-dashboard {
width: 100%;
margin: 0;
padding: 1.25rem 1.25%;
max-width: 100%;
flex: 1;
}

.student-header {
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 1.875rem;
margin-bottom: 1.25rem;
text-align: center;
width: 100%;
}

.student-header h2 {
color: #333;
margin-bottom: 0.625rem;
}

.student-header p {
color: #666;
}

.progress-section {
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 1.875rem;
margin-bottom: 1.25rem;
width: 100%;
}

.progress-section h3 {
color: #28537b;
margin-bottom: 1.25rem;
border-bottom: 2px solid #86a2a4;
padding-bottom: 0.625rem;
}

.metric-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
gap: 1.25rem;
margin-bottom: 1.875rem;
}

.metric-card {
background: linear-gradient(135deg, #28537b, #3d6f99);
color: white;
padding: 1.5625rem;
border-radius: 8px;
text-align: center;
}

.metric-card .value {
font-size: 2.5em;
font-weight: bold;
margin-bottom: 0.625rem;
}

.metric-card .label {
font-size: 0.9em;
opacity: 0.9;
}

.assessment-section {
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 1.875rem;
margin-bottom: 1.25rem;
width: 100%;
}

.assessment-section h3 {
color: #28537b;
margin-bottom: 1.25rem;
border-bottom: 2px solid #86a2a4;
padding-bottom: 0.625rem;
}

.assessment-content {
display: flex;
gap: 1.875rem;
flex-wrap: wrap;
align-items: flex-start;
}

.overall-performance-box {
flex: 1;
min-width: 18.75rem;
background: linear-gradient(135deg, #3498db, #2980b9);
color: white;
padding: 2.5rem;
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.overall-performance-box h4 {
font-size: 1.1em;
margin-bottom: 1.25rem;
opacity: 0.95;
font-weight: 500;
}

.overall-performance-box .score {
font-size: 3.5em;
font-weight: bold;
margin-bottom: 0.5rem;
}

.feedback-style-options {
flex: 1;
min-width: 18.75rem;
padding: 1.25rem;
}

.feedback-style-options h4 {
color: #333;
margin-bottom: 1rem;
font-size: 1em;
font-weight: 600;
}

.feedback-radio-group {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 1rem;
}

.feedback-radio-item {
display: flex;
align-items: center;
gap: 0.625rem;
padding: 0.75rem;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.feedback-radio-item:hover {
background-color: #f8f9fa;
}

.feedback-radio-item input[type="radio"] {
cursor: pointer;
accent-color: #28537b;
}

.feedback-radio-item label {
cursor: pointer;
color: #333;
font-weight: 500;
flex: 1;
}

.feedback-description {
color: #666;
font-size: 0.9em;
line-height: 1.5;
padding: 0.75rem;
background-color: #f8f9fa;
border-radius: 6px;
margin-top: 0.75rem;
}

.assessment-details {
width: 100%;
margin-top: 1.875rem;
padding-top: 1.875rem;
border-top: 1px solid #e0e0e0;
}

.assessment-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
gap: 1rem;
margin-top: 1rem;
}

.assessment-item {
background: #f8f9fa;
padding: 1rem;
border-radius: 6px;
border-left: 3px solid #86a2a4;
}

.assessment-item-label {
font-size: 0.85em;
color: #666;
margin-bottom: 0.5rem;
}

.assessment-item-value {
font-size: 1.5em;
font-weight: bold;
color: #28537b;
}

.performance-section {
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 1.875rem;
width: 100%;
}

.performance-section h3 {
color: #28537b;
margin-bottom: 1.25rem;
border-bottom: 2px solid #86a2a4;
padding-bottom: 0.625rem;
}

.chart-selection {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}

.chart-radio-item {
display: flex;
align-items: center;
gap: 0.5rem;
}

.chart-radio-item input[type="radio"] {
cursor: pointer;
accent-color: #28537b;
}

.chart-radio-item label {
cursor: pointer;
color: #333;
font-weight: 500;
}

.chart-subtitle {
color: #666;
font-size: 0.9em;
margin-bottom: 1rem;
}

.attempt-filter {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
align-items: center;
}

.attempt-filter label {
font-weight: 500;
color: #333;
}

.attempt-filter-group {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}

.attempt-filter-item {
display: flex;
align-items: center;
gap: 0.5rem;
}

.attempt-filter-item input[type="radio"] {
cursor: pointer;
accent-color: #28537b;
}

.attempt-range-inputs {
display: none;
align-items: center;
gap: 0.5rem;
}

.attempt-range-inputs.active {
display: flex;
}

.attempt-range-inputs input[type="number"] {
width: 4rem;
padding: 0.375rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 0.9em;
}

.chart-container {
width: 100%;
min-height: 25rem;
background: #f8f9fa;
border-radius: 8px;
padding: 1.25rem;
box-sizing: border-box;
}

.statistics-section {
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 1.875rem;
margin-top: 1.25rem;
width: 100%;
}

.statistics-section h3 {
color: #28537b;
margin-bottom: 0.5rem;
border-bottom: 2px solid #86a2a4;
padding-bottom: 0.625rem;
}

.statistics-subtitle {
color: #666;
font-size: 0.9em;
margin-bottom: 1.5rem;
}

.statistics-content {
display: flex;
gap: 2rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}

.statistics-table-container {
flex: 1;
min-width: 18.75rem;
}

.statistics-table {
width: 100%;
border-collapse: collapse;
}

.statistics-table tbody tr {
border-bottom: 1px solid #e0e0e0;
}

.statistics-table tbody tr:last-child {
border-bottom: none;
}

.stat-label {
padding: 0.75rem 0.5rem;
color: #333;
font-weight: 500;
width: 40%;
}

.stat-value {
padding: 0.75rem 0.5rem;
color: #28537b;
font-weight: 600;
text-align: right;
}

.statistics-summary-box {
flex: 1;
min-width: 18.75rem;
background: #f8f9fa;
border-radius: 8px;
padding: 1.5rem;
}

.statistics-summary-box h4 {
color: #333;
margin: 0 0 1rem 0;
font-size: 1.1em;
}

.summary-item {
display: flex;
justify-content: space-between;
margin-bottom: 0.75rem;
}

.summary-label {
color: #666;
font-size: 0.9em;
}

.summary-value {
color: #28537b;
font-weight: 600;
}

.summary-change-box {
margin-top: 1rem;
padding: 0.75rem;
background: #3498db;
color: white;
border-radius: 6px;
text-align: center;
font-weight: 500;
}

.performance-summary-section {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid #e0e0e0;
}

.performance-summary-section h4 {
color: #333;
margin-bottom: 1.5rem;
font-size: 1.1em;
}

.performance-summary-content {
display: flex;
gap: 2rem;
flex-wrap: wrap;
}

.overall-score-card {
flex: 1;
min-width: 15rem;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 2rem;
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.score-main {
font-size: 2.5em;
font-weight: bold;
margin-bottom: 0.5rem;
}

.score-std-dev {
font-size: 0.9em;
opacity: 0.9;
margin-bottom: 1rem;
}

.score-status {
display: inline-block;
padding: 0.5rem 1.5rem;
background: rgba(255, 255, 255, 0.2);
border-radius: 20px;
font-weight: 600;
font-size: 0.9em;
}

.performance-metrics {
flex: 1;
min-width: 15rem;
display: flex;
flex-direction: column;
gap: 1rem;
}

.metric-item {
display: flex;
justify-content: space-between;
padding: 0.75rem;
background: #f8f9fa;
border-radius: 6px;
}

.metric-label {
color: #666;
font-weight: 500;
}

.metric-value {
color: #28537b;
font-weight: 600;
}

.feedback-section {
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 1.875rem;
width: 100%;
margin-top: 1.25rem;
}

.feedback-section h3 {
color: #28537b;
margin-bottom: 1.25rem;
border-bottom: 2px solid #86a2a4;
padding-bottom: 0.625rem;
}

.coming-soon {
text-align: center;
padding: 2.5rem;
color: #999;
}

.coming-soon i {
font-size: 3em;
margin-bottom: 0.9375rem;
}

.feedback-rating-form {
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
padding: 1.875rem;
width: 100%;
margin-top: 1.25rem;
margin-bottom: 1.25rem;
}

.feedback-rating-form h3 {
color: #28537b;
margin-bottom: 0.5rem;
border-bottom: 2px solid #86a2a4;
padding-bottom: 0.625rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.feedback-rating-form .form-instruction {
color: #666;
margin-bottom: 1.5rem;
font-size: 0.95em;
}

.rating-category {
margin-bottom: 2rem;
}

.rating-category-label {
color: #333;
font-weight: 600;
margin-bottom: 0.75rem;
font-size: 1em;
}

.rating-buttons {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 0.5rem;
}

.rating-btn {
flex: 1;
min-width: 3.5rem;
padding: 0.75rem 1rem;
background: white;
color: #333;
border: 2px solid #ddd;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
font-size: 1em;
transition: all 0.2s ease;
text-align: center;
}

.rating-btn:hover {
background: #f8f9fa;
color: #333;
border-color: #28537b;
}

.rating-btn.selected {
background: #28537b;
color: white;
border-color: #28537b;
}

.rating-labels {
display: flex;
justify-content: space-between;
font-size: 0.85em;
color: #666;
margin-top: 0.25rem;
}

.rating-labels span:first-child {
text-align: left;
}

.rating-labels span:last-child {
text-align: right;
}

.submit-ratings-btn {
width: 100%;
padding: 1rem;
background: #e74c3c;
color: white;
border: none;
border-radius: 8px;
font-size: 1.1em;
font-weight: 600;
cursor: pointer;
transition: background 0.3s ease;
margin-top: 1.5rem;
}

.submit-ratings-btn:hover {
background: #c0392b;
}

.submit-ratings-btn:active {
transform: scale(0.98);
}

footer {
margin-top: auto;
background-color: #2c3e50;
color: white;
text-align: center;
padding: 1.5rem;
width: 100%;
}

/* Responsive Design - Media Queries */

/* Large tablets and small desktops (1024px and below) */
@media (max-width: 1024px) {
.student-dashboard {
    padding: 1.25rem 2%;
}

.metric-cards {
    grid-template-columns: repeat(2, 1fr);
}
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
.proactive-hero {
    padding: 1rem 1rem;
}

.proactive-hero h1 {
    font-size: 1.5rem;
}

.proactive-hero h3 {
    font-size: 0.9rem;
}

.proactive-nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.proactive-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.student-dashboard {
    padding: 0.625rem 1.25%;
}

.student-header,
.progress-section,
.assessment-section,
.performance-section,
.statistics-section,
.feedback-section,
.feedback-rating-form {
    padding: 1.25rem;
}

.chart-selection {
    flex-direction: column;
    gap: 0.75rem;
}

.attempt-filter {
    flex-direction: column;
    align-items: flex-start;
}

.attempt-filter-group {
    width: 100%;
}

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

.performance-summary-content {
    flex-direction: column;
}

.metric-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

.overall-performance-box {
    min-width: 100%;
}

.feedback-style-options {
    min-width: 100%;
}

.assessment-grid {
    grid-template-columns: repeat(2, 1fr);
}

#progressChart {
    height: auto !important;
    min-height: 18.75rem !important;
}

/* Attempt filter responsive adjustments */
#attemptRangeInputs {
    width: 100%;
    justify-content: flex-start;
}

#attemptRangeInputs input[type="number"] {
    flex: 0 0 auto;
}
}

/* Mobile phones (480px and below) */
@media (max-width: 1024px) {
.sidebar {
    width: 240px;
}

.sidebar.collapsed {
    width: 50px;
}
}

@media (max-width: 768px) {
.main-container {
    flex-direction: column;
}

.sidebar {
    width: 100%;
    max-height: 300px;
    order: 2;
}

.sidebar.collapsed {
    max-height: 60px;
}

.main-content-wrapper {
    order: 1;
}
}

@media (max-width: 480px) {
.proactive-hero h1 {
    font-size: 1.2rem;
}

.proactive-hero h3 {
    font-size: 0.8rem;
}

.student-dashboard {
    padding: 0.5rem 1%;
}

.sidebar {
    padding: 15px;
}

.sidebar-heading {
    font-size: 14px;
}

.sidebar-button {
    padding: 8px;
    font-size: 12px;
}

.student-header,
.progress-section,
.assessment-section,
.performance-section,
.statistics-section,
.feedback-section,
.feedback-rating-form {
    padding: 1rem;
}

.student-header h2 {
    font-size: 1.2em;
}

.progress-section h3,
.assessment-section h3,
.performance-section h3,
.statistics-section h3,
.feedback-section h3,
.feedback-rating-form h3 {
    font-size: 1em;
}

.rating-buttons {
    gap: 0.25rem;
}

.rating-btn {
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9em;
}

.student-header h2 {
    font-size: 1.2em;
}

.chart-container {
    min-height: 20rem;
    padding: 0.75rem;
}

.overall-score-card {
    padding: 1.5rem;
}

.score-main {
    font-size: 2em;
}

.metric-card .value {
    font-size: 2em;
}

.overall-performance-box {
    padding: 1.5rem;
}

.overall-performance-box .score {
    font-size: 2.5em;
}

.assessment-grid {
    grid-template-columns: 1fr;
}

.coming-soon {
    padding: 1.5rem;
}

.coming-soon p {
    font-size: 1em !important;
}
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure images and SVGs are responsive */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Make sure charts container adapts */
.student-header > div[id*="Chart"],
.student-header > div[id*="chart"],
.progress-section > div[id*="Chart"],
.progress-section > div[id*="chart"],
.assessment-section > div[id*="Chart"],
.assessment-section > div[id*="chart"],
.performance-section > div[id*="Chart"],
.performance-section > div[id*="chart"],
.statistics-section > div[id*="Chart"],
.statistics-section > div[id*="chart"],
.feedback-section > div[id*="Chart"],
.feedback-section > div[id*="chart"],
#progressChart {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Attempt filter controls */
#attemptRangeInputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

#attemptRangeInputs input[type="number"] {
    width: 80px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    box-sizing: border-box;
}

#attemptRangeInputs input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input[name="attempt-filter"] {
    accent-color: #3498db;
}

/* Range Slider Styles */
input[type="range"] {
    pointer-events: all !important;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: transparent;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #667eea;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #667eea;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #5568d3;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #5568d3;
}

/* Tab Navigation Styles */
.student-tabs {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 10px 20px 0 20px;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    border-bottom: 2px solid #28537b;
}

.student-tab {
    padding: 12px 20px;
    background: #e9ecef;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    white-space: nowrap;
}

.student-tab:hover {
    background: #dee2e6;
    color: #212529;
}

.student-tab.active {
    background: #fff;
    color: #28537b;
    border-bottom: 2px solid #28537b;
}

.student-tab-content {
    display: none;
    padding: 20px 0;
}

.student-tab-content.active {
    display: block;
}

/* Utility Classes for Inline Styles */
.chart-section {
    margin-bottom: 20px;
}

.chart-section h4 {
    margin-bottom: 15px;
}

.chart-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.chart-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.chart-option-label input[type="radio"] {
    margin-right: 8px;
}

.filter-section {
    margin-bottom: 15px;
}

.filter-section h4 {
    margin-bottom: 10px;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-option-label input[type="radio"] {
    margin-right: 8px;
}

#rangeSliderContainer {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.range-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.range-slider-label {
    font-weight: 600;
    color: #28537b;
}

.range-slider-help {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    cursor: help;
}

.range-slider-controls {
    position: relative;
    margin: 20px 10px;
}

.range-slider-track {
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    position: relative;
}

.range-slider-fill {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
    position: absolute;
}

.range-slider-input {
    width: 100%;
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    z-index: 3;
}

.range-slider-input-end {
    z-index: 4;
}

.range-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 14px;
    color: #6c757d;
}

#attemptCount {
    margin-top: 10px;
    color: #28537b;
    font-weight: 600;
}

#progressChart {
    height: 400px;
    min-height: 400px;
    background: white;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    margin-top: 20px;
}

/* Summary Tab Styles */
.summary-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.performance-card {
    background: linear-gradient(135deg, #28537b 0%, #1a3a54 100%);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 83, 123, 0.3);
}

.performance-card-icon {
    font-size: 2em;
    margin-bottom: 0.5rem;
}

.performance-card-title {
    font-size: 1.1em;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.performance-card-score {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0.5rem 0;
}

.performance-card-stddev {
    font-size: 0.85em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.performance-card-status {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    font-weight: 600;
    display: inline-block;
}

.white-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.section-heading {
    color: #28537b;
    margin-bottom: 1.5rem;
    font-size: 1.3em;
}

.section-heading-large {
    color: #28537b;
    margin-bottom: 0.5rem;
    font-size: 1.5em;
}

.section-heading-medium {
    color: #28537b;
    margin-bottom: 1rem;
    font-size: 1.2em;
}

.section-subheading {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1.1em;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-box-label {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stat-box-value {
    font-size: 2em;
    font-weight: bold;
    color: #28537b;
}

.stat-box-value-success {
    color: #28a745;
}

.stat-box-value-info {
    color: #17a2b8;
}

.score-card-gradient {
    background: linear-gradient(135deg, #28537b 0%, #1a3a54 100%);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.score-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.score-value-large {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0.5rem 0;
}

.score-value-small {
    font-size: 0.5em;
    opacity: 0.8;
}

.score-stddev-text {
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.status-badge {
    background: #ffa500;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    font-weight: 600;
    display: inline-block;
}

.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.summary-card-label {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.summary-card-value {
    font-size: 2em;
    font-weight: bold;
    color: #28537b;
}

.summary-card-value-success {
    color: #28a745;
}

.summary-card-value-info {
    color: #17a2b8;
}

.domain-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.growth-areas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.growth-areas-list li {
    padding: 0.5rem 0;
    color: #495057;
}

.patterns-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.patterns-list li {
    padding: 0.5rem 0;
    color: #495057;
}

.observations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.trend-header {
    background: #28a745;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.trend-header-danger {
    background: #dc3545;
}

.trend-icon {
    font-size: 1.2em;
}

.trend-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.trend-placeholder {
    color: #6c757d;
    text-align: center;
    padding: 2rem;
}

.progress-section-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.progress-section-title {
    color: #28537b;
    margin-bottom: 1rem;
    font-size: 1.1em;
}

.progress-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.progress-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-card-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #28537b;
    margin-bottom: 0.5rem;
}

.progress-card-value-success {
    color: #28a745;
}

.progress-card-label {
    color: #6c757d;
    font-size: 0.9em;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recommendation-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.recommendation-title {
    color: #28537b;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.priority-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

.recommendation-description {
    color: #495057;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.recommendation-category {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 0.5rem;
}

.practice-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.practice-suggestion-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.practice-suggestion-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.practice-suggestion-icon {
    background: #3498db;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.practice-suggestion-icon span {
    font-size: 1.5em;
    color: white;
}

.practice-suggestion-content {
    flex: 1;
}

.practice-suggestion-title {
    color: #28537b;
    margin: 0 0 0.5rem 0;
    font-size: 1.1em;
    font-weight: 600;
}

.practice-suggestion-description {
    color: #495057;
    margin: 0.5rem 0;
    line-height: 1.6;
    font-size: 0.95em;
}

.practice-suggestion-category {
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.stats-table-wrapper {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.stats-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
}

.stats-table th.text-right {
    text-align: right;
}

.stats-table th.text-center {
    text-align: center;
}

.stats-table td {
    padding: 0.75rem;
    color: #495057;
}

.stats-table td.text-right {
    text-align: right;
}

.stats-table td.text-center {
    text-align: center;
}

.stats-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.stats-table tbody tr:last-child {
    border-bottom: none;
}

.loading-text {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}

.text-muted {
    color: #6c757d;
}

.text-primary {
    color: #28537b;
}

.text-success {
    color: #28a745;
}

.text-info {
    color: #17a2b8;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-1-5 {
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.gap-5 {
    gap: 5px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.inline-block {
    display: inline-block;
}

.opacity-8 {
    opacity: 0.8;
}

.opacity-9 {
    opacity: 0.9;
}

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-help {
    cursor: help;
}

/* Network visualization styles */
.network-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-inline label {
    font-weight: 500;
    margin: 0;
    font-size: 14px;
    color: #333;
}

.network-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.network-select:hover {
    border-color: #999;
}

.network-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

#proficiencyNetworkChart {
    background-color: #fff;
    border-radius: 4px;
}

#proficiencyNetworkChart svg {
    display: block;
    margin: 0 auto;
}
