/* Modern Physics Skills - Shared Styles */

/*
 * IMPORTANT: SVG Responsive Design Guidelines
 * - All SVGs should use width="100%" for responsive design
 * - Always include viewBox attribute for proper scaling
 * - Use preserveAspectRatio="xMidYMid meet" for consistent scaling
 * - SVG containers should have width: 100% and max-width: 100%
 */

.physics-breadcrumbs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 0;
    border-bottom: 2px solid #e3f2fd;
    margin-bottom: 0;
    box-shadow: inset 0 -1px 0 rgba(21, 101, 192, 0.1);
}

.physics-breadcrumbs .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 0.95em;
    font-weight: 500;
}

.physics-breadcrumbs .breadcrumb-item {
    color: #495057;
    display: flex;
    align-items: center;
}

.physics-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #1976d2;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 8px;
    opacity: 0.7;
}

.physics-breadcrumbs .breadcrumb-item.active {
    color: #1976d2;
    font-weight: 600;
    background: rgba(25, 118, 210, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(25, 118, 210, 0.2);
}

.physics-breadcrumb-icon {
    margin-right: 6px;
    font-size: 0.9em;
    color: #1976d2;
}

.physics-breadcrumbs .breadcrumb-item a {
    color: #1976d2;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
}

.physics-breadcrumbs .breadcrumb-item a:hover {
    color: #0d47a1;
    background: white;
    border-color: rgba(21, 101, 192, 0.2);
    box-shadow: 0 2px 4px rgba(21, 101, 192, 0.1);
    transform: translateY(-1px);
}

/* Add icons for different breadcrumb levels */
.breadcrumb-home::before {
    content: "🏠";
    margin-right: 5px;
}

.breadcrumb-physics::before {
    content: "⚛️";
    margin-right: 5px;
}

.breadcrumb-unit::before {
    content: "📚";
    margin-right: 5px;
}

.breadcrumb-skill::before {
    content: "🎯";
    margin-right: 5px;
}

.skill-practice-modern {
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.problem-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    overflow: hidden;
}

.problem-header {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 20px 25px;
    border-bottom: none;
}

.problem-header h1 {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.problem-content {
    padding: 25px;
}

.problem-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #1976d2;
    border-radius: 0 8px 8px 0;
}

.interactive-diagram {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    min-height: 300px;
    position: relative;
    width: 100%;
}

.interactive-diagram svg {
    max-width: 100%;
    height: auto;
}

.diagram-title {
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.answer-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.answer-section h2 {
    color: #1976d2;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-input-modern {
    margin-bottom: 20px;
}

.answer-input-modern input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1.1em;
    transition: border-color 0.3s;
}

.answer-input-modern input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
}

.btn-check {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
}

.btn-check:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-1px);
    color: white;
}

