﻿.model-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

    .model-badge i {
        margin-right: 8px;
    }


.form-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #48bb78;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

    .form-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-input:disabled {
        background: #f7fafc;
        cursor: not-allowed;
    }

label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

    label i.fa-info-circle {
        color: #667eea;
        cursor: help;
        margin-left: 5px;
        font-size: 0.9rem;
    }



.food-status-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-option {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
}

    .btn-option:hover {
        border-color: #667eea;
        color: #667eea;
    }

    .btn-option.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: transparent;
    }

.result-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

    .result-item:last-child {
        border-bottom: none;
    }

    .result-item label {
        color: #718096;
        font-size: 0.9rem;
        margin-bottom: 8px;
        font-weight: 600;
    }

.result-value-range {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

    .result-value-range .best-case {
        color: #48bb78;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .result-value-range .separator {
        color: #cbd5e0;
        font-size: 1.2rem;
    }

    .result-value-range .worst-case {
        color: #f59e0b;
        font-size: 1.5rem;
        font-weight: 700;
    }

.result-avg {
    color: #4a5568;
    font-size: 1rem;
    margin-top: 5px;
}

    .result-avg strong {
        color: #667eea;
        font-size: 1.3rem;
    }

.warning-note {
    background: #fef5e7;
    border-left: 4px solid #f59e0b;
    padding: 12px 15px;
    border-radius: 8px;
    color: #744210;
    font-size: 0.95rem;
    margin-top: 10px;
}

.legal-warning {
    background: #fee;
    border-left: 4px solid #ef4444;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

    .legal-warning.danger {
        display: block;
    }

    .legal-warning strong {
        color: #991b1b;
        display: block;
        margin-bottom: 8px;
        font-size: 1.1rem;
    }

    .legal-warning p {
        color: #7f1d1d;
        margin: 5px 0;
    }

    .legal-warning i {
        color: #ef4444;
        margin-right: 8px;
    }

.chart-container {
    position: relative;
    height: 350px;
    margin: 25px 0;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.line-sample {
    width: 30px;
    height: 3px;
    display: inline-block;
    border-radius: 2px;
}

.line-fast {
    background: #3b82f6;
}

.line-avg {
    background: #22c55e;
}

.line-slow {
    background: #f97316;
}

.area-sample {
    width: 30px;
    height: 12px;
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    border-radius: 2px;
}

.disclaimer-banner {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: pulse 2s ease-in-out infinite;
}

    .disclaimer-banner i {
        color: #ff6b35;
        font-size: 1.5rem;
    }

    .disclaimer-banner strong {
        color: #744210;
        font-size: 1.1rem;
    }

    .disclaimer-banner a {
        color: #667eea;
        text-decoration: underline;
    }

.note {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.6;
}

/* Drinks Timeline */
.drinks-list {
    margin-top: 15px;
}

.drink-item {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
}

    .drink-item:hover {
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    }

.drink-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .drink-item-header h5 {
        color: #2d3748;
        font-size: 1rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .drink-item-header h5 i {
            color: #667eea;
        }

.btn-remove-drink {
    background: #fee;
    color: #ef4444;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .btn-remove-drink:hover {
        background: #ef4444;
        color: white;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .glass-card {
        padding: 20px;
    }

    .chart-container {
        height: 300px;
    }

    .result-value-range {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .food-status-btns {
        flex-direction: column;
    }

    .btn-option {
        min-width: 100%;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }
}

/* ==================== Calibration & History Styles ==================== */
.calibration-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    border-radius: 12px;
    border: 2px solid #c7d2fe;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .stat-item label {
        font-size: 0.85rem;
        color: #64748b;
        font-weight: 500;
    }

    .stat-item strong {
        font-size: 1.3rem;
        color: #667eea;
        font-weight: 700;
    }

    .stat-item .small {
        font-size: 0.75rem;
    }

    .stat-item:last-child {
        grid-column: span 2;
    }

.history-list {
    max-height: 500px;
    overflow-y: auto;
}

.history-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

    .history-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-date {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.history-header .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.btn-delete-record {
    background: transparent;
    border: none;
    color: #ef4444;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .btn-delete-record:hover {
        background: #fee;
    }

.history-body {
    padding-left: 8px;
}

.history-drinks {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 500;
}

.history-times {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

    .history-times span {
        margin: 0 4px;
    }

.btn-sm {
    padding: 4px 12px;
    font-size: 0.85rem;
}

/* Modal input group styling */
.input-group {
    display: flex;
    align-items: stretch;
}

    .input-group .form-input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        flex: 1;
    }

    .input-group-text {
        background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
        border: 2px solid #48bb78;
        border-left: none;
        padding: 0 16px;
        display: flex;
        align-items: center;
        color: #667eea;
        font-weight: 600;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
    }

/* Active button state */
#btnUsePersonalBeta.active {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-color: #38a169;
}

/* Calibration hint message */
.calibration-hint {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 15px;
    color: #856404;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calibration-hint i {
    color: #ffc107;
    font-size: 1.1rem;
}

/* Personal Calibration Results Section */
.personal-calibration-results {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
}

.calibration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

    .calibration-badge i {
        font-size: 1rem;
    }

.personal-calibration-results .result-item {
    margin-bottom: 20px;
}

    .personal-calibration-results .result-item:last-child {
        margin-bottom: 0;
    }

.personal-calibration-results label {
    color: #667eea;
    font-weight: 600;
}

.personal-calibration-results #personalAbsoluteSoberTime {
    color: #667eea;
}

@media (max-width: 768px) {
    .calibration-stats {
        grid-template-columns: 1fr;
    }

        .calibration-stats .stat-item:last-child {
            grid-column: span 1;
        }
}

