/* ============================================
   HORTICULTURE CALCULATOR - UNIFIED STYLES
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
    color: #1e293b;
    line-height: 1.6;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(135deg, hsl(145, 65%, 25%) 0%, hsl(145, 55%, 35%) 100%);
    color: white;
    padding: 2rem;
    padding-left: 150px; /* Space for back button */
    text-align: center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.back-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-btn:active {
    transform: translateY(0);
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.header p,
.header .subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 0; /* Reset - header already has padding */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo i {
    font-size: 1.75rem;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.main-content {
    padding: 2rem;
}

.intro-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, hsl(145, 65%, 95%) 0%, hsl(145, 50%, 98%) 100%);
    border-radius: 8px;
}

.intro-section h2 {
    color: hsl(145, 65%, 25%);
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.intro-section p,
.intro {
    color: hsl(145, 15%, 40%);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ============================================
   SECTIONS & CARDS
   ============================================ */
.calculator-section,
.controls-panel {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid hsl(145, 20%, 90%);
}

.calculator-section h2,
.calculator-section h3 {
    color: hsl(145, 65%, 25%);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.calculator-section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

/* Course Cards (Learning Platform) */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid hsl(145, 20%, 90%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: hsl(145, 50%, 60%);
}

.course-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, hsl(145, 65%, 95%), hsl(145, 55%, 92%));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.course-icon i {
    font-size: 1.75rem;
    color: hsl(145, 65%, 35%);
}

.course-card h3 {
    color: hsl(145, 65%, 25%);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-card p {
    color: hsl(145, 15%, 45%);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.input-group,
.form-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.input-field,
.input-item,
.form-group {
    display: flex;
    flex-direction: column;
}

.input-field label,
.input-item label,
label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(145, 20%, 30%);
    font-size: 0.9375rem;
}

.input-field input,
.input-field select,
.input-item input,
.input-item select,
input,
select {
    padding: 0.75rem 1rem;
    border: 2px solid hsl(145, 20%, 85%);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    color: #1e293b;
}

.input-field input:focus,
.input-field select:focus,
.input-item input:focus,
.input-item select:focus,
input:focus,
select:focus {
    outline: none;
    border-color: hsl(145, 60%, 45%);
    box-shadow: 0 0 0 3px hsla(145, 60%, 45%, 0.1);
}

input:disabled,
select:disabled {
    background-color: hsl(145, 20%, 96%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Result Fields */
.result-field,
.info-box {
    background: linear-gradient(135deg, hsl(145, 70%, 96%), hsl(145, 60%, 98%));
    border: 2px solid hsl(145, 50%, 70%);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: hsl(145, 65%, 25%);
    font-size: 1rem;
}

.info-box {
    background: linear-gradient(135deg, hsl(145, 70%, 96%), hsl(145, 60%, 98%));
    border-left: 4px solid hsl(145, 60%, 45%);
    padding: 1.25rem;
    margin: 1rem 0;
}

/* ============================================
   BUTTONS
   ============================================ */
button,
.btn,
.calculate-btn,
.home-btn {
    background: linear-gradient(135deg, hsl(145, 65%, 35%) 0%, hsl(145, 60%, 40%) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

button:hover,
.btn:hover,
.calculate-btn:hover,
.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px hsla(145, 65%, 25%, 0.25);
}

button:active,
.btn:active,
.calculate-btn:active {
    transform: translateY(0);
}

button:disabled,
.btn:disabled,
.calculate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.calculate-btn {
    width: 100%;
    margin: 1.25rem 0;
    padding: 1rem 1.5rem;
}

/* Tab Buttons */
.condition-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid hsl(145, 20%, 90%);
    padding-bottom: 0.5rem;
}

.tab-button {
    background: hsl(145, 15%, 95%);
    color: hsl(145, 20%, 40%);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.tab-button:hover {
    background: hsl(145, 60%, 45%);
    color: white;
}

.tab-button.active {
    background: hsl(145, 65%, 35%);
    color: white;
}

/* ============================================
   TABLES
   ============================================ */
table,
.dli-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

thead th,
.dli-table thead th {
    background: linear-gradient(135deg, hsl(145, 65%, 35%), hsl(145, 60%, 40%));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
}

tbody td,
.dli-table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid hsl(145, 20%, 92%);
    color: hsl(145, 20%, 30%);
    font-size: 0.9375rem;
}

tbody tr:hover,
.dli-table tbody tr:hover {
    background-color: hsl(145, 60%, 98%);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   RESULTS & OUTPUT
   ============================================ */
.results-section,
.result-grid {
    background: white;
    padding: 1.75rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid hsl(145, 20%, 90%);
}

.result-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid hsl(145, 60%, 45%);
}

.result-item h4 {
    color: hsl(145, 65%, 25%);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.result-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(145, 65%, 30%);
}

/* ============================================
   PROGRESS & BADGES
   ============================================ */
.progress-bar {
    width: 100%;
    height: 6px;
    background: hsl(145, 20%, 90%);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(145, 65%, 45%), hsl(145, 60%, 50%));
    transition: width 0.3s ease;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.slides-count {
    color: hsl(145, 20%, 50%);
    font-size: 0.875rem;
}

.completion-badge {
    color: hsl(145, 60%, 45%);
    font-size: 1.25rem;
}

.completion-badge.completed {
    color: hsl(145, 65%, 40%);
}

/* ============================================
   GRIDS & LAYOUTS
   ============================================ */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

/* ============================================
   CHARTS & VISUALIZATIONS
   ============================================ */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid hsl(145, 20%, 90%);
}

canvas {
    max-width: 100%;
    height: auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.unit {
    font-size: 0.875rem;
    color: hsl(145, 20%, 55%);
    margin-left: 0.25rem;
    font-weight: 400;
}

.help-text {
    font-size: 0.875rem;
    color: hsl(145, 20%, 55%);
    margin-top: 0.375rem;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Condition Panels */
.condition-panel {
    display: none;
}

.condition-panel.active {
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 1.25rem;
    }
    
    .input-group,
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .condition-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.25rem;
    }
    
    .header p {
        font-size: 0.875rem;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .calculator-section h2 {
        font-size: 1.25rem;
    }
}
/* ============================================
   LEARNING PLATFORM SPECIFIC STYLES
   ============================================ */

/* Course Selection Styles */
.course-selection {
    padding: 2rem 1rem;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, hsl(145, 60%, 50%), hsl(145, 60%, 40%));
}

.course-card {
    position: relative;
    overflow: hidden;
}

/* Course Presentation Styles */
.course-presentation {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.presentation-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.course-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-to-overview-btn {
    background: linear-gradient(135deg, hsl(145, 60%, 50%) 0%, hsl(145, 60%, 40%) 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.back-to-overview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsla(145, 60%, 40%, 0.4);
}

.course-title-section h2 {
    color: hsl(145, 65%, 25%);
    font-size: 1.8rem;
    font-weight: 700;
}

.slide-counter {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    color: #666;
}

.course-progress .progress-bar {
    height: 6px;
    margin: 0;
}

.slide-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-content h1 {
    color: hsl(145, 65%, 25%);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.slide-content h2 {
    color: hsl(145, 60%, 40%);
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.slide-content h3 {
    color: hsl(145, 55%, 45%);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.slide-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.slide-content ul, .slide-content ol {
    margin: 1rem 0 1rem 2rem;
}

.slide-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.slide-content strong {
    color: hsl(145, 65%, 25%);
}

.slide-content .highlight {
    background: linear-gradient(120deg, hsl(145, 60%, 50%) 0%, hsl(145, 60%, 50%) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    padding: 0.1em 0.3em;
}

/* Navigation Controls */
.navigation-controls {
    background: white;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: linear-gradient(135deg, hsl(145, 60%, 50%) 0%, hsl(145, 60%, 40%) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsla(145, 60%, 40%, 0.4);
}

.nav-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-btn.prev-btn {
    justify-self: start;
}

.nav-btn.next-btn {
    justify-self: end;
}

.slide-dots {
    display: flex;
    gap: 0.5rem;
    justify-self: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: hsl(145, 60%, 50%);
    transform: scale(1.2);
}

.dot:hover {
    background: hsl(145, 60%, 40%);
}

/* Course Completion Styles */
.course-completion {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.completion-message {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.completion-message i {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.completion-message h3 {
    color: hsl(145, 65%, 25%);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.completion-message p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.completion-btn {
    background: linear-gradient(135deg, hsl(145, 60%, 50%) 0%, hsl(145, 60%, 40%) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.completion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsla(145, 60%, 40%, 0.4);
}

/* Media Content Styles */
.media-container {
    margin: 2rem 0;
    text-align: center;
}

.slide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.slide-image:hover {
    transform: scale(1.02);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.slide-video {
    width: 100%;
    height: 315px;
    border: none;
}

.image-caption,
.video-caption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

/* Quiz Styles */
.quiz-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h3 {
    color: hsl(145, 65%, 25%);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option {
    background: white;
    border: 2px solid #d0d7de;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    font-weight: 500;
}

/* Radio button indicator */
.quiz-option::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: hsl(145, 60%, 50%);
    background: hsl(145, 70%, 98%);
    transform: translateX(4px);
}

.quiz-option:hover::before {
    border-color: hsl(145, 60%, 50%);
}

.quiz-option.selected {
    border-color: hsl(145, 60%, 40%);
    background: hsl(145, 70%, 95%);
    font-weight: 600;
}

/* Checkmark for selected option */
.quiz-option.selected::before {
    border-color: hsl(145, 60%, 40%);
    background: hsl(145, 60%, 40%);
    box-shadow: inset 0 0 0 3px white;
}

.quiz-option.correct {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.quiz-option.correct::before {
    border-color: #28a745;
    background: #28a745;
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.quiz-option.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
    font-weight: 600;
}

.quiz-option.incorrect::before {
    border-color: #dc3545;
    background: #dc3545;
    content: '✗';
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.quiz-explanation {
    margin-top: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    font-style: italic;
    display: none;
}

.quiz-explanation.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.quiz-progress {
    text-align: center;
    margin: 2rem 0;
    font-weight: 600;
    color: #666;
}

.quiz-score {
    background: linear-gradient(135deg, hsl(145, 60%, 50%) 0%, hsl(145, 60%, 40%) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
}

.quiz-score h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quiz-score p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.quiz-nav-buttons {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.quiz-btn {
    background: linear-gradient(135deg, hsl(145, 60%, 50%) 0%, hsl(145, 60%, 40%) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsla(145, 60%, 40%, 0.4);
}

.quiz-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quiz-btn.secondary {
    background: #6c757d;
}

.quiz-btn.secondary:hover:not(:disabled) {
    background: #5a6268;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Interactive Diagram Styles */
.interactive-diagram-container {
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #e9ecef;
}

.interactive-diagram-container h3 {
    color: hsl(145, 65%, 25%);
    margin-bottom: 0.5rem;
    text-align: center;
}

.interactive-diagram-container p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.diagram-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.interactive-diagram {
    max-width: 100%;
    height: auto;
}

.diagram-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.diagram-element:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.diagram-element:hover * {
    stroke-width: 4;
    filter: brightness(1.1);
}

.diagram-info-panel {
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    padding: 1.5rem;
    text-align: center;
}

.info-content.show {
    display: block !important;
    animation: fadeIn 0.5s ease;
}

.info-content h4 {
    color: hsl(145, 65%, 25%);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-content h4 i {
    color: hsl(145, 60%, 50%);
    font-size: 1.4rem;
}

.info-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.diagram-info-panel:empty::before {
    content: "Click on diagram components to learn more about each part of the system";
    color: #999;
    font-style: italic;
    padding: 2rem;
}

/* Diagram Animation Effects */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.diagram-element.active {
    animation: pulse 2s infinite;
}

/* Water flow animation for irrigation diagram */
@keyframes waterFlow {
    0% { opacity: 0; transform: translateY(-5px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(5px); }
}

.interactive-diagram .water-drops circle {
    animation: waterFlow 2s infinite;
    animation-delay: var(--delay, 0s);
}

/* Learning Platform Responsive Overrides */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .course-title-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .course-title-section h2 {
        font-size: 1.5rem;
    }

    .header-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .back-to-overview-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .slide-container {
        padding: 1rem;
    }

    .slide-content {
        padding: 2rem 1.5rem;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .navigation-controls {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-btn.prev-btn,
    .nav-btn.next-btn {
        justify-self: stretch;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .slide-dots {
        order: -1;
        justify-self: center;
    }

    .media-container {
        margin: 1.5rem 0;
    }

    .slide-video {
        height: 200px;
    }

    .quiz-nav-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quiz-nav-buttons .quiz-btn {
        width: 100%;
        justify-content: center;
    }

    .interactive-diagram-container {
        padding: 1rem;
        margin: 1rem 0;
    }

    .diagram-wrapper {
        padding: 0.5rem;
    }

    .interactive-diagram {
        width: 100%;
        height: auto;
    }

    .info-content {
        padding: 1rem;
    }

    .info-content h4 {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .completion-message {
        padding: 2rem 1.5rem;
    }

    .completion-message i {
        font-size: 3rem;
    }

    .completion-message h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   CALCULATOR-SPECIFIC UTILITIES
   ============================================ */

/* Info Text / Warning Boxes */
.info-text {
    background: linear-gradient(135deg, hsl(145, 70%, 96%), hsl(145, 60%, 98%));
    border: 2px solid hsl(145, 50%, 70%);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    color: hsl(145, 20%, 30%);
}


/* Tab Container Styles */
.tab-container {
    margin-bottom: 1.5rem;
}

.tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid hsl(145, 20%, 90%);
    padding-bottom: 0.5rem;
}

.tab-content {
    display: none;
}

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

/* ============================================
   PSYCHROMETRIC CALCULATOR - CONDITION CARDS
   ============================================ */

/* Conditions Grid - 2x2 Layout */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Condition Cards */
.condition-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px solid hsl(145, 20%, 90%);
    transition: all 0.3s ease;
}

.condition-card.disabled {
    opacity: 0.5;
    background: hsl(145, 10%, 98%);
}

@media (max-width: 900px) {
    .conditions-grid {
        grid-template-columns: 1fr;
    }
}

.condition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.condition-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.condition-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

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

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

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

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, hsl(145, 65%, 35%), hsl(145, 60%, 40%));
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px hsla(145, 60%, 45%, 0.2);
}

/* Condition Inputs */
.condition-inputs {
    display: block;
    transition: all 0.3s ease;
}

/* Condition Results */
.condition-results {
    margin-top: 1rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.result-item {
    background: hsl(145, 60%, 98%);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid hsl(145, 60%, 45%);
}

.result-label {
    font-size: 0.75rem;
    color: hsl(145, 20%, 50%);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 1rem;
    color: hsl(145, 65%, 25%);
    font-weight: 600;
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

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

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Learn More */
.learn-more {
    text-align: center;
    margin: 2rem 0;
}

.calculations {
    display: none;
    margin-top: 2rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.calc-card {
    background: white;
    border: 1px solid hsl(145, 20%, 90%);
    border-radius: 8px;
    padding: 1.5rem;
}

.calc-card h4 {
    color: hsl(145, 65%, 25%);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.calc-card p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: hsl(145, 20%, 40%);
}

.formula {
    background: hsl(145, 60%, 98%);
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    border-left: 3px solid hsl(145, 60%, 45%);
    color: hsl(145, 65%, 30%);
}

/* Responsive */
@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

/* Global Settings (Air Pressure) */
.global-setting {
    background: linear-gradient(135deg, hsl(145, 70%, 96%), hsl(145, 60%, 98%));
    border: 2px solid hsl(145, 50%, 70%);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.global-setting label {
    font-weight: 600;
    color: hsl(145, 65%, 25%);
    flex: 1;
}

.global-setting input {
    max-width: 150px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .global-setting {
        flex-direction: column;
        align-items: stretch;
    }
    
    .global-setting input {
        max-width: 100%;
    }
}

/* Custom animations and hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-transition {
    transition: all 0.3s ease;
}

.link-transition {
    transition: all 0.2s ease;
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
