/**
 * Phytopedia Dosage Calculator Styles
 * Clean, modern design matching Phytopedia brand
 *
 * @version 1.0.0
 */

/* ============================================
   Container & Layout
   ============================================ */

.phytopedia-calculator {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #424242;
}

/* ============================================
   Progress Bar
   ============================================ */

.calculator-progress {
    margin-bottom: 40px;
}

.progress-bar-container {
    height: 8px;
    background: #E8EAED;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--phytopedia-primary, #4CAF50), var(--phytopedia-secondary, #009688));
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.progress-step {
    flex: 1;
    text-align: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E8EAED;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--phytopedia-primary, #4CAF50);
    color: #ffffff;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: var(--phytopedia-secondary, #009688);
    color: #ffffff;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
}

.progress-step.active .step-label {
    color: #424242;
    font-weight: 600;
}

/* ============================================
   Step Content
   ============================================ */

.calculator-step-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    min-height: 400px;
}

.calculator-step h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #212121;
}

.step-description {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 32px 0;
}

/* ============================================
   Disclaimer Step
   ============================================ */

.disclaimer-content {
    max-width: 700px;
    margin: 0 auto;
}

.disclaimer-box {
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.disclaimer-box.warning {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
}

.disclaimer-box.info {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
}

.disclaimer-box.fda {
    background: #F5F5F5;
    border-left: 4px solid #9E9E9E;
    font-size: 14px;
}

.disclaimer-box h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #212121;
}

.disclaimer-box p {
    margin: 0;
    line-height: 1.6;
}

.disclaimer-box ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
    line-height: 1.8;
}

.disclaimer-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.disclaimer-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* ============================================
   Substance Step
   ============================================ */

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