.btn-solution {
    background: linear-gradient(135deg, #00acc1, #0097a7);
    color: white;
}

.btn-solution:hover {
    background: linear-gradient(135deg, #0097a7, #00838f);
    transform: translateY(-1px);
    color: white;
}

.btn-next {
    background: linear-gradient(135deg, #43a047, #388e3c);
    color: white;
}

.btn-next:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-1px);
    color: white;
}

.btn-remember {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.btn-remember:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-1px);
    color: white;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-header {
    padding: 15px 20px;
    font-weight: 600;
    color: white;
    border-bottom: none;
}

.formulas-header {
    background: linear-gradient(135deg, #7b1fa2, #6a1b9a);
}

.constants-header {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
}

.sidebar-content {
    padding: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.feedback-container {
    margin-top: 15px;
    border-radius: 8px;
    padding: 15px;
    display: none;
}

.feedback-container.show {
    display: block;
}

.feedback-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feedback-hint {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}

.solution-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
    display: none;
}

.solution-panel.show {
    display: block;
}

.solution-header {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 15px 20px;
    margin: -25px -25px 20px -25px;
    border-radius: 12px 12px 0 0;
}

.solution-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

.solution-steps {
    line-height: 1.6;
}

.solution-steps .step {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #ff9800;
    border-radius: 0 8px 8px 0;
}

.solution-steps .step-number {
    font-weight: bold;
    color: #ff9800;
    margin-right: 8px;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.solution-steps .explanation {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.solution-steps .explanation h6 {
    color: #ff9800;
    margin-bottom: 10px;
}

.remember-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
    display: none;
}

.remember-panel.show {
    display: block;
}

.remember-header {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 15px 20px;
    margin: -25px -25px 20px -25px;
    border-radius: 12px 12px 0 0;
}

.remember-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

.remember-content {
    line-height: 1.6;
}

.remember-content svg {
    min-height: 400px;
}

.remember-content h4 {
    color: #4caf50;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.remember-content ul {
    padding-left: 0;
    list-style: none;
}

.remember-content li {
    margin-bottom: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 4px solid #4caf50;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.remember-content li::before {
    content: "→";
    color: #4caf50;
    font-weight: bold;
    margin-right: 8px;
}

.remember-content .formula-box {
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.remember-content .key-point {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

/* MCQ Styles */
.mcq-container {
    margin: 15px 0;
}

.mcq-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mcq-option:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.mcq-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.mcq-option input[type="radio"]:checked + label {
    font-weight: 600;
    color: #1976d2;
}

.mcq-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    font-size: 1.05em;
}

.mcq-option.selected {
    background: #e3f2fd;
    border-color: #1976d2;
}

.answer-input-hint {
    margin-top: 8px;
    font-style: italic;
    display: block;
}

/* Drag and Drop Styles */
.dragdrop-container {
    margin: 20px 0;
}

.dragdrop-instruction {
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.drag-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 2px dashed #1976d2;
}

.drag-item {
    background: #fff;
    padding: 10px 15px;
    border: 2px solid #1976d2;
    border-radius: 6px;
    cursor: grab;
    font-size: 0.95em;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.drag-item:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.2);
}

.drag-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drop-zones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drop-zone {
    min-height: 50px;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1em;
}

.drop-zone.drag-over {
    border-color: #4caf50;
    background: #e8f5e8;
}

.drop-zone.filled {
    border-color: #4caf50;
    background: #e8f5e8;
    border-style: solid;
    font-weight: 500;
}

@media (max-width: 768px) {
    .drag-items {
        flex-direction: column;
    }

    .drag-item {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .problem-content {
        padding: 20px;
    }

    .answer-section {
        padding: 20px;
    }

    .physics-header {
        padding: 10px 0;
    }

    .physics-header h1 {
        font-size: 1.1em;
    }

    .physics-header small {
        font-size: 0.75em;
    }

    .subjectcoach-logo {
        height: 30px;
        margin-right: 10px;
    }
}

/* Solution Modal Styles */
#solution-modal .modal-dialog {
    max-width: 800px;
}

#solution-modal .modal-header {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    border-bottom: none;
}

#solution-modal .modal-title {
    font-size: 1.3em;
    font-weight: 600;
}

#solution-modal .modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

#solution-modal-content {
    line-height: 1.6;
}

#solution-modal-content .step {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #ff9800;
    border-radius: 0 8px 8px 0;
}

#solution-modal-content .step-number {
    font-weight: bold;
    color: #ff9800;
    margin-right: 8px;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

#solution-modal-content .explanation {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    margin-top: 15px;
}

#solution-modal-content .explanation h6 {
    color: #ff9800;
    margin-bottom: 10px;
}

#solution-modal .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
}

#solution-modal .btn {
    padding: 10px 20px;
    font-weight: 600;
}

#modal-next-question {
    background: linear-gradient(135deg, #43a047, #388e3c);
    border: none;
}

#modal-next-question:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #solution-modal .modal-dialog {
        margin: 10px;
        max-width: none;
    }

    #solution-modal .modal-body {
        padding: 20px;
        max-height: 60vh;
    }

    #solution-modal .modal-footer {
        padding: 15px 20px;
    }
}

/* Answer Comparison Styles */
.answer-comparison {
    border-radius: 8px;
}

.answer-comparison .alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    color: #856404;
}

.answer-comparison .text-danger {
    background: #ffebee;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.answer-comparison .text-success {
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #4caf50;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.solution-explanation {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

@media (max-width: 576px) {
    .answer-comparison .col-md-6 {
        margin-bottom: 15px;
    }

    .answer-comparison .text-danger,
    .answer-comparison .text-success {
        min-width: auto;
        display: block;
        width: 100%;
    }
}

/* Success Modal Styles */
#success-modal .modal-dialog {
    max-width: 350px;
}

#success-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: successPulse 0.6s ease-out;
}

#success-modal .modal-body {
    padding: 30px;
}

#success-modal .success-icon i {
    animation: successBounce 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
/* VCE Physics Practice - Core CSS Styles */

.physics-practice {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Problem Display */
.problem-text {
    font-size: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
    border-radius: 4px;
}

.loading-spinner {
    text-align: center;
    color: #6c757d;
    font-size: 18px;
    padding: 40px;
}

/* Physics Diagrams */
.physics-diagram-container {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 300px;
    margin: 20px 0;
    position: relative;
}

.diagram-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#physics-diagram svg {
    max-width: 100%;
    height: auto;
}

