/* ========================================
   CaffeineMetabolismCalculator.css
   Calculator-specific styles ONLY
   DO NOT redefine global classes!
   ======================================== */

/* Input Layout */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Drink Entry Styles */
.drink-entry {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.drink-entry:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.drink-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(102, 126, 234, 0.2);
}

.drink-entry-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.btn-remove-entry {
    background: transparent;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-remove-entry:hover {
    background: rgba(229, 62, 62, 0.1);
    color: #c53030;
}

.drink-entry-content .input-row:last-child {
    margin-bottom: 0;
}

/* Add Entry Button Container */
.add-entry-btn-container {
    margin-top: 10px;
}

.add-entry-btn-container .btn-custom-outline {
    border-style: dashed;
    border-width: 2px;
}

.input-group-custom {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-label i {
    color: #667eea;
}

/* Result Section */
.caffeine-result-main {
    text-align: center;
    padding: 20px;
}

.caffeine-result-label {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.caffeine-result-value {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.caffeine-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.caffeine-status-badge i {
    font-size: 1.1rem;
}

/* Status Colors */
.caffeine-safe {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border: 2px solid #48bb78;
}

.caffeine-caution {
    background: rgba(246, 224, 94, 0.1);
    color: #d69e2e;
    border: 2px solid #d69e2e;
}

.caffeine-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.caffeine-danger {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: 2px solid #f56565;
}

/* Divider */
.caffeine-divider {
    margin: 20px 0;
    border: none;
    border-top: 2px dashed rgba(102, 126, 234, 0.2);
}

/* Recommendation Section */
.caffeine-recommendation {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.caffeine-rec-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 8px;
}

.caffeine-rec-label i {
    color: #f59e0b;
}

.caffeine-rec-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    font-family: 'Poppins', sans-serif;
}

/* Info Box */
.caffeine-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.caffeine-info-box i {
    font-size: 2rem;
    color: #667eea;
    flex-shrink: 0;
}

.caffeine-info-title {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 5px;
}

.caffeine-info-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 15px;
}

/* Timeline Table */
.caffeine-timeline-table {
    overflow-x: auto;
}

.caffeine-timeline-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.caffeine-timeline-table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.caffeine-timeline-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.caffeine-timeline-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #4a5568;
}

.caffeine-timeline-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.02);
}

.caffeine-timeline-table tbody tr:last-child td {
    border-bottom: none;
}

/* Timeline Highlight */
.timeline-highlight {
    background: rgba(102, 126, 234, 0.1) !important;
    font-weight: 600;
}

.timeline-bedtime {
    background: rgba(245, 158, 11, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-row {
        grid-template-columns: 1fr;
    }

    .caffeine-result-value {
        font-size: 2.5rem;
    }

    .caffeine-rec-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 250px;
    }

    .caffeine-timeline-table {
        font-size: 0.8rem;
    }

    .caffeine-timeline-table th,
    .caffeine-timeline-table td {
        padding: 8px 5px;
    }

    .drink-entry {
        padding: 12px;
    }

    .drink-entry-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .drink-entry-number {
        font-size: 0.85rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .caffeine-result-value {
        font-size: 2rem;
    }

    .caffeine-info-box {
        flex-direction: column;
        text-align: center;
    }

    .drink-entry {
        padding: 10px;
    }
}
