/* ==================== 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);
}


/* 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: #FFF9F5;
    border-bottom: 2px solid #FFE8E0;
    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;
}

.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: white;
    color: #FF6B6B;
    border-color: #FF6B6B;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
    font-weight: 700;
}

.tracking-option .emoji,
.tracking-option .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    line-height: 1;
}
.tracking-option .tab-icon svg { width: 20px; height: 20px; }
.diaper-type-option .tab-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.diaper-type-option .tab-icon svg { width: 26px; height: 26px; }

/* Section Content Styles */
