/* ==========================================================================
   MEDICAL THEME - PULSOXYMETRY APP v3.0
   ========================================================================== */

:root {
    --primary-color: #2c3e50;      /* Dark Blue - Text & Headings */
    --accent-color: #3498db;       /* Blue - Primary Buttons & Icons */
    --success-color: #27ae60;      /* Green - Action Buttons */
    --warning-color: #e67e22;      /* Orange - Alerts */
    --danger-color: #e74c3c;       /* Red - Delete/Error */
    --text-muted: #7f8c8d;         /* Gray - Secondary Text */
    --bg-light: #f5f7fa;           /* Light Gray - Backgrounds */
    --bg-white: #ffffff;           /* White - Cards */
    --border-color: #bdc3c7;       /* Light Border */
    --shadow-soft: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-color);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.d-block { display: block; }
.font-bold { font-weight: bold; }
.text-muted { color: var(--text-muted); }
.text-small { fontSize: 13px; }

/* --- CARDS & CONTAINERS --- */
.medical-card {
    padding: 25px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
}

.tab-content-container {
    padding: 30px;
    background-color: var(--bg-light);
}

.info-box {
    padding: 15px;
    background-color: #e8f4f8;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    margin-bottom: 25px;
}

.empty-state {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed var(--border-color);
}

/* --- BUTTONS --- */
.btn-primary {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover { background-color: #2980b9; }

.btn-success {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-success:hover { background-color: #219150; }

.btn-danger {
    padding: 10px 20px;
    font-size: 14px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-danger:hover { background-color: #c0392b; }

.btn-full-width {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* --- FORM ELEMENTS --- */
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box; /* Fix width issues */
}
.form-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* --- UPLOAD COMPONENT --- */
.upload-box {
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--accent-color);
    border-radius: 10px;
    background-color: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-box:hover {
    background-color: #e3ebf3;
    border-color: #2980b9;
}

/* --- PROGRESS BAR --- */
.progress-container {
    width: 100%;
    height: 30px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--success-color);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* --- ERROR PAGE --- */
.error-page-container {
    padding: 50px;
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.error-title {
    color: var(--primary-color); 
    margin-bottom: 15px;
}
.error-message {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- DATE PICKER OVERRIDES --- */
.DateInput_input {
    font-family: inherit;
    font-size: 14px;
    padding: 8px;
}
