* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #b8d8e8;
    --primary-dark: #9cc8d8;
    --secondary: #f8f6f0;
    --success: #a8d8c8;
    --warning: #f4e8a8;
    --error: #f4c8c8;
    --text: #2d3748;
    --text-muted: #718096;
    --bg: #fefefe;
    --bg-secondary: #faf9f7;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 25px -5px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fbf5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.splash-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Screen Management */
.screen {
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Auth Screen */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.auth-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-btn.primary {
    background: var(--primary);
    color: white;
}

.auth-btn.primary:hover {
    background: var(--primary-dark);
}

.auth-btn.secondary {
    background: var(--secondary);
    color: var(--text);
}

.auth-btn.secondary:hover {
    background: var(--border);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Main App */
#main-app {
    padding-bottom: 80px;
}

.app-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.2s;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
}

.nav-item {
  border: 1px solid #dee2e6;
  /* border-radius: 6px; */
  flex: 1;
  background: none;
  /* border: none; */
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
  color: var(--text-muted);
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Smart Timer Section */
.smart-timer-section {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.section-subtitle {
    font-size: 1.1em;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.4;
}

.feeding-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.timer-type-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.timer-type-option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.timer-type-option.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #22c55e;
    border-color: white;
    font-weight: bold;
    transform: scale(1.05);
}

.timer-type-option .emoji {
    display: block;
    font-size: 2em;
    margin-bottom: 0.5rem;
}

.timer-type-option .label {
    font-weight: 600;
}

.timer-display-large {
    font-size: 4em;
    font-weight: bold;
    color: white;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    display: inline-block;
    min-width: 250px;
}

.smart-timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.smart-timer-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 120px;
}

.smart-timer-btn.start {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.smart-timer-btn.start:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

.smart-timer-btn.stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.smart-timer-btn.stop:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

.smart-timer-btn.reset {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.smart-timer-btn.reset:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
}

.smart-timer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.timer-status {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    font-weight: 500;
}

.timer-status.running {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

.timer-status.stopped {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Formula Section */
.formula-quick-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.formula-entry-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2em;
}

.formula-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    color: white;
    font-weight: 600;
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1em;
}

/* Save Section */
.save-feeding-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    display: none;
}

.save-feeding-section.show {
    display: block;
}

.auto-save-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.auto-save-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.feeding-summary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: left;
}