.substance-card {
    padding: 24px;
    border: 2px solid #E8EAED;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.substance-card:hover {
    border-color: var(--phytopedia-primary, #4CAF50);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.substance-card.selected {
    border-color: var(--phytopedia-primary, #4CAF50);
    background: #E8F5E9;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.substance-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.substance-name {
    font-size: 16px;
    font-weight: 600;
    color: #424242;
}

/* ============================================
   Profile Step
   ============================================ */

.profile-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #212121;
}

.weight-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weight-inputs input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E8EAED;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.weight-inputs input:focus {
    outline: none;
    border-color: var(--phytopedia-primary, #4CAF50);
}

.weight-inputs span {
    color: #6c757d;
    font-weight: 600;
}

.experience-grid,
.tolerance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.experience-card,
.tolerance-card {
    padding: 16px;
    border: 2px solid #E8EAED;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-card:hover,
.tolerance-card:hover {
    border-color: var(--phytopedia-primary, #4CAF50);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.experience-card.selected,
.tolerance-card.selected {
    border-color: var(--phytopedia-primary, #4CAF50);
    background: #E8F5E9;
}

.experience-name,
.tolerance-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #212121;
}

.experience-description,
.tolerance-description {
    font-size: 14px;
    color: #6c757d;
}

.safety-checks {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.safety-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

.safety-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ============================================
   Product Step
   ============================================ */

.product-form {
    max-width: 500px;
    margin: 0 auto;
}

.product-form input,
.product-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8EAED;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.product-form input:focus,
.product-form select:focus {
    outline: none;
    border-color: var(--phytopedia-primary, #4CAF50);
}

.product-form small {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #6c757d;
}

/* ============================================
   Method Step
   ============================================ */

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

.method-card {
    padding: 24px;
    border: 2px solid #E8EAED;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--phytopedia-primary, #4CAF50);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.method-card.selected {
    border-color: var(--phytopedia-primary, #4CAF50);
    background: #E8F5E9;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.method-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.method-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #212121;
}

.method-timing {
    font-size: 14px;
    color: #6c757d;
}

.method-timing div {
    margin: 4px 0;
}

/* ============================================
   Results Step
   ============================================ */

.results-summary {
    max-width: 700px;
    margin: 0 auto;
}

.result-card.primary {
    background: linear-gradient(135deg, var(--phytopedia-primary, #4CAF50), var(--phytopedia-secondary, #009688));
    color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.result-card.primary h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    opacity: 0.9;
}

.dose-amount {
    font-size: 64px;
    font-weight: 700;
    margin: 16px 0;
}

.dose-range {
    font-size: 18px;
    opacity: 0.9;
}

.result-details {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.detail-item {
    padding: 12px 0;
    border-bottom: 1px solid #E8EAED;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: #212121;
}

.warnings-box {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.warnings-box h4 {
    margin: 0 0 12px 0;
    color: #212121;
}

.warnings-box ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.safety-tips {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.safety-tips h4 {
    margin: 0 0 12px 0;
    color: #212121;
}

.safety-tips ul {
    margin: 0;
    padding-left: 20px;
    line-height: 2;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-save-recommendation,
.btn-start-over {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-recommendation {
    background: var(--phytopedia-primary, #4CAF50);
    color: #ffffff;
}

.btn-save-recommendation:hover {
    background: var(--phytopedia-secondary, #009688);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-save-recommendation:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-save-recommendation:disabled:hover {
    background: var(--phytopedia-primary, #4CAF50);
    transform: none;
    box-shadow: none;
}

.btn-start-over {
    background: #f8f9fa;
    color: #424242;
    border: 2px solid #E8EAED;
}

.btn-start-over:hover {
    background: #E8EAED;
}

/* ============================================
   Navigation Buttons
   ============================================ */

.calculator-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.btn-nav {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back {
    background: #f8f9fa;
    color: #424242;
    border: 2px solid #E8EAED;
}

.btn-back:hover {
    background: #E8EAED;
}

.btn-next {
    background: var(--phytopedia-primary, #4CAF50);
    color: #ffffff;
    margin-left: auto;
}

.btn-next:hover {
    background: var(--phytopedia-secondary, #009688);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-next.disabled:hover {
    background: var(--phytopedia-primary, #4CAF50);
    box-shadow: none;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .calculator-step-content {
        padding: 24px;
    }

    .calculator-step h2 {
        font-size: 24px;
    }

    .substance-grid,
    .method-grid {
        grid-template-columns: 1fr;
    }

    .experience-grid,
    .tolerance-grid {
        grid-template-columns: 1fr;
    }

    .weight-inputs {
        flex-direction: column;
    }

    .weight-inputs span {
        display: none;
    }

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

    .step-label {
        display: none;
    }

    .dose-amount {
        font-size: 48px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions button {
        width: 100%;
    }
}

/* ============================================
   Loading State
   ============================================ */

.calculator-loading {
    text-align: center;
    padding: 60px 20px;
}

.calculator-loading p {
    font-size: 18px;
    color: #6c757d;
}

/* ============================================
   Strain Selection Step
   ============================================ */

.step-strain {
    padding: 20px 0;
}

/* Search Container */
.strain-search-container {
    position: relative;
    margin-bottom: 24px;
}

.strain-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.strain-search-input {
    width: 100%;
    padding: 16px 20px;
    padding-left: 50px;
    font-size: 16px;
    border: 2px solid #E8EAED;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.strain-search-input:focus {
    border-color: var(--phytopedia-primary, #4CAF50);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.strain-search-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
    color: #6c757d;
}

/* Search Results Dropdown */
.strain-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #E8EAED;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    margin-top: 4px;
}

.strain-search-results.hidden {
    display: none;
}

.strain-result-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.strain-result-item:last-child {
    border-bottom: none;
}

.strain-result-item:hover {
    background: #f8f9fa;
}

.strain-result-name {
    font-weight: 600;
    color: #424242;
    margin-bottom: 4px;
}

.strain-result-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #6c757d;
}

.search-loading,
.search-error,
.no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.no-results p {
    margin-bottom: 12px;
}

.add-custom-link {
    background: none;
    border: none;
    color: var(--phytopedia-primary, #4CAF50);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.add-custom-link:hover {
    text-decoration: underline;
}

/* Selected Strain Card */
.selected-strain-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(0, 150, 136, 0.08));
    border: 2px solid var(--phytopedia-primary, #4CAF50);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.selected-strain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.selected-label {
    color: var(--phytopedia-primary, #4CAF50);
    font-weight: 600;
    font-size: 14px;
}

.clear-strain-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.clear-strain-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #dc3545;
}

.selected-strain-info h4 {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: #424242;
}

.strain-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.strain-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.strain-type-badge.indica {
    background: #7c4dff;
    color: white;
}

.strain-type-badge.sativa {
    background: #ff9800;
    color: white;
}

.strain-type-badge.hybrid {
    background: #4caf50;
    color: white;
}

.strain-type-badge.small {
    padding: 2px 8px;
    font-size: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.thc-badge,
.cbd-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.thc-badge {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.cbd-badge {
    background: rgba(33, 150, 243, 0.15);
    color: #1565c0;
}

.strain-terpenes,
.strain-effects {
    margin-top: 10px;
}

.terpenes-label,
.effects-label {
    font-size: 12px;
    color: #6c757d;
    margin-right: 8px;
}

.terpene-tag,
.effect-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 12px;
    color: #424242;
    margin-right: 6px;
    margin-bottom: 4px;
}

.custom-strain-note {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Popular Strains Section */
.popular-strains-section {
    margin-bottom: 24px;
}

.popular-strains-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #424242;
}

.popular-strains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.popular-strain-card {
    background: #fff;
    border: 2px solid #E8EAED;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.popular-strain-card:hover {
    border-color: var(--phytopedia-primary, #4CAF50);
    background: rgba(76, 175, 80, 0.05);
    transform: translateY(-2px);
}

.popular-strain-name {
    font-weight: 600;
    font-size: 14px;
    color: #424242;
    margin-bottom: 6px;
}

.popular-strain-meta {
    margin-bottom: 4px;
}

.popular-strain-meta .type-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: capitalize;
}

.popular-strain-meta .type-badge.indica {
    background: rgba(124, 77, 255, 0.15);
    color: #7c4dff;
}

.popular-strain-meta .type-badge.sativa {
    background: rgba(255, 152, 0, 0.15);
    color: #f57c00;
}

.popular-strain-meta .type-badge.hybrid {
    background: rgba(76, 175, 80, 0.15);
    color: #43a047;
}

.popular-strain-thc {
    font-size: 12px;
    color: #6c757d;
}

.loading-spinner {
    color: #6c757d;
    font-size: 14px;
}

.no-popular,
.load-error {
    color: #6c757d;
    font-size: 14px;
}

/* Strain Step Actions */
.strain-step-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-add-custom-strain,
.btn-skip-strain {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-custom-strain {
    background: #fff;
    border: 2px solid #E8EAED;
    color: #424242;
}

.btn-add-custom-strain:hover {
    border-color: var(--phytopedia-primary, #4CAF50);
    background: rgba(76, 175, 80, 0.05);
}

.btn-skip-strain {
    background: #fff;
    border: 2px solid #E8EAED;
    color: #6c757d;
}

.btn-skip-strain:hover {
    border-color: #6c757d;
}

.btn-skip-strain.active {
    background: rgba(108, 117, 125, 0.1);
    border-color: #6c757d;
    color: #424242;
}

.skipped-strain-notice {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.skipped-strain-notice p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Custom Strain Modal */
.strain-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.strain-modal.hidden {
    display: none;
}

.strain-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.strain-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E8EAED;
}

.strain-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #424242;
}

.strain-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.strain-modal-close:hover {
    background: #f5f5f5;
}

.strain-modal-body {
    padding: 24px;
}

.strain-modal-body .form-group {
    margin-bottom: 18px;
}

.strain-modal-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #424242;
}

.strain-modal-body .form-group input,
.strain-modal-body .form-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 2px solid #E8EAED;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.strain-modal-body .form-group input:focus,
.strain-modal-body .form-group select:focus {
    border-color: var(--phytopedia-primary, #4CAF50);
}

.strain-modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.strain-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #E8EAED;
}

.strain-modal-footer .btn-cancel {
    background: #fff;
    border: 2px solid #E8EAED;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: background 0.2s;
}

.strain-modal-footer .btn-cancel:hover {
    background: #f5f5f5;
}

.strain-modal-footer .btn-save {
    background: var(--phytopedia-primary, #4CAF50);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.strain-modal-footer .btn-save:hover {
    background: #43a047;
    transform: translateY(-1px);
}

/* Strain type badges in search results */
.strain-result-meta .type-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: capitalize;
}

.strain-result-meta .type-badge.indica {
    background: rgba(124, 77, 255, 0.15);
    color: #7c4dff;
}

.strain-result-meta .type-badge.sativa {
    background: rgba(255, 152, 0, 0.15);
    color: #f57c00;
}

.strain-result-meta .type-badge.hybrid {
    background: rgba(76, 175, 80, 0.15);
    color: #43a047;
}

/* Responsive adjustments for strain step */
@media (max-width: 768px) {
    .popular-strains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strain-step-actions {
        flex-direction: column;
    }

    .btn-add-custom-strain,
    .btn-skip-strain {
        width: 100%;
        text-align: center;
    }

    .strain-modal-body .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Track Session Modal (Phase 4, Spec 0017)
   ============================================ */

.btn-track-session {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-track-session:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-track-session:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Session Modal */
.session-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    box-sizing: border-box;
}

.session-modal.hidden {
    display: none;
}

.session-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.session-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #E8EAED;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.session-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.session-modal-header .pro-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.session-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.session-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.session-modal-body .form-group {
    margin-bottom: 20px;
}

.session-modal-body label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    margin-bottom: 8px;
}

.session-modal-body input[type="number"],
.session-modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8EAED;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.session-modal-body input[type="number"]:focus,
.session-modal-body textarea:focus {
    outline: none;
    border-color: #667eea;
}

.session-modal-body small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9E9E9E;
}

/* Session Options Grid */
.session-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.session-option-btn {
    padding: 12px 8px;
    border: 2px solid #E8EAED;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.session-option-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.session-option-btn.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 600;
}

/* Mood Sliders */
.mood-slider-group {
    margin-bottom: 20px;
}

.mood-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.mood-label-left,
.mood-label-right {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
}

.mood-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77);
    border-radius: 4px;
    outline: none;
}

.mood-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mood-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mood-value {
    min-width: 32px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Would Repeat Toggle */
.would-repeat-toggle {
    display: flex;
    gap: 12px;
}

.repeat-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #E8EAED;
    background: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.repeat-btn:hover {
    border-color: #667eea;
}

.repeat-btn.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

#wouldRepeatYes.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

#wouldRepeatNo.selected {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* Session Modal Footer */
.session-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #E8EAED;
    background: #FAFAFA;
}

.session-modal-footer .btn-cancel {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: 2px solid #E8EAED;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #757575;
    cursor: pointer;
    transition: all 0.2s;
}

.session-modal-footer .btn-cancel:hover {
    border-color: #9E9E9E;
    color: #424242;
}

.session-modal-footer .btn-save {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.session-modal-footer .btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.session-modal-footer .btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

    .session-modal-content {
        max-height: 95vh;
    }

    .session-modal-header {
        padding: 16px 20px;
    }

    .session-modal-body {
        padding: 20px;
    }

    .session-modal-footer {
        flex-direction: column;
    }

    .would-repeat-toggle {
        flex-direction: column;
    }
}
