@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #60A5FA;
    --accent: #F97316;
    --accent-dark: #EA580C;
    --secondary: #10B981;
    --warning: #EF4444;
    --background: #F4F5FB;
    --card-bg: #FFFFFF;
    --white: #FFFFFF;
    --text: #0F172A;
    --muted-text: #64748B;
    --border: #E2E8F0;
    --shadow: rgba(15, 23, 42, 0.06);

    /* Legacy tokens kept for existing classes */
    --cobalt-blue: var(--primary);
    --cobalt-blue-dark: var(--primary-dark);
    --cobalt-blue-light: var(--primary-light);
    --light-gray: #F1F5F9;
    --medium-gray: #CBD5E1;
    --dark-gray: var(--muted-text);
    --text-dark: var(--text);
    --success: var(--secondary);
    --danger: var(--warning);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cobalt-blue) 0%, var(--cobalt-blue-light) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 24px var(--shadow);
}

.login-card h1 {
    color: var(--cobalt-blue);
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-subtitle {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 98, 188, 0.15);
}

.error-message {
    background-color: #FFEBEE;
    color: var(--danger);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-info {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--dark-gray);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.btn-outline {
    background-color: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--border);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
}

.btn-danger {
    background-color: var(--warning);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: #DC2626;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
}

.btn-block {
    width: 100%;
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
    padding: 8px 16px;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Dashboard Layout */
#dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background);
}

/* App Header (replaces sidebar) */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.app-header-date {
    font-size: 0.875rem;
    opacity: 0.9;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Sidebar Styles (legacy - for chores page until redesigned) */
#sidebar {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
    color: var(--white);
    overflow-y: auto;
}

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

.sidebar-header h2 {
    font-size: 20px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    border-radius: 12px;
}

.sidebar-widget h3 {
    color: var(--white);
    font-size: 16px;
}

/* Main Content Area */
#main-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Hero Strip */
.hero-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 2.5rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 24px 24px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.95;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Widget Styles */
.widget {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.widget:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.widget h3 {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.widget-header h3 {
    margin-bottom: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-icon:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.sidebar-widget .btn-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.sidebar-widget .btn-icon:hover {
    background: rgba(255, 255, 255, 0.24);
}

.last-updated {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 12px;
    text-align: right;
}


.widget h4 {
    color: var(--text-dark);
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Weather Widget (Compact) */
#weather-widget {
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    color: var(--white);
    border: none;
}

#weather-widget h3 {
    color: var(--white);
}

#weather-widget .widget-header h3 {
    color: var(--white);
}

.weather-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#weather-location-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 500;
}

#weather-location-select option {
    color: var(--text);
}

.weather-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.weather-info {
    flex: 1;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.weather-condition {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

#weather-widget .last-updated {
    color: rgba(255, 255, 255, 0.7);
}

#weather-widget .btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

#weather-widget .btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Whiteboard Widget (Sticky Note Style) */
#whiteboard-widget {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#whiteboard-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 60px;
    height: 25px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    filter: blur(3px);
}

#whiteboard-widget h3 {
    color: #92400E;
}

#whiteboard-widget .widget-header h3 {
    color: #92400E;
}

.whiteboard-content-display {
    min-height: 120px;
    padding: 12px;
    background: transparent;
    border-radius: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #78350F;
    font-family: 'Segoe Print', 'Comic Sans MS', cursive;
}

#whiteboard-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#whiteboard-textarea {
    width: 100%;
    border: 1px solid rgba(146, 64, 14, 0.2);
    background: rgba(255, 255, 255, 0.4);
    color: #78350F;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Segoe Print', 'Comic Sans MS', cursive;
    font-size: 0.9375rem;
    resize: vertical;
    margin-bottom: 12px;
    min-height: 150px;
    flex: 1;
}

#whiteboard-textarea::placeholder {
    color: rgba(120, 53, 15, 0.5);
}

#whiteboard-widget .btn-icon {
    background: rgba(146, 64, 14, 0.1);
    border-color: rgba(146, 64, 14, 0.2);
    color: #92400E;
}

#whiteboard-widget .btn-icon:hover {
    background: rgba(146, 64, 14, 0.2);
}

/* Calendar Widget */
#calendar-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-title-with-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-count {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    line-height: 1;
}

.calendar-event {
    padding: 12px;
    border-left: 4px solid var(--primary);
    background: var(--light-gray);
    margin-bottom: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.calendar-event:hover {
    background: #E0E7FF;
    transform: translateX(4px);
}

.calendar-event-content {
    flex: 1;
}

.calendar-event-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.calendar-event-time {
    font-size: 0.75rem;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.calendar-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted-text);
}

.calendar-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.3;
}

.btn-delete-event {
    background-color: var(--warning);
    color: var(--white);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.btn-delete-event:hover {
    background-color: #c0392b;
}

/* Chore Widget */
.chore-points {
    background: var(--cobalt-blue);
    color: var(--white);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.chore-item,
.reward-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--light-gray);
    margin-bottom: 8px;
    border-radius: 6px;
}

.chore-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.chore-name {
    flex: 1;
}