.summary-item {
    margin: 0.5rem 0;
    font-size: 1.1em;
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 12px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Section */
.section {
    margin-bottom: 1.5rem;
}

.tracking-section {
    margin: 0;
    padding: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.quick-action {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.quick-action:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.action-text {
    font-weight: 500;
    color: var(--text);
}

/* Quick Log Grid */
.quick-log-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.preset-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #475569;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.3;
}

.preset-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.preset-btn:active {
    transform: scale(0.98);
}

.preset-btn.popular {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.preset-btn.popular:hover {
    border-color: #d97706;
    background: #fde68a;
}

.preset-btn .emoji {
    display: block;
    font-size: 1.5em;
    margin-bottom: 0.5rem;
}

.preset-section {
    margin-bottom: 1.5rem;
}

.preset-title {
    color: var(--text);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.activity-icon {
    font-size: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 12px;
    min-width: 3rem;
    text-align: center;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.activity-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Timer Card */
.timer-card {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timer-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.timer-stop {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
}

.timer-display {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.timer-info {
    text-align: center;
    opacity: 0.9;
}

/* Active Amount Input */
.active-amount-section {
    margin-top: 1rem;
    text-align: center;
}

.active-amount-section label {
    color: white;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.active-amount-section input {
    width: 100px;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1.1em;
    text-align: center;
}

/* Feeding and Diaper Types */
.feeding-types, .diaper-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.feeding-type, .diaper-type {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.feeding-type:hover, .diaper-type:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.diaper-type.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.type-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.type-label {
    font-weight: 500;
}

/* Diaper Tracker Section */
.diaper-tracker-section {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.diaper-type-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diaper-type-option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.diaper-type-option.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #d97706;
    border-color: white;
    font-weight: bold;
    transform: scale(1.05);
}

.diaper-type-option .emoji {
    display: block;
    font-size: 2.5em;
    margin-bottom: 0.5rem;
}

.diaper-type-option .label {
    font-size: 1em;
    font-weight: 600;
}

/* Voice Recorder */
.voice-recorder {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.voice-recorder.diaper {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.voice-intro {
    font-size: 1.1em;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.4;
}

.voice-button {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
}

.voice-button:hover {
    transform: scale(1.05);
}

.voice-button.recording {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    animation: pulse-voice 1.5s infinite;
}

.voice-button.processing {
    background: linear-gradient(135deg, #ffa502, #ff6348);
    animation: spin 1s linear infinite;
}

@keyframes pulse-voice {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.voice-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.voice-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.voice-status {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-weight: 500;
}

.voice-status.listening {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.voice-status.processing {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.voice-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.voice-transcript {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #2196f3;
    text-align: left;
    min-height: 60px;
}

.voice-result {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
    color: white;
}

.voice-result.saved {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.voice-result h4 {
    color: #4caf50;
    margin-bottom: 1rem;
    font-size: 1.2em;
}

.voice-result.saved h4 {
    color: #2196f3;
}

.extracted-item {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0;
}

.auto-save-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.voice-help {
    margin-top: 1.5rem;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 10px;
}

/* Manual Entry */
.manual-entry-toggle {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
}

.manual-entry-toggle:hover {
    background: var(--border);
}
.feeding-form {
    background: var(--bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid var(--border);
}

.feeding-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.feeding-type-manual {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.type-option-manual {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg);
}

.type-option-manual:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.type-option-manual.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.type-option-manual i {
    font-size: 2em;
    margin-bottom: 0.5rem;
    display: block;
}

.manual-timer-section {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.manual-timer-section h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.manual-timer-display {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.manual-timer-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.timer-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.timer-btn.start {
    background: #48bb78;
    color: white;
}

.timer-btn.stop {
    background: #f56565;
    color: white;
}

.timer-btn.reset {
    background: #ed8936;
    color: white;
}

.duration-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Notes */
.notes-input {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.notes-input:focus {
    outline: none;
    border-color: var(--primary);
}

.notes-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

/* Buttons */
.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.primary-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: var(--border);
}

/* Export Section */
.export-section {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.export-title {
    color: #1e293b;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.export-btn {
    background: white;
    border: 2px solid var(--border);
    color: #475569;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.export-btn:hover {
    border-color: var(--primary);
    background: #f8fafc;
    transform: translateY(-1px);
}

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

/* History */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-tab {
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab.active {
    background: var(--primary);
    color: white;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.history-icon {
    font-size: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 12px;
    min-width: 3rem;
    text-align: center;
}

.history-content {
    flex: 1;
}

.history-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.history-details {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.delete-btn {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Loading States */
.loading-placeholder, .empty-state, .error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.empty-icon, .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.menu-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-muted);
}
.menu-version {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
    opacity: 0.7;
}
.menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px); /* Adjust based on your menu header height */
}

.menu-actions {
    flex: 1; /* This will push the version to the bottom */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.user-name {
    font-weight: 600;
}

.user-email {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-action {
    background: none;
    border: none;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    color: var(--text);
}

.menu-action:hover {
    background: var(--bg-secondary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.warning {
    border-left-color: var(--warning);
}

/* Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 100px;
    right: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: all 0.2s;
}

.install-prompt:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Floating Success Animation */
.floating-success {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    animation: slideDown 3s ease-out forwards;
    z-index: 1000;
}

@keyframes slideDown {
    0% { top: -100px; opacity: 0; }
    10% { top: 50px; opacity: 1; }
    90% { top: 50px; opacity: 1; }
    100% { top: -100px; opacity: 0; }
}


 /* Settings Modal */
.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: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-form label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.settings-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    /* Add these lines to fix the dropdown */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.settings-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Fix for dark mode */
@media (prefers-color-scheme: dark) {
    .settings-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    }
}

/* Ensure options are visible */
.settings-select option {
    background: var(--bg);
    color: var(--text);
    padding: 0.5rem;
}

.header-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    max-width: 120px;
}

.connection-status, .sync-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.connection-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.connection-status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.sync-status.synced {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.sync-status.syncing {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.sync-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .header-status {
        display: none; /* Hide on mobile to save space */
    }
    
    /* Or make them very compact */
    .connection-status, .sync-status {
        font-size: 0.6rem;
        padding: 0.2rem 0.3rem;
        min-width: 60px;
    }
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.toggle-label {
    font-weight: 500;
    cursor: pointer;
}

/* Feeding Status Card */
.feeding-status-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.status-time {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.status-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 2.5rem;
    text-align: center;
}

.status-info {
    flex: 1;
}

.status-number {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.status-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.status-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding-left: 6px;
        padding-right: 6px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .feeding-types, .diaper-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-log-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feeding-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .smart-timer-controls {
        flex-direction: column;
        align-items: center;
    }

    .timer-display-large {
        font-size: 3em;
        min-width: 200px;
    }

    .timer-display {
        font-size: 2.5rem;
    }

    .voice-button {
        width: 100px;
        height: 100px;
    }

    .voice-icon {
        font-size: 2rem;
    }

    .side-menu {
        width: 280px;
    }

    .toast {
        min-width: auto;
        margin: 0 1rem;
    }

    .export-buttons {
        grid-template-columns: 1fr;
    }

    .formula-inputs {
        grid-template-columns: 1fr;
    }

    .duration-inputs {
        grid-template-columns: 1fr;
    }

    .feeding-type-manual {
        flex-direction: column;
    }

    .manual-timer-controls {
        flex-direction: column;
        align-items: center;
    }

    .smart-timer-section {
        padding: 1.5rem;
    }

    .voice-recorder {
        padding: 1.5rem;
    }

    .diaper-type-option {
        min-height: 100px;
        padding: 1.25rem 1rem;
    }

    .diaper-type-option .emoji {
        font-size: 2em;
    }

    .diaper-type-option .label {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .splash-title {
        font-size: 1.5rem;
    }

    .splash-icon {
        font-size: 3rem;
    }

    .stats-grid {
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .feeding-types, .diaper-types {
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .feeding-type-selector {
    }

    .quick-log-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .preset-btn {
        font-size: 0.8em;
        padding: 0.75rem 0.5rem;
    }

    .preset-btn .emoji {
        font-size: 1.2em;
    }

    .diaper-type-option {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111827;
        --bg-secondary: #1f2937;
        --text: #f9fafb;
        --text-muted: #9ca3af;
        --border: #374151;
        --secondary: #374151;
    }
}

/* Doctor tab specific styles */
.prep-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.prep-action-btn {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    text-align: left;
}

.prep-action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.prep-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.prep-action-btn .action-icon {
    font-size: 2rem;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 12px;
    min-width: 3.5rem;
    text-align: center;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.action-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Reference cards */
.reference-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.reference-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.reference-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.reference-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-card li {
    padding: 0.25rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1rem;
    font-size: 0.875rem;
}

/* Export actions */
.export-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Question list for doctor tab */
.question-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.question-item:hover {
    border-color: var(--primary);
}

.question-checkbox {
    margin-top: 0.25rem;
    cursor: pointer;
}

.question-text {
    flex: 1;
    line-height: 1.4;
    cursor: pointer;
    color: var(--text);
    font-size: 0.95rem;
}

.question-item.checked {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary);
}

.question-item.checked .question-text {
    color: var(--primary);
    font-weight: 500;
}

/* Summary stats for doctor tab */
.visit-summary {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

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

.summary-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.summary-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.summary-value {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Loading state for prep buttons */
.prep-action-btn.loading {
    pointer-events: none;
}

.prep-action-btn.loading .action-icon {
    animation: spin 1s linear infinite;
}

/* Prep sections visibility */
.prep-section {
    margin-bottom: 2rem;
}

.prep-section.hidden {
    display: none;
}

/* Notes input for doctor tab */
.doctor-notes-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.doctor-notes-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Success states */
.prep-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .prep-actions {
        gap: 0.75rem;
    }
    
    .prep-action-btn {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .prep-action-btn .action-icon {
        min-width: auto;
        margin: 0 auto;
    }
    
    .export-actions {
        flex-direction: column;
    }
    
    .reference-cards {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .question-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .prep-action-btn .action-icon {
        font-size: 1.5rem;
        padding: 0.5rem;
        min-width: 2.5rem;
    }
    
    .action-title {
        font-size: 1rem;
    }
    
    .reference-card {
        padding: 1rem;
    }
}

/* Concern analysis styles */
.medical-disclaimer {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.disclaimer-header {
    font-weight: bold;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.concern-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #e5e7eb;
}

.concern-item.high {
    border-left-color: #ef4444;
}

.concern-item.moderate {
    border-left-color: #f59e0b;
}

.concern-item.low {
    border-left-color: #10b981;
}

.concern-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.concern-title {
    font-weight: 600;
    flex: 1;
}

.severity-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.severity-badge.high {
    background: #fecaca;
    color: #b91c1c;
}

.severity-badge.moderate {
    background: #fde68a;
    color: #92400e;
}

.severity-badge.low {
    background: #dcfce7;
    color: #166534;
}

.concern-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.concern-questions ul {
    margin: 0.5rem 0;
    padding-left: 1rem;
}

.concern-questions li {
    margin: 0.25rem 0;
    color: var(--text-muted);
}

.medical-note {
    background: #f0f9ff;
    border-left: 3px solid #0ea5e9;
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-style: italic;
    font-size: 0.9rem;
}

.evidence-source {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    margin: 0.75rem 0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
}

css/* Password Toggle and Baby Animation Styles */

/* Enhanced auth icon with animation capabilities */
.auth-icon {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    user-select: none;
    position: relative;
}

/* Cute baby animation states */
.auth-icon.peek-a-boo {
    animation: peekABoo 2s ease-in-out;
}

.auth-icon.hiding {
    animation: hideEyes 0.3s ease-in-out;
}

@keyframes peekABoo {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(0.8) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(0.9) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes hideEyes {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.auth-icon:hover {
    transform: scale(1.1) rotate(3deg);
}

/* Password input with toggle */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.password-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Enhanced button animations */
.auth-btn:hover {
    transform: translateY(-1px);
}

/* Cute messages that appear */
.baby-message {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.baby-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.baby-message::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(99, 102, 241, 0.9);
}

/* Form group adjustments for password wrapper */
.form-group {
    position: relative;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .password-toggle:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .auth-icon {
        font-size: 3rem;
    }
    
    .baby-message {
        font-size: 0.7rem;
        padding: 6px 10px;
        top: -35px;
    }
    
    .password-toggle {
        font-size: 1.1rem;
        padding: 6px;
        right: 10px;
    }
}

/* Google Sign-In Button */
.auth-btn.google {
    background: #4285f4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.auth-btn.google:hover {
    background: #3367d6;
    transform: translateY(-1px);
}

.google-icon {
    font-size: 1.1rem;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 1rem;
    background: var(--bg-secondary);
}

/* Loading state for Google button */
.auth-btn.google.loading {
    pointer-events: none;
}

.auth-btn.google.loading .google-icon {
    animation: spin 1s linear infinite;
}

/* Enhanced baby message for Google sign-in */
.baby-message.google-success {
    background: rgba(66, 133, 244, 0.9);
}

.baby-message.google-success::after {
    border-top-color: rgba(66, 133, 244, 0.9);
}

/* Child Selector */
/* Child selector stays above content but below modals */
.child-selector-container {
  padding-top: 5px;
  padding-bottom: 5px;
  position: sticky; /* or fixed */
  top: 60px;
  z-index: 100;
  background: #fff;
}

/* Modal overlays should always be higher */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* gray overlay */
  z-index: 3000; /* higher than child selector */
  display: none; /* controlled by JS */
}

/* Actual modal content sits above overlay */
.modal .modal-content {
  position: relative;
  z-index: 3100;
}

.child-selector {
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 5px;
    padding-left: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.child-select {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    max-width: 300px;
}

.add-child-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.add-child-btn:hover {
    background: var(--primary-dark);
}

/* Child Form */
.child-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.child-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.child-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .child-selector {
        gap: 0.75rem;
    }
    
    .child-select {
        max-width: 100%;
    }
}

/* Edit child button */
.edit-child-btn {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-child-btn:hover {
    background: var(--border);
    border-color: var(--primary);
}

.edit-child-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Delete child button */
.delete-child-btn {
    background: var(--error);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-child-btn:hover {
    background: #dc2626;
}

/* Modal actions with delete button */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.modal-actions .delete-child-btn {
    margin-right: auto;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .child-selector {
        gap: 0.5rem;
    }
    
    .edit-child-btn {
        min-width: 36px;
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .delete-child-btn {
        margin-right: 0;
        order: 3;
    }
}
/* Last Breast Side Display */
.last-breast-info {
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.last-breast-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.last-breast-info p {
    margin: 0.25rem 0;
    opacity: 0.95;
}

/* Pumping Specific Styles */
.pumping-status-card {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.smart-pumping-section {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.pumping-side-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pump-side-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.pump-side-option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.pump-side-option.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #0891b2;
    border-color: white;
    font-weight: bold;
    transform: scale(1.05);
}

.pumped-quick-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.pumped-entry-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2em;
}

.pumped-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.voice-recorder.pumping {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.preset-btn.pumping {
    border-color: #0891b2;
    background: #e0f7fa;
    color: #0e7490;
}

.preset-btn.pumping:hover {
    border-color: #0e7490;
    background: #b2ebf2;
}

/* Safety Tips Section Styles */
.safety-tips-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border: 2px solid #fee2e2;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

.safety-header {
    text-align: center;
    margin-bottom: 25px;
}

.safety-header .section-title {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
}

.safety-header .section-subtitle {
    color: #7f1d1d;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.safety-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.safety-tip {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.safety-tip::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 0 12px 0 40px;
    opacity: 0.1;
}

.safety-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.safety-tip.urgent {
    border-left-color: #dc2626;
}

.safety-tip.urgent::before {
    background: #dc2626;
}

.safety-tip.moderate {
    border-left-color: #f59e0b;
}

.safety-tip.moderate::before {
    background: #f59e0b;
}

.safety-tip.info {
    border-left-color: #3b82f6;
}

.safety-tip.info::before {
    background: #3b82f6;
}

.safety-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    text-align: center;
    background: var(--bg-secondary);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.safety-tip.urgent .safety-icon {
    background: #fef2f2;
    color: #dc2626;
}

.safety-tip.moderate .safety-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.safety-tip.info .safety-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.safety-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text);
}

.safety-tip.urgent .safety-content h4 {
    color: #dc2626;
}

.safety-tip.moderate .safety-content h4 {
    color: #d97706;
}

.safety-tip.info .safety-content h4 {
    color: #2563eb;
}

.safety-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-content li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.safety-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.safety-tip.urgent .safety-content li::before {
    color: #dc2626;
}

.safety-tip.moderate .safety-content li::before {
    color: #f59e0b;
}

.safety-tip.info .safety-content li::before {
    color: #3b82f6;
}

.emergency-contacts {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.emergency-header h4 {
    color: #dc2626;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.contact-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-item strong {
    color: #dc2626;
    display: block;
    margin-bottom: 4px;
}

.safety-disclaimer {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0c4a6e;
}

.safety-disclaimer strong {
    color: #1e40af;
}

/* Mobile responsive adjustments for safety tips */
@media (max-width: 640px) {
    .safety-tips-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .safety-tips-section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .safety-tip {
        padding: 16px;
    }
    
    .safety-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .safety-content h4 {
        font-size: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .emergency-contacts {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .safety-header .section-title {
        font-size: 1.3rem;
    }
    
    .safety-content li {
        font-size: 0.85rem;
        padding-left: 16px;
    }
    
    .safety-disclaimer {
        font-size: 0.85rem;
        padding: 12px;
    }
}

/* Theme styles - add this to your styles.css */
body.theme-light {
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --text: #111827;
    --text-muted: #6b7280;
}

body.theme-dark {
    --bg: #111827;
    --bg-secondary: #1f2937;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border: #374151;
}

body.theme-auto {
    /* Use system preference */
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

/* Animated background particles */
.splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-icon-container {
    position: relative;
    margin-bottom: 2rem;
}

.splash-icon {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
    animation: iconBounce 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.splash-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.05);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
}

.baby-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    z-index: 2;
    position: relative;
}

.splash-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.splash-loader-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Android-specific optimizations */
@media (max-width: 480px) {
    .splash-title {
        font-size: 1.75rem;
    }
    
    .splash-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .splash-icon {
        width: 100px;
        height: 100px;
    }
    
    .baby-icon {
        font-size: 3rem;
    }
}

/* Fade out animation */
.splash-screen.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* Safe area support for Android */
@supports (padding: max(0px)) {
    .splash-screen {
        padding-top: max(env(safe-area-inset-top), 0px);
        padding-bottom: max(env(safe-area-inset-bottom), 0px);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* High refresh rate optimization */
@media (min-resolution: 120dpi) {
    .splash-icon {
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Add this to your styles.css - Install Banner Styles */

.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 10000;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.install-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.install-banner-text {
    flex: 1;
    min-width: 0;
}

.install-banner-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.install-banner-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
}

.install-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.install-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.install-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.install-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.install-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Install button in app (optional) */
.install-app-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.install-app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.install-app-button::before {
    content: "📱";
    font-size: 1.2rem;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .install-banner {
        padding: 0.75rem;
    }
    
    .install-banner-content {
        gap: 0.75rem;
    }
    
    .install-banner-title {
        font-size: 0.9rem;
    }
    
    .install-banner-subtitle {
        font-size: 0.8rem;
    }
    
    .install-btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Adjustments for when banner is shown */
body.install-banner-shown {
    padding-top: 80px;
}

@media (max-width: 480px) {
    body.install-banner-shown {
        padding-top: 70px;
    }
}

.modal-content.large {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.help-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px 0;
}

.help-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.help-section:last-child {
    border-bottom: none;
}

.help-section h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.help-section ul {
    margin: 0;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ==================== PUMPING SECTION STYLES ==================== */

/* Pumping Main Section */
.pumping-section {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.pumping-status-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.pumping-status-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.pumping-status-card p {
    margin: 0.5rem 0;
    opacity: 0.95;
}

/* Pump Side Selector */
.pump-side-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pump-side-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.pump-side-option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.pump-side-option.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #0891b2;
    border-color: white;
    font-weight: bold;
    transform: scale(1.05);
}

.pump-side-option .emoji {
    display: block;
    font-size: 2em;
    margin-bottom: 0.5rem;
}

.pump-side-option .label {
    font-weight: 600;
    font-size: 1rem;
}

/* Pump Controls */
.pump-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.pump-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    min-width: 120px;
}

.pump-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.pump-btn.start {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

.pump-btn.start:hover {
    background: rgba(34, 197, 94, 0.4);
}

.pump-btn.stop {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.pump-btn.stop:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* Volume Entry Section */
.volume-entry {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.volume-entry h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quick-volume-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.volume-preset-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.volume-preset-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.volume-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.volume-inputs .input-group label {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.volume-inputs .input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #0891b2;
    font-size: 1rem;
}

/* Pumping History */
.pumping-history {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pumping-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pumping-stats .stat-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0891b2;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.pumping-stats .stat-value {
    font-size: 25px;
    font-weight: bold;
    color: #0891b2;
}

.pumping-stats .stat-label {
    color: #0e7490;
    font-weight: 500;
}

/* Pumping Voice Recorder */
.voice-recorder.pumping {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

/* Pumping Preset Buttons */
.preset-btn.pumping {
    border-color: #0891b2;
    background: #e0f7fa;
    color: #0e7490;
}

.preset-btn.pumping:hover {
    border-color: #0e7490;
    background: #b2ebf2;
}

.preset-btn.pumping .emoji {
    font-size: 1.3em;
}

/* Record Button for Pumping */
.record-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
    font-size: 1rem;
    font-weight: 500;
}

.record-btn:hover {
    transform: scale(1.05);
}

.record-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.record-text {
    font-size: 0.875rem;
}

/* Recent Pumping Activities */
#recent-pumping h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#pumping-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .pumping-section {
        padding: 1.5rem;
    }
    
    .pump-side-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .pump-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pump-btn {
        margin: 0;
    }
    
    .volume-inputs {
        grid-template-columns: 1fr;
    }
    
    .quick-volume-buttons {
        gap: 0.25rem;
    }
    
    .volume-preset-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .pumping-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pump-side-option {
        min-height: 80px;
        padding: 1rem 0.5rem;
    }
    
    .pump-side-option .emoji {
        font-size: 1.5em;
    }
    
    .pump-side-option .label {
        font-size: 0.9rem;
    }
    
    .pump-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .pumping-history {
        padding: 1.5rem;
    }
    
    .record-btn {
        width: 100px;
        height: 100px;
    }
    
    .record-icon {
        font-size: 2rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pumping-history {
        background: var(--bg);
        color: var(--text);
    }
    
    .pumping-stats .stat-card {
        background: linear-gradient(135deg, #1e3a8a, #1e40af);
        border-color: #3b82f6;
        color: white;
    }
    
    .pumping-stats .stat-value {
        color: #60a5fa;
    }
    
    .pumping-stats .stat-label {
        color: #bfdbfe;
    }
}

/* Integration with existing bottom nav */
.nav-item[data-tab="pumping"] .nav-icon {
    font-size: 1.25rem;
}

.nav-item[data-tab="pumping"].active {
    color: var(--primary);
}

/* Ensure pumping tab content is hidden by default */
#pumping-tab {
    display: none;
}

#pumping-tab.active {
    display: block;
}

/* Voice status for pumping */
#pump-voice-status {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== END PUMPING SECTION STYLES ==================== */

/* Pumping Module Styles */
.pumping-timer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pumping-timer h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.pump-side-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pump-side-option {
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
}

.pump-side-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.pump-side-option.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pump-timer-display {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.pump-timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pump-timer-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    font-size: 16px;
}

.pump-timer-btn.start {
    background: #28a745;
    color: white;
}

.pump-timer-btn.start:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.pump-timer-btn.stop {
    background: #dc3545;
    color: white;
}

.pump-timer-btn.stop:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.pump-timer-btn.pause {
    background: #ffc107;
    color: #212529;
}

.pump-timer-btn.pause:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.pump-timer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.pump-quick-presets {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pump-preset-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.pump-preset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.pump-preset-btn.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: white;
    transform: translateY(-1px);
}

.pump-session-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.pump-session-info h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.pump-session-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.pump-session-detail {
    text-align: center;
}

.pump-session-detail .label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pump-session-detail .value {
    font-size: 18px;
    font-weight: 600;
}

.pump-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pump-stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pump-stat-card:hover {
    transform: translateY(-5px);
}

.pump-stat-card h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.pump-stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.pump-stat-card .label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pump-history-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pump-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.pump-history-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.pump-history-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.pump-history-table tr:hover {
    background: #f8f9fa;
}

.pump-side-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pump-side-badge.left {
    background: #e3f2fd;
    color: #1976d2;
}

.pump-side-badge.right {
    background: #f3e5f5;
    color: #7b1fa2;
}

.pump-side-badge.both {
    background: #e8f5e8;
    color: #388e3c;
}

.pump-duration {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #667eea;
}

.pump-actions {
    display: flex;
    gap: 5px;
}

.pump-action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.pump-action-btn.edit {
    background: #ffc107;
    color: #212529;
}

.pump-action-btn.edit:hover {
    background: #e0a800;
}

.pump-action-btn.delete {
    background: #dc3545;
    color: white;
}

.pump-action-btn.delete:hover {
    background: #c82333;
}

.pump-no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

.pump-no-data i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.pump-no-data h4 {
    margin-bottom: 10px;
    color: #333;
}

.pump-no-data p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design for Pumping Module */
@media (max-width: 768px) {
    .pumping-timer {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .pumping-timer h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .pump-side-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .pump-side-option {
        min-width: auto;
        padding: 10px 20px;
    }
    
    .pump-timer-display {
        font-size: 36px;
        margin: 15px 0;
    }
    
    .pump-timer-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .pump-timer-btn {
        min-width: auto;
        padding: 10px 20px;
    }
    
    .pump-quick-presets {
        gap: 8px;
    }
    
    .pump-preset-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pump-session-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pump-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pump-stat-card {
        padding: 15px;
    }
    
    .pump-stat-card .value {
        font-size: 24px;
    }
    
    .pump-history-table th,
    .pump-history-table td {
        padding: 10px;
        font-size: 12px;
    }
    
    .pump-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .pump-action-btn {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* Section Selector Styles */
.tracking-selector {
    background: center;
    padding: 20px;
    margin: 0 0 20px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 106px;
    z-index: 100;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-options {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.tracking-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 12px 20px;
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.tracking-option:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tracking-option.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.tracking-option .emoji {
    font-size: 1.2em;
}

/* Section Content Styles */
.tracking-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tracking-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 768px) {
    .tracking-options {
        gap: 6px;
    }
    
    .tracking-option {
        min-width: auto;
        padding: 5px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tracking-options {
        flex-direction: row;
        gap: 8px;
    }
    
    .tracking-option {
        justify-content: center;
        width: 100%;
    }
}


/* Sleep Tab Styles - Add to styles.css */

/* Sleep Status Card */
.sleep-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sleep-status-card .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sleep-status-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.sleep-status-card .status-time {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Active Sleep Session Card */
.sleep-session-card {
    background: linear-gradient(135deg, #4c63d2 0%, #5a67d8 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #667eea;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #667eea;
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        border-color: #4c63d2;
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.session-timer {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.session-actions {
    display: flex;
    justify-content: center;
}

/* Sleep Controls */
.sleep-controls {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.control-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.control-section h3 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 1.1rem;
}

.control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-sleep-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .quick-sleep-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .control-buttons {
        grid-template-columns: 1fr;
    }
}

/* Button Styles - Fix missing styles */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

.quick-sleep-duration {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.quick-sleep-duration:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Sleep Analysis Section */
.sleep-analysis-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.analysis-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.analysis-results {
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.analysis-content {
    display: grid;
    gap: 20px;
}

.insights-section,
.patterns-section,
.correlations-section,
.predictions-section {
    padding: 15px;
    border-radius: 8px;
    background: white;
    border-left: 4px solid #667eea;
}

.insight {
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.insight.positive {
    background: #f0fff4;
    border-left: 3px solid #38a169;
    color: #22543d;
}

.insight.warning {
    background: #fffbf0;
    border-left: 3px solid #ed8936;
    color: #744210;
}

.insight.tip {
    background: #ebf8ff;
    border-left: 3px solid #4299e1;
    color: #2a4365;
}

.insight.info {
    background: #f7fafc;
    border-left: 3px solid #718096;
    color: #4a5568;
}

/* Sleep Statistics Grid */
.sleep-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h4 {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recent Sleep Activities */
.recent-activities {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-activities h3 {
    margin: 0 0 20px 0;
    color: #4a5568;
}

.sleep-item {
    border-left: 4px solid #667eea;
}

.sleep-item .activity-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.activity-meta {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 5px;
}

.activity-notes {
    font-size: 0.85rem;
    color: #4a5568;
    font-style: italic;
    margin-top: 8px;
    padding: 8px;
    background: #f7fafc;
    border-radius: 4px;
}

/* Sleep Modal Enhancements */
#sleep-modal .modal-content {
    max-width: 500px;
}

#sleep-modal .form-group {
    margin-bottom: 20px;
}

#sleep-modal select,
#sleep-modal input,
#sleep-modal textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

#sleep-modal select:focus,
#sleep-modal input:focus,
#sleep-modal textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#sleep-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

/* Sleep Analysis Modal */
#sleep-analysis-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Navigation updates for 5 tabs */
.bottom-nav {
    display: grid;
    /*grid-template-columns: repeat(4, 1fr);*/
    grid-template-columns: repeat(5, 1fr);
}

.nav-item {
    min-width: auto;
    flex: 1;
}

@media (max-width: 480px) {
    .nav-label {
        font-size: 0.7rem;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
}

/* Responsive adjustments for sleep tab */
@media (max-width: 768px) {
    .sleep-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analysis-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .analysis-actions {
        justify-content: center;
    }
    
    .sleep-session-card .session-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .session-timer {
        font-size: 1.5rem;
    }
}

/* Sleep quality indicators */
.quality-excellent { color: #38a169; }
.quality-good { color: #4299e1; }
.quality-fair { color: #ed8936; }
.quality-poor { color: #e53e3e; }
.quality-terrible { color: #9f1239; }

/* Animation for sleep tracking */
.sleep-tracking-animation {
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Activity List Items */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e5e7eb;
    transition: all 0.2s ease;
}

.activity-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    background: var(--primary);
    color: white;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.activity-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--error);
}

/* No data placeholder */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* Utils class for hiding elements */
.hidden {
    display: none !important;
}

/* Loading Overlay Styles */
.loading-overlay {
    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: 10000;
    backdrop-filter: blur(2px);
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-message {
    color: var(--text);
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notification positioning fix */
.toast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 9999 !important;
    min-width: 250px;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    border-left: 4px solid #007bff;
    font-size: 14px;
    line-height: 1.4;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.toast.show {
    transform: translateX(0) !important;
}

.toast.success {
    border-left-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.toast.error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.toast.warning {
    border-left-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}

.toast.info {
    border-left-color: #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

/* Toast container to stack multiple toasts */
.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    pointer-events: none;
}

.toast-container .toast {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-bottom: 10px;
    pointer-events: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .toast,
    .toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #5856eb;
}

.btn-secondary {
    background: #e2e8f0;
    color: #64748b;
}

.btn-secondary:hover {
    background: #cbd5e1;
    color: #475569;
}

/* Enhanced Timer Controls Styles with Pause Functionality */
.smart-timer-controls, .manual-timer-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.smart-timer-btn, .timer-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Start Button Styles */
.smart-timer-btn.start, .timer-btn.start {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.smart-timer-btn.start:hover:not(:disabled), .timer-btn.start:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1ea87a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.smart-timer-btn.start:disabled, .timer-btn.start:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Pause Button Styles */
.smart-timer-btn.pause, .timer-btn.pause {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.smart-timer-btn.pause:hover:not(:disabled), .timer-btn.pause:hover:not(:disabled) {
    background: linear-gradient(135deg, #e0a800, #e8630a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.smart-timer-btn.pause:disabled, .timer-btn.pause:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Stop Button Styles */
.smart-timer-btn.stop, .timer-btn.stop {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.smart-timer-btn.stop:hover:not(:disabled), .timer-btn.stop:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333, #d91a72);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.smart-timer-btn.stop:disabled, .timer-btn.stop:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reset Button Styles */
.smart-timer-btn.reset, .timer-btn.reset {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.smart-timer-btn.reset:hover:not(:disabled), .timer-btn.reset:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Timer Status Enhanced Styles */
.timer-status {
    text-align: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.timer-status.running {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
    animation: pulse-success 2s infinite;
}

.timer-status.paused {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 2px solid #ffc107;
    animation: pulse-warning 2s infinite;
}

.timer-status.stopped {
    background: linear-gradient(135deg, #cce5ff, #b8daff);
    color: #004085;
    border: 2px solid #007bff;
}

/* Status Animation Keyframes */
@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

/* Timer Display Enhanced */
.timer-display-large, .manual-timer-display {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    color: #495057;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.timer-display-large.running, .manual-timer-display.running {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #28a745;
    animation: timer-glow-green 2s infinite;
}

.timer-display-large.paused, .manual-timer-display.paused {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-color: #ffc107;
    animation: timer-glow-yellow 2s infinite;
}

@keyframes timer-glow-green {
    0%, 100% {
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 20px 5px rgba(40, 167, 69, 0.2);
    }
}

@keyframes timer-glow-yellow {
    0%, 100% {
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 20px 5px rgba(255, 193, 7, 0.2);
    }
}

/* Manual Timer Specific Styles */
.manual-timer-controls {
    gap: 10px;
}

.manual-timer-controls .timer-btn {
    min-width: 90px;
    font-size: 13px;
    padding: 10px 16px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .smart-timer-controls, .manual-timer-controls {
        gap: 8px;
    }
    
    .smart-timer-btn, .timer-btn {
        min-width: 80px;
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .timer-display-large, .manual-timer-display {
        font-size: 2.5rem;
        padding: 15px;
        margin: 15px 0;
    }
}

/* Dark Theme Support */
.theme-dark .timer-display-large, .theme-dark .manual-timer-display {
    background: linear-gradient(135deg, #343a40, #495057);
    color: #f8f9fa;
    border-color: #6c757d;
}

.theme-dark .timer-display-large.running, .theme-dark .manual-timer-display.running {
    background: linear-gradient(135deg, #155724, #1e7e34);
    color: #d4edda;
    border-color: #28a745;
}

.theme-dark .timer-display-large.paused, .theme-dark .manual-timer-display.paused {
    background: linear-gradient(135deg, #856404, #d39e00);
    color: #fff3cd;
    border-color: #ffc107;
}

/* Pumping Status Card - Similar to feeding status card */
.pumping-status-card {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.pumping-status-card .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pumping-status-card .status-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.pumping-status-card .status-time {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.pumping-status-card .status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}

.pumping-status-card .status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.pumping-status-card .status-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 2.5rem;
    text-align: center;
}

.pumping-status-card .status-info {
    flex: 1;
}

.pumping-status-card .status-number {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.pumping-status-card .status-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Smart pumping timer section using cyan theme */
.smart-timer-section {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

/* Pumping history section with light cyan theme */
.pumping-history {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pumping-history .section-title {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.pumping-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pumping-stats .stat-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0891b2;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.pumping-stats .stat-card:hover {
    transform: translateY(-2px);
}

.pumping-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0891b2;
    margin-bottom: 0.25rem;
}

.pumping-stats .stat-label {
    color: #0e7490;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Voice recorder for pumping with cyan theme */
.voice-recorder {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

/* Pumping preset buttons with cyan theme */
.preset-btn.pumping {
    border-color: #0891b2;
    background: #e0f7fa;
    color: #0e7490;
}

.preset-btn.pumping:hover {
    border-color: #0e7490;
    background: #b2ebf2;
}

/* Quick volume buttons */
.quick-volume-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.volume-preset-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.volume-preset-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Manual pumping form styles */
#manual-pumping-form {
    background: var(--bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid var(--border);
}

#manual-pumping-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

#manual-pumping-form .feeding-type-manual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

#manual-pumping-form .type-option-manual {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg);
}

#manual-pumping-form .type-option-manual:hover {
    border-color: #0891b2;
    transform: translateY(-2px);
}

#manual-pumping-form .type-option-manual.selected {
    border-color: #0891b2;
    background: #0891b2;
    color: white;
}

#manual-pumping-form .type-option-manual i {
    font-size: 2em;
    margin-bottom: 0.5rem;
    display: block;
}

/* Pumping voice status and results */
#pump-voice-status {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

#pump-voice-transcript {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #0891b2;
    text-align: left;
    min-height: 60px;
}

#pump-voice-result {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
    color: white;
}

#pump-voice-result.saved {
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.3);
}

#pump-voice-result h4 {
    color: #06b6d4;
    margin-bottom: 1rem;
    font-size: 1.2em;
}

#pump-voice-result.saved h4 {
    color: #0891b2;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .pumping-status-card .status-grid {
        gap: 0.75rem;
    }
    
    .pumping-status-card .status-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .pumping-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-volume-buttons {
        gap: 0.25rem;
    }
    
    .volume-preset-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    #manual-pumping-form .feeding-type-manual {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pumping-history {
        padding: 1.5rem;
    }
}

/* Feedback Modal Styles */
#feedback-modal .modal-content {
    max-width: 600px;
}

#feedback-form textarea {
    min-height: 120px;
    resize: vertical;
}

#feedback-form .form-group {
    margin-bottom: 20px;
}

#feedback-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

#feedback-form input,
#feedback-form select,
#feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

#feedback-form input:focus,
#feedback-form select:focus,
#feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.feedback-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Mobile responsive */
@media (max-width: 640px) {
    #feedback-modal .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    #feedback-form input,
    #feedback-form select,
    #feedback-form textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Admin Panel Styles */
.admin-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feedback-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feedback-filters select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}

.feedback-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feedback-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feedback-item.status-new {
    border-left: 4px solid #f59e0b;
}

.feedback-item.status-reviewed {
    border-left: 4px solid #3b82f6;
}

.feedback-item.status-resolved {
    border-left: 4px solid #10b981;
}

.feedback-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feedback-content {
    flex: 1;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feedback-subject {
    font-weight: 600;
    color: var(--text);
}

.feedback-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.feedback-status.status-new {
    background: #fef3c7;
    color: #92400e;
}

.feedback-status.status-reviewed {
    background: #dbeafe;
    color: #1e40af;
}

.feedback-status.status-resolved {
    background: #d1fae5;
    color: #065f46;
}

.feedback-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.feedback-preview {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Feedback Detail Modal */
.feedback-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    font-size: 0.875rem;
}

.detail-message {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.detail-technical {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
}

.feedback-actions-admin {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.feedback-actions {
    display: flex;
    gap: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .feedback-filters {
        flex-direction: column;
    }
    
    .feedback-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .feedback-actions-admin {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Danger Zone Styles */
.danger-zone {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.danger-warning {
    color: #721c24;
    background: #f8d7da;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-danger-outline {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: #dc3545;
    color: white;
}

.setting-description {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.settings-section {
    margin-bottom: 2rem;
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}
