/* =========================================
   TABS CSS (Analysis, Log, Today)
   ========================================= */

.tab-container {
    padding: 20px 25px;
    margin-bottom: 80px; /* Space for bottom nav */
}

.page-title {
    color: #000080;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- ANALYSIS TAB STYLES --- */
.summary-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #000080; /* Navy top border */
}

.summary-card.red-border {
    border-top-color: #ff0000; /* Red top border for period length */
}

.summary-card h4 {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card h2 {
    font-size: 28px;
    color: #000080;
}

.summary-card span {
    font-size: 12px;
    color: #888;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.chart-title {
    color: #000080;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}
/* =========================================
   TODAY TAB (SYMPTOMS & MOODS LOGGING)
   ========================================= */

/* The Toggle Switch at the top */
.segment-control {
    display: flex;
    background-color: #e0e0e0;
    border-radius: 20px;
    padding: 4px;
    margin-bottom: 20px;
}

.segment-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.segment-btn.active {
    background-color: #000080; /* Navy Blue */
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* The Category Cards */
.category-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid #b89b5e; /* Gold border */
}

.category-card h4 {
    color: #000080;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The Selectable Bubble Pills */
.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between icons */
    justify-content: flex-start;
}

.log-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 68px; /* Keeps the text from wrapping too wildly */
    cursor: pointer;
    gap: 8px; /* Space between the circle and the text */
    user-select: none; /* Prevents ugly text highlighting on double tap */
}

/* The Cream Background Circle */
.pill-icon {
    width: 55px;
    height: 55px;
    background-color: #fdf3e1; /* The beautiful soft cream/yellow color from your screenshot! */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px; /* Makes the emoji nice and big */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

/* The Text Underneath */
.pill-text {
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

/* When a user taps it, the circle turns PinkGreen! */
.log-pill.selected .pill-icon {
    background-color: #4caf50; 
    transform: scale(1.1); /* Slight pop effect */
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.log-pill.selected .pill-text {
    color: #000080; /* Text turns dark navy when selected */
    font-weight: bold;
}

/* Custom Text Input for 'Others' */
.custom-symptom-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #b89b5e;
    border-radius: 15px;
    font-size: 13px;
    outline: none;
    color: #000080;
}

/* The Save Button */
.save-log-btn {
    width: 100%;
    background-color: #ff0000; /* PinkRed */
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 15px;
    margin-top: 10px;
    margin-bottom: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.save-log-btn:hover {
    background-color: #cc0000;
}
/* =========================================
   CARE TAB STYLES (FORMS & INPUTS)
   ========================================= */

.form-label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 5px;
    margin-top: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #b89b5e;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    color: #000080;
}

.input-group select {
    padding: 10px;
    border: 1px solid #b89b5e;
    border-radius: 12px;
    font-size: 13px;
    color: #000080;
    background-color: white;
    outline: none;
    font-weight: bold;
}
/* =========================================
   SMART NOTIFICATION BADGE
   ========================================= */
.nav-item {
    position: relative; /* Allows the badge to sit on top of the icon */
}

.nav-badge {
    position: absolute;
    top: -2px;
    right: 18px;
    background-color: #ff0000; /* Alert Red */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse-red 2s infinite; /* Reuses your breathing animation! */
}
/* =========================================
   LOG TAB: DAILY DETAILS NESTING
   ========================================= */
.log-details-area {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    font-size: 11px;
}

.daily-log-item {
    background-color: #fcfcfc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #3498db;
    color: #555;
}

.daily-log-date {
    font-weight: bold;
    color: #000080;
    margin-bottom: 6px;
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.daily-log-data {
    margin-bottom: 3px;
}

.daily-log-data span {
    font-weight: bold;
    color: #333;
}

/* =========================================
   SETTINGS MENU & PROFILE MODAL CSS
   ========================================= */
.settings-dropdown {
    position: relative;
    display: inline-block;
}

.settings-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #000080;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}
.settings-btn:hover { color: #3498db; }

.settings-menu-content {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #eee;
}

.settings-menu-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #f9f9f9;
    transition: 0.2s;
}

.settings-menu-content a:hover { background-color: #f0f8ff; color: #000080; }
.settings-menu-content a.danger-text { color: #ff0000; }
.settings-menu-content a.danger-text:hover { background-color: #ffe6e6; }
.show-settings { display: block; }

/* Profile Container Updates */
.dash-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.dash-profile .avatar {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000080;
    font-size: 20px;
    transition: 0.2s;
    overflow: hidden;
}
.dash-profile .avatar:hover { transform: scale(1.05); border-color: #3498db; }
.dash-profile .avatar img { width: 100%; height: 100%; object-fit: cover; }
.update-profile-link { font-size: 10px; color: #b89b5e; text-decoration: none; font-weight: bold; margin-top: 2px; transition: 0.2s;}
.update-profile-link:hover { color: #3498db; text-decoration: underline; }