body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
h1 {
    color: white;
    text-align: center;
    font-size: 3em;
    margin: 20px 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: rgba(255,255,255,0.9);
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Water drops */
.water-drop {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.drop-inner {
    font-size: 2em;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Settings Section */
.settings-section {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.interval-selector, .goal-selector {
    margin-bottom: 15px;
}

.interval-selector label, .goal-selector label {
    color: white;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.interval-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    font-size: 14px;
}

/* Timer Display */
.dual-timer-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    border: 2px solid rgba(255,255,255,0.2);
}

.timer-section {
    text-align: center;
    flex: 1;
}

.timer-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.time-remaining {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.timer-label {
    color: rgba(255,255,255,0.8);
    font-size: 1.1em;
    margin: 0;
}

/* Facts */
.water-facts {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.fact-container {
    text-align: center;
}

.water-fact {
    color: white;
    font-size: 1em;
    margin: 0;
    line-height: 1.4;
}

/* Controls */
.controls {
    text-align: center;
    margin: 30px 0;
}

.control-button-container,
.action-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-water {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-water:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-fruit-veg {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-fruit-veg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-steps {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.btn-steps:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.btn-cooking {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-cooking:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Steps Input */
.steps-input-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.steps-input {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    width: 100px;
    text-align: center;
    font-size: 1em;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 40px 0 20px 0;
}

.section-header h2 {
    color: white;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

/* Stats */
.stats {
    /*display: flex;*/
  display: none;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    margin-top: 5px;
}

/* Charts */
.chart-section {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.chart-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.chart-tab {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-tab.active {
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.chart-tab:hover {
    background: rgba(255,255,255,0.3);
}

.chart-container {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 20px;
    height: 400px;
    position: relative;
}

/* Modal 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);
    backdrop-filter: blur(5px);
}

/* Bootstrap Modal Override */
.modal.fade {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.modal-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    color: white;
    font-size: 1.3em;
    margin-bottom: 30px;
}

.modal-actions {
    padding: 20px 30px 30px;
    text-align: center;
}

/* Animations */
.water-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.wave {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: wave 1.5s ease-in-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.3s;
}

.wave:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes wave {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.7; }
    50% { transform: scale(1.2) translateY(-10px); opacity: 1; }
}

.fruit-veg-animation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.bounce {
    font-size: 2em;
    animation: bounce 1s ease-in-out infinite;
}

.bounce:nth-child(2) {
    animation-delay: 0.2s;
}

.bounce:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Celebration */
.celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5em;
    z-index: 1001;
    animation: celebrate 2s ease-out forwards, pulse 0.5s ease-in-out infinite;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes celebrate {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.confetti {
    position: fixed;
    top: -10px;
    font-size: 2em;
    z-index: 1000;
    animation: confetti-fall 3s linear forwards;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(75vh) rotate(270deg) scale(1.05);
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes flash {
    0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    20% { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); }
    40% { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%); }
    60% { background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%); }
    80% { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
}

@keyframes flash-gentle {
    0%, 100% { 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
        filter: brightness(1);
    }
    25% { 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
        filter: brightness(1.1);
    }
    50% { 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
        filter: brightness(1.2);
    }
    75% { 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
        filter: brightness(1.1);
    }
}

/* Settings Toggle Button */
.settings-toggle {
    text-align: center;
    margin: 20px 0;
}

/* Activity Management */
.activity-management {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.add-activity-form {
    margin-bottom: 20px;
}

.add-activity-form .form-control {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

.activities-list h4 {
    color: white;
    margin-bottom: 15px;
}

.activity-item {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
    margin-bottom: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-info {
    color: white;
    flex-grow: 1;
}

.activity-info strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.activity-steps {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
}

/* Steps Modal */
.steps-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
}

.steps-modal-content .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

.steps-modal-content .modal-title {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.steps-modal-content .close {
    color: white;
    opacity: 0.8;
    font-size: 2em;
}

.steps-modal-content .close:hover {
    opacity: 1;
}

.steps-modal-content .modal-body {
    color: white;
}

.steps-modal-content .form-group label {
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.steps-modal-content .form-control {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

.steps-modal-content .form-control:focus {
    background: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.steps-modal-content .alert-info {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
    color: white;
}

.steps-modal-content .modal-footer {
    border-top: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

/* Daily Timer Management */
.daily-timer-management {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.add-daily-timer-form {
    margin-bottom: 20px;
}

.add-daily-timer-form .form-control {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

.daily-timers-list-settings h4 {
    color: white;
    margin-bottom: 15px;
}

/* Daily Timers Display */
.daily-timers-display,
.cooking-timers-display {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.daily-timer-item,
.cooking-timer-item {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
    margin-bottom: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.timer-info {
    flex-grow: 1;
}

.timer-info strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.timer-time {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
}

.timer-countdown {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.2em;
}

/* Cooking Timer Modal */
.cooking-timer-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
}

.cooking-timer-modal-content .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

.cooking-timer-modal-content .modal-title {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.cooking-timer-modal-content .close {
    color: white;
    opacity: 0.8;
    font-size: 2em;
}

.cooking-timer-modal-content .close:hover {
    opacity: 1;
}

.cooking-timer-modal-content .modal-body {
    color: white;
}

.cooking-timer-modal-content .form-group label {
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.cooking-timer-modal-content .form-control {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

.cooking-timer-modal-content .form-control:focus {
    background: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.cooking-timer-presets {
    margin-top: 15px;
    text-align: center;
}

.preset-btn {
    margin: 2px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.preset-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.cooking-timer-modal-content .modal-footer {
    border-top: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

/* Timer Animation */
.timer-animation {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pulse-ring {
    font-size: 3em;
    animation: pulse-ring 1s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dual-timer-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-tabs {
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .add-activity-form .row {
        margin: 0;
    }
    
    .add-activity-form .col-sm-5,
    .add-activity-form .col-sm-4,
    .add-activity-form .col-sm-3 {
        padding: 5px;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .activity-item .btn {
        align-self: flex-end;
    }
}