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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
}

h1 i {
    color: #48bb78;
    margin-right: 10px;
}

.tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-top: 5px;
}

.date-display {
    background: rgba(255,255,255,0.15);
    padding: 10px 18px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
}

.date-display i {
    margin-right: 8px;
    color: #48bb78;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.stat-card i {
    font-size: 32px;
    color: #667eea;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* Add Habit Card */
.add-habit-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.add-habit-card h3 {
    margin-bottom: 15px;
    color: #1a1a2e;
    font-size: 1.2rem;
}

.add-habit-card h3 i {
    color: #48bb78;
    margin-right: 8px;
}

.add-habit-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-input {
    flex: 2;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-select {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn i {
    margin-right: 8px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #48bb78;
}

/* Habits Container */
.habits-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.habits-container h3 {
    margin-bottom: 20px;
    color: #1a1a2e;
    font-size: 1.2rem;
}

.habits-container h3 i {
    color: #667eea;
    margin-right: 8px;
}

/* Habit Card */
.habit-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
    border-left: 4px solid #667eea;
}

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

.habit-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
}

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

.delete-habit {
    background: none;
    border: none;
    color: #f56565;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.delete-habit:hover {
    background: #fee2e2;
}

/* Week Grid */
.week-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day-btn.completed {
    background: #48bb78;
    color: white;
}

.day-btn.completed i {
    color: white;
}

.day-btn span:first-child {
    font-size: 10px;
    font-weight: normal;
}

.day-btn span:last-child {
    font-size: 14px;
    font-weight: bold;
}

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

/* Footer Actions */
.footer-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #cbd5e0;
}

/* Responsive */
@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .add-habit-form {
        flex-direction: column;
    }
    
    .week-grid {
        justify-content: center;
    }
    
    .day-btn {
        width: 40px;
        height: 40px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
}
