.info-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 40px;
    animation: slideDown 0.6s ease-out;
}

.banner-icon {
    font-size: 1.5rem;
}

.info-banner p {
    margin: 0;
    line-height: 1.6;
}

/* Create Habit Section */
.create-habit-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.create-habit-section h2 {
    margin-bottom: 30px;
    color: #1f2937;
}

.habit-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.difficulty-selector {
    display: flex;
    gap: 20px;
}

.difficulty-selector input[type="radio"] {
    margin-right: 5px;
}

.difficulty-selector label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.form-error {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Active Habits Section */
.active-habits-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.active-habits-section h2 {
    margin-bottom: 30px;
    color: #1f2937;
}

.habits-list {
    display: grid;
    gap: 20px;
}

.habit-item {
    padding: 20px;
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.6s ease-out backwards;
}

.habit-item-info h3 {
    color: #1f2937;
    margin-bottom: 5px;
}

.habit-item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 8px;
}

.habit-item-actions {
    display: flex;
    gap: 10px;
}

.habit-item-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-mark-done {
    background: #10b981;
    color: white;
}

.btn-mark-done:hover {
    background: #059669;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1.1rem;
}

/* Tracking Section */
.tracking-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.tracking-section h2 {
    margin-bottom: 30px;
    color: #1f2937;
}

.tracking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tracking-card {
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    text-align: center;
    animation: slideUp 0.6s ease-out backwards;
}

.tracking-card h3 {
    color: #1f2937;
    margin-bottom: 15px;
}

.tracking-progress {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

/* Leaderboard */
.leaderboard-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.leaderboard-section h2 {
    margin-bottom: 30px;
    color: #1f2937;
}

.leaderboard {
    overflow-x: auto;
}

.leaderboard-header,
.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px;
    gap: 20px;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.leaderboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.leaderboard-row {
    align-items: center;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: #f9fafb;
}

/* Rules Section */
.rules-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.rules-section h2 {
    margin-bottom: 40px;
    color: #1f2937;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.rule-card {
    padding: 25px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #ef4444;
    transition: var(--transition);
    animation: scaleIn 0.6s ease-out backwards;
}

.rule-card:nth-child(1) {
    animation-delay: 0s;
}

.rule-card:nth-child(2) {
    animation-delay: 0.1s;
}

.rule-card:nth-child(3) {
    animation-delay: 0.2s;
}

.rule-card:nth-child(4) {
    animation-delay: 0.3s;
}

.rule-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.rule-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.rule-card h4 {
    color: #ef4444;
    margin-bottom: 10px;
}

.rule-card p {
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .create-habit-section,
    .active-habits-section,
    .tracking-section,
    .leaderboard-section,
    .rules-section {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 60px 1fr 80px 80px;
        gap: 10px;
        padding: 10px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .habit-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .habit-item-actions {
        width: 100%;
    }

    .habit-item-actions button {
        flex: 1;
    }
}