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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Home Page Styles */
.home-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('homepagehouse.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.home-content {
    text-align: center;
    padding: 20px;
}

.start-chores-btn {
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.start-chores-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.6);
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.start-chores-btn:active {
    transform: translateY(-2px) scale(1.02);
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
    }
    50% {
        box-shadow: 0 15px 40px rgba(79, 172, 254, 0.8);
    }
    100% {
        box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
    }
}

/* Main App Styles */
.main-app {
    min-height: 100vh;
    transition: opacity 0.3s ease;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.name-input-section {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.name-input-section label {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.name-input-section input {
    padding: 8px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.name-input-section input:focus {
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.name-input-section input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.family-selector {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.family-selector label {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.family-selector select {
    padding: 8px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.family-selector select:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.add-chore {
    padding: 30px;
    display: flex;
    gap: 15px;
    background: #f8f9fa;
}

#choreCategory, #chorePriority {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#choreCategory:focus, #chorePriority:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

#choreInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#choreInput:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

#addBtn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#addBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.chore-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.stat {
    padding: 20px;
    text-align: center;
    border-right: 1px solid #e9ecef;
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 5px;
}

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

.chore-filters {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.filter-btn.active {
    color: #4facfe;
    border-bottom-color: #4facfe;
    background: white;
}

.chore-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.chore-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.chore-item:hover {
    background: #f8f9fa;
}

.chore-item.completed {
    opacity: 0.6;
}

.chore-item.completed .chore-text {
    text-decoration: line-through;
    color: #6c757d;
}

.chore-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #4facfe;
}

.chore-text {
    flex: 1;
    font-size: 1rem;
    color: #2c3e50;
    word-break: break-word;
}

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

.edit-btn, .delete-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #ffc107;
    color: white;
}

.edit-btn:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

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

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state p {
    font-size: 1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .start-chores-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .home-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .start-chores-btn {
        padding: 12px 24px;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .home-content {
        padding: 10px;
    }
    
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .add-chore {
        flex-direction: column;
        padding: 20px;
    }
    
    .chore-stats {
        flex-direction: column;
    }
    
    .stat {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .stat:last-child {
        border-bottom: none;
    }
}

/* Quick Add Styles */
.quick-add {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.quick-add h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.quick-btn {
    padding: 12px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-btn:hover {
    border-color: #4facfe;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

/* Competition Section Styles */
.competition-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid #e9ecef;
}

.leaderboard, .weekly-challenge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard h3, .weekly-challenge h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
    text-align: center;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4facfe;
}

.leaderboard-item:first-child {
    border-left-color: #ffd700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.rank {
    font-weight: 700;
    color: #2c3e50;
    min-width: 40px;
}

.player-name {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
    margin-left: 10px;
}

.player-score {
    font-weight: 700;
    color: #4facfe;
    font-size: 1.1rem;
}

.challenge-content p {
    margin-bottom: 15px;
    color: #6c757d;
    text-align: center;
}

.challenge-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-weight: 600;
    color: #2c3e50;
    min-width: 50px;
    text-align: right;
}

/* Special Stats Styles */
.special-stats {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    justify-content: center;
}

.special-stat-group {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.special-stat {
    text-align: center;
    color: white;
}

.special-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.special-stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 500;
}

/* Chore Category Styles */
.chore-item.dishes {
    border-left: 4px solid #ff9a9e;
    background: linear-gradient(90deg, rgba(255, 154, 158, 0.1) 0%, transparent 100%);
}

.chore-item.dishes .chore-text::before {
    content: "🍽️ ";
    margin-right: 5px;
}

.chore-item.cleaning {
    border-left: 4px solid #4facfe;
}

.chore-item.cleaning .chore-text::before {
    content: "🧹 ";
    margin-right: 5px;
}

.chore-item.laundry {
    border-left: 4px solid #43e97b;
}

.chore-item.laundry .chore-text::before {
    content: "👕 ";
    margin-right: 5px;
}

.chore-item.cooking, .chore-item.kitchen {
    border-left: 4px solid #fa709a;
}

.chore-item.cooking .chore-text::before, .chore-item.kitchen .chore-text::before {
    content: "👨‍🍳 ";
    margin-right: 5px;
}

.chore-item.table {
    border-left: 4px solid #8b5cf6;
}

.chore-item.table .chore-text::before {
    content: "🪑 ";
    margin-right: 5px;
}

.chore-item.bathroom {
    border-left: 4px solid #06b6d4;
}

.chore-item.bathroom .chore-text::before {
    content: "🚿 ";
    margin-right: 5px;
}

.chore-item.bedroom {
    border-left: 4px solid #ec4899;
}

.chore-item.bedroom .chore-text::before {
    content: "🛏️ ";
    margin-right: 5px;
}

.chore-item.livingroom {
    border-left: 4px solid #f59e0b;
}

.chore-item.livingroom .chore-text::before {
    content: "🛋️ ";
    margin-right: 5px;
}

.chore-item.garden {
    border-left: 4px solid #10b981;
}

.chore-item.garden .chore-text::before {
    content: "🌱 ";
    margin-right: 5px;
}

.chore-item.garage {
    border-left: 4px solid #6b7280;
}

.chore-item.garage .chore-text::before {
    content: "🚗 ";
    margin-right: 5px;
}

.chore-item.office {
    border-left: 4px solid #3b82f6;
}

.chore-item.office .chore-text::before {
    content: "💼 ";
    margin-right: 5px;
}

/* Priority Styles */
.chore-item.high {
    border-top: 3px solid #dc2626;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.05) 0%, transparent 100%);
}

.chore-item.medium {
    border-top: 3px solid #f59e0b;
}

.chore-item.low {
    border-top: 3px solid #10b981;
}

/* Responsive design for special stats */
@media (max-width: 768px) {
    .competition-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .special-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .special-stat-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .add-chore {
        flex-direction: column;
        padding: 20px;
    }
    
    #choreCategory, #chorePriority {
        min-width: auto;
    }
    
    .quick-buttons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .name-input-section {
        flex-direction: column;
        gap: 8px;
    }
    
    .name-input-section input {
        min-width: auto;
        width: 100%;
        max-width: 250px;
    }
    
    .family-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .chore-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat:nth-child(odd) {
        border-right: 1px solid #e9ecef;
    }
    
    .stat:nth-child(even) {
        border-right: none;
    }
    
    .chore-item {
        padding: 15px 20px;
    }
    
    .chore-actions {
        flex-direction: column;
        gap: 5px;
    }
}

/* Rewards and Consequences Styles */
.rewards-section {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.rewards-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.rewards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.reward-card, .consequence-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reward-card h4, .consequence-card h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
    text-align: center;
}

.reward-list, .consequence-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reward-item, .consequence-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4facfe;
}

.consequence-item {
    border-left-color: #dc3545;
}

.reward-name, .consequence-name {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.reward-cost, .consequence-trigger {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 10px;
}

.redeem-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redeem-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(79, 172, 254, 0.3);
}

.redeem-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Gaming Timer Styles */
.gaming-timer-section {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid #e9ecef;
}

.gaming-timer-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: white;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gaming-timer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.timer-display {
    text-align: center;
}

.timer-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.timer-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4facfe 0%, #00f2fe 100%);
    opacity: 0.3;
    z-index: -1;
}

.timer-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.start-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.pause-btn {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.pause-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.stop-btn {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.stop-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

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

.gaming-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gaming-info p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.gaming-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gaming-stats span {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
}

.gaming-stats strong {
    color: #4facfe;
    font-weight: 700;
}

/* Gaming category styles */
.chore-item.gaming {
    border-left: 4px solid #9c27b0;
    background: linear-gradient(90deg, rgba(156, 39, 176, 0.1) 0%, transparent 100%);
}

.chore-item.gaming .chore-text::before {
    content: "🎮 ";
    margin-right: 5px;
}

/* Race category styles */
.chore-item.race {
    border-left: 4px solid #ff6b35;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1) 0%, transparent 100%);
}

.chore-item.race .chore-text::before {
    content: "🏁 ";
    margin-right: 5px;
}

/* Pool category styles */
.chore-item.pool {
    border-left: 4px solid #00bcd4;
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.1) 0%, transparent 100%);
}

.chore-item.pool .chore-text::before {
    content: "🏊 ";
    margin-right: 5px;
}

/* Violin category styles */
.chore-item.violin {
    border-left: 4px solid #8e24aa;
    background: linear-gradient(90deg, rgba(142, 36, 170, 0.1) 0%, transparent 100%);
}

.chore-item.violin .chore-text::before {
    content: "🎻 ";
    margin-right: 5px;
}

/* Piano category styles */
.chore-item.piano {
    border-left: 4px solid #795548;
    background: linear-gradient(90deg, rgba(121, 85, 72, 0.1) 0%, transparent 100%);
}

.chore-item.piano .chore-text::before {
    content: "🎹 ";
    margin-right: 5px;
}

/* Responsive design for rewards section */
@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .reward-item, .consequence-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .reward-cost, .consequence-trigger {
        margin: 0;
        align-self: flex-end;
    }
    
    .redeem-btn {
        align-self: flex-end;
    }
    
    .gaming-timer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timer-circle {
        width: 150px;
        height: 150px;
    }
    
    .timer-text {
        font-size: 2rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-btn {
        width: 100%;
        max-width: 200px;
    }
}