/* Wave Animation Styles */
.wave-animation {
    stroke-width: 2;
    fill: none;
}

.wave-path {
    stroke: #007bff;
    stroke-width: 3;
}

.wave-peak {
    stroke: #dc3545;
    stroke-width: 2;
    stroke-dasharray: 5,5;
}

.wave-labels {
    font-family: 'KaTeX_Main', serif;
    font-size: 14px;
    fill: #495057;
}

/* Answer Interface */
.answer-input-group {
    margin-bottom: 20px;
}

.answer-input-group input {
    font-size: 16px;
    padding: 12px;
    margin-bottom: 15px;
}

.answer-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.answer-buttons .btn {
    padding: 8px 16px;
    font-weight: 500;
}

/* Feedback Styles */
.feedback-container {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.feedback-correct {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.feedback-incorrect {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.feedback-hint {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Formula Sheet */
.formula-container, .constants-container {
    font-size: 14px;
}

.formula-item, .constant-item {
    background: #f8f9fa;
    padding: 12px;
    margin: 8px 0;
    border-left: 3px solid #007bff;
    border-radius: 4px;
}

.formula-expression {
    font-family: 'KaTeX_Main', serif;
    font-size: 16px;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 5px;
}

.formula-description {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 5px;
}

.formula-variables {
    font-size: 12px;
    color: #495057;
}

.formula-variables li {
    margin: 2px 0;
}

/* Solution Panel */
.solution-panel {
    margin-top: 20px;
}

.solution-content {
    font-size: 15px;
    line-height: 1.8;
}

.solution-step {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

.solution-step-number {
    font-weight: bold;
    color: #28a745;
    margin-right: 10px;
}

.solution-calculation {
    font-family: 'KaTeX_Main', serif;
    background: white;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 16px;
}

/* Remember Panel */
.remember-panel {
    margin-top: 30px;
    border-top: 3px solid #ffc107;
}

.physics-concepts {
    list-style: none;
    padding-left: 0;
}

.physics-concepts li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.physics-concepts li:last-child {
    border-bottom: none;
}

.physics-concepts strong {
    color: #007bff;
}

.remember-visual {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    border-left: 4px solid #007bff;
}

/* Physics Graph Container */
.physics-graph-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    min-height: 200px;
}

/* EM Spectrum Styles */
.spectrum-band {
    cursor: pointer;
    transition: opacity 0.3s;
}

.spectrum-band:hover {
    opacity: 0.8;
}

.spectrum-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    fill: #495057;
}

/* Snell's Law Diagram Styles */
.refraction-ray {
    stroke-width: 2;
    marker-end: url(#arrowhead);
}

.incident-ray {
    stroke: #dc3545;
}

.refracted-ray {
    stroke: #007bff;
}

.normal-line {
    stroke: #6c757d;
    stroke-dasharray: 5,5;
    stroke-width: 1;
}

.medium-boundary {
    stroke: #343a40;
    stroke-width: 3;
}

.angle-arc {
    fill: none;
    stroke: #28a745;
    stroke-width: 1.5;
}

.angle-label {
    font-family: 'KaTeX_Main', serif;
    font-size: 14px;
    fill: #28a745;
}

/* Media Labels */
.medium-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: #495057;
}

/* Animation Controls */
.animation-controls {
    margin: 15px 0;
    text-align: center;
}

.animation-controls button {
    margin: 0 5px;
    padding: 5px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.animation-controls button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .answer-buttons {
        flex-direction: column;
    }

    .answer-buttons .btn {
        margin-bottom: 10px;
    }

    .physics-diagram-container {
        padding: 15px;
        min-height: 250px;
    }

    .formula-container, .constants-container {
        font-size: 13px;
    }
}

/* KaTeX Math Rendering */
.katex {
    font-size: 1.1em;
}

.katex-display {
    margin: 15px 0;
}

/* Loading States */
.loading-content {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skill Navigation */
.skill-navigation {
    text-align: center;
    margin: 20px 0;
}

.skill-navigation .btn {
    margin: 0 5px;
}

/* Progress Indicator */
.skill-progress {
    background: #e9ecef;
    height: 4px;
    border-radius: 2px;
    margin: 20px 0;
}

.skill-progress-bar {
    background: linear-gradient(90deg, #28a745, #007bff);
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Score Display */
.score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.score-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-label {
    font-size: 14px;
    opacity: 0.9;
}