.chore-points-badge,
.reward-cost-badge {
    background: var(--cobalt-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.btn-complete,
.btn-redeem {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-complete:hover,
.btn-redeem:hover {
    background-color: #4b8f59;
}

.btn-complete:disabled,
.btn-redeem:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
}


/* Grocery Widget */
.grocery-add {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

#grocery-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#grocery-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 98, 188, 0.1);
}

#add-grocery-btn {
    flex-shrink: 0;
}

.grocery-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--light-gray);
    margin-bottom: 8px;
    border-radius: 6px;
}

.grocery-item.checked {
    opacity: 0.6;
}

.grocery-item.checked .grocery-name {
    text-decoration: line-through;
}

.grocery-checkbox {
    margin-right: 12px;
    cursor: pointer;
}

.grocery-name {
    flex: 1;
}

.btn-delete {
    background-color: var(--warning);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Tasks Widget (Honey-Do List) */
.tasks-add {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

#tasks-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tasks-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 98, 188, 0.1);
}

#add-task-btn {
    flex-shrink: 0;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--light-gray);
    margin-bottom: 8px;
    border-radius: 6px;
}

.task-item.checked {
    opacity: 0.6;
}

.task-item.checked .task-name {
    text-decoration: line-through;
}

.task-checkbox {
    margin-right: 12px;
    cursor: pointer;
}

.task-name {
    flex: 1;
}

.chore-checkbox, .task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    margin-right: 12px;
}

.chore-checkbox:checked, .task-checkbox:checked {
    background-color: var(--success);
    border-color: var(--success);
}

.chore-checkbox:checked::after, .task-checkbox:checked::after {
    content: '✔';
    color: var(--white);
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Out of Stock Widget */
#outofstock-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-outofstock {
    background-color: var(--cobalt-blue);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.outofstock-icon {
    font-size: 18px;
}

.outofstock-label {
    font-weight: 600;
}

.btn-outofstock:hover {
    background-color: var(--cobalt-blue-dark);
}

.btn-outofstock:disabled {
    background-color: var(--success);
    cursor: not-allowed;
}



/* Milestone Widget */
.milestone-item {
    padding: 16px;
    border-left: 4px solid var(--cobalt-blue);
    background: var(--light-gray);
    margin-bottom: 12px;
    border-radius: 6px;
}

.milestone-date {
    font-weight: 600;
    color: var(--cobalt-blue);
    margin-bottom: 4px;
}

.milestone-description {
    font-size: 14px;
    color: var(--text-dark);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: var(--dark-gray);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal h2 {
    color: var(--cobalt-blue);
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-row {
        grid-template-columns: 1fr;
    }

    .hero-strip {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 1rem;
    }

    .app-header-logo {
        font-size: 1.25rem;
    }

    .app-header-date {
        display: none;
    }

    #main-content {
        padding: 1rem;
    }

    .widget {
        padding: 1.25rem;
    }

    .hero-strip {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1.5rem 1rem;
    }

    .hero-photo {
        width: 80px;
        height: 80px;
    }

    .hero-content h1 {
        font-size: 1.25rem;
    }

    .hero-content p {
        font-size: 0.875rem;
    }
}

/* Chores Page Specific Styles */
.chores-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Scorecard Widget */
.scorecard-widget {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 14px;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
    border: none;
}

.scorecard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.scorecard-header h2 {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
}

.scorecard-header .btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.scorecard-header .btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

.scorecard-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.scorecard-points {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 6px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.points-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.points-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    font-weight: 500;
}

.scorecard-progress {
    text-align: center;
}

.scorecard-progress p {
    margin-bottom: 0.75rem;
    opacity: 0.95;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--white);
    border-radius: 999px;
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Chore List Items (Enhanced) */
.chore-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--light-gray);
    margin-bottom: 0.75rem;
    border-radius: 10px;
    transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.chore-item:hover {
    background: #E0E7FF;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.chore-item.completed {
    opacity: 0.6;
    background: var(--light-gray);
}

.chore-item.completed:hover {
    background: var(--light-gray);
    transform: none;
}

.chore-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.chore-name {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}

.chore-points-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* Rewards Widget */
.rewards-widget {
    margin-top: 1.5rem;
}

.rewards-widget h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.reward-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reward-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    border-color: var(--primary);
}

.reward-card.affordable {
    border-color: var(--secondary);
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 0%, var(--white) 100%);
}

.reward-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.reward-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.reward-cost {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-text);
    margin-bottom: 0.75rem;
}

.reward-cost-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.reward-progress-container {
    margin-bottom: 1rem;
}

.reward-progress-label {
    font-size: 0.75rem;
    color: var(--muted-text);
    margin-bottom: 0.375rem;
    text-align: center;
}

.reward-progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 999px;
    overflow: hidden;
}

.reward-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, #34D399 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.btn-redeem {
    width: 100%;
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-redeem:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.btn-redeem:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Chores Page Responsive */
@media (max-width: 1024px) {
    .chores-page-grid {
        grid-template-columns: 1fr;
    }

    .rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .scorecard-circle {
        margin: 1.5rem 0;
    }

    .scorecard-points {
        width: 140px;
        height: 140px;
    }

    .points-number {
        font-size: 3rem;
    }

    .rewards-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading and Empty States */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--dark-gray);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
    font-size: 14px;
}
