/* XP Celebration Styles */

/* Progress Overview - Full Width */
.progress-overview-stats {
    padding: 20px 24px;
}

.overview-top-row {
    margin-bottom: 20px;
}

.overview-stats-grid-with-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .overview-stats-grid-with-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .overview-stats-grid-with-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .overview-top-row {
        margin-bottom: 16px;
    }
    
    .progress-overview-stats {
        padding: 16px 18px;
    }
    
    .stat-box {
        padding: 10px 14px;
    }
}

@media (max-width: 640px) {
    .overview-stats-grid-with-page {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .stat-box {
        padding: 8px 12px;
    }
    
    .stat-number {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .current-page-box .page-selector input,
    .target-page-box .page-selector input {
        width: 55px;
        font-size: 1.1rem;
        padding: 2px 6px;
    }
    
    .current-page-box .page-selector,
    .target-page-box .page-selector {
        font-size: 1.1rem;
    }
}

.stat-box {
    text-align: center;
    padding: 16px 18px;
    background: rgba(230, 0, 18, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(230, 0, 18, 0.1);
    transition: all 0.3s ease;
    /* Fixed height includes padding - total content area */
    min-height: 56px; /* Content area without padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.15);
    border-color: rgba(230, 0, 18, 0.2);
}

.current-page-box .page-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nintendo-red);
    /* Center content within fixed stat-box height */
    min-height: 48px;
    justify-content: center;
}

.current-page-box .page-selector input {
    width: 70px;
    padding: 4px 8px;
    border: 2px solid rgba(230, 0, 18, 0.2);
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    background: transparent;
    color: rgba(230, 0, 18, 0.7); /* Lighter color for input value */
}

.current-page-box .page-selector input:focus {
    outline: none;
    border-color: var(--nintendo-red);
}

.current-page-box .page-total {
    font-weight: 700;
    color: var(--nintendo-red-dark); /* Darker color for /50 */
}

/* Target Page Box Styles */
.target-page-box {
    background: rgba(0, 123, 255, 0.05);
    border-color: rgba(0, 123, 255, 0.1);
}

.target-page-box:hover {
    border-color: rgba(0, 123, 255, 0.2);
}

.target-page-box .page-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nintendo-blue);
    /* Center content within fixed stat-box height */
    min-height: 48px;
    justify-content: center;
}

.target-page-box .page-selector input {
    width: 70px;
    padding: 4px 8px;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    background: transparent;
    color: rgba(0, 123, 255, 0.7); /* Lighter color for input value */
    
    /* Mobile improvements */
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.target-page-box .page-selector input:focus {
    outline: none;
    border-color: var(--nintendo-blue);
    background: rgba(0, 123, 255, 0.05);
}

/* Hide number input spinners on mobile */
.target-page-box .page-selector input::-webkit-outer-spin-button,
.target-page-box .page-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.target-page-box .page-total {
    font-weight: 700;
    color: #0056b3; /* Darker blue color for /50 */
}

.stat-number {
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Force multi-line layout for consistent alignment */
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    min-height: 48px;
    justify-content: center;
}

/* Multi-line XP display formatting */
.stat-number .xp-line {
    display: block;
    line-height: 1.1;
}

.stat-number .xp-separator {
    font-size: 1.3rem;
    color: var(--nintendo-gray);
    margin: 0 4px 0 0;
    font-weight: 700;
}

.stat-number.earned {
    color: var(--nintendo-blue);
}

.stat-number.remaining {
    color: var(--nintendo-red);
}

.stat-number.total {
    color: var(--nintendo-green);
}

.stat-number.total-lucky {
    color: var(--pokemon-gold);
}

.stat-number.target {
    color: var(--nintendo-blue);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--nintendo-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Remaining Summary Accordion */
.remaining-summary {
    margin-top: 24px;
}

.clickable-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clickable-header:hover {
    background-color: rgba(230, 0, 18, 0.05);
}

.remaining-summary-toggle {
    background: none;
    border: none;
    color: var(--nintendo-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.remaining-summary-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.remaining-summary-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.remaining-summary-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.remaining-summary-content.expanded {
    max-height: 1000px;
    padding: 20px 24px;
}

.remaining-stats-simple {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(230, 0, 18, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(230, 0, 18, 0.1);
}

.simple-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.simple-stat-number {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--nintendo-red);
}

.simple-stat-label {
    font-size: 0.85rem;
    color: var(--nintendo-gray);
    font-weight: 600;
}

.tasks-section {
    border-top: 2px solid rgba(230, 0, 18, 0.1);
    padding-top: 24px;
}

.tasks-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nintendo-red);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.simple-stat-number {
    font-size: 1.1rem;
}

.task-summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    justify-content: center;
}

.task-card {
    flex: 0 0 auto;
    width: 160px;
    min-width: 160px;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border: 2px solid rgba(230, 0, 18, 0.1);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--nintendo-red);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.15);
    border-color: rgba(230, 0, 18, 0.3);
}

.task-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.task-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nintendo-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    order: 2;
    line-height: 1.2;
}

.task-card-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nintendo-red);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    order: 1;
}

/* All task cards use consistent Nintendo red accent */

/* Page Selector (legacy - for research pages) */
.page-selector {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-selector input {
    width: 60px;
    padding: 4px 8px;
    border: 2px solid rgba(230, 0, 18, 0.2);
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.page-selector input:focus {
    outline: none;
    border-color: var(--nintendo-red);
}

.page-total {
    font-weight: 600;
    color: var(--nintendo-dark); /* Darker color for /50 text */
}

/* Completion Progress */
.completion-progress {
    margin-top: 20px;
}

.completion-progress .celebration-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(230, 0, 18, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.completion-progress .celebration-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nintendo-red), #ff6b6b);
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s ease;
}

.completion-progress .progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--nintendo-gray);
}

/* Phase 1 Fix: Prevent global .progress-text (planner/dashboard) flex/absolute rules from misplacing percentage */
.completion-progress .progress-text {
    display: block;           /* ensure it's treated as normal block below bar */
    position: static;         /* remove any inherited absolute positioning */
    transform: none;          /* neutralize translate from ring contexts */
    margin-top: 4px;          /* small spacing below bar */
}

/* Lucky Egg Summary */
.lucky-egg-stats {
    padding: 20px 24px;
}

.lucky-egg-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--nintendo-red);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nintendo-gray);
}

.xp-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.xp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}

.xp-item.normal {
    border-left: 4px solid var(--nintendo-blue);
}

.xp-item.lucky {
    border-left: 4px solid var(--nintendo-red);
    background: rgba(230, 0, 18, 0.05);
}

.xp-label {
    font-weight: 600;
    color: var(--nintendo-gray);
}

.xp-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.xp-item.normal .xp-value {
    color: var(--nintendo-blue);
}

.xp-item.lucky .xp-value {
    color: var(--nintendo-red);
}

.xp-boost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.1), rgba(230, 0, 18, 0.05));
    border-radius: 8px;
    border: 2px solid rgba(230, 0, 18, 0.2);
}

.boost-label {
    font-weight: 600;
    color: var(--nintendo-red);
}

.boost-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--nintendo-red);
}

/* Event Summary Styles */
.event-summary-stats {
    padding: 16px 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.summary-item {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-item.lucky-egg {
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.1), rgba(230, 0, 18, 0.05));
    border-color: rgba(230, 0, 18, 0.2);
}

.summary-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nintendo-blue);
    margin-bottom: 4px;
}

.summary-item.lucky-egg .summary-value {
    color: var(--nintendo-red);
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nintendo-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 640px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Task Summary Styles */
.task-summary-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.task-summary-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.toggle-icon {
    font-size: 1rem;
    color: var(--nintendo-gray);
    transition: transform 0.3s ease;
}

.task-summary-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.task-summary-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.task-summary-content.expanded {
    max-height: none;
    padding: 20px;
}

.task-summary-list {
    display: grid;
    gap: 12px;
}

.task-category {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.task-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(230, 0, 18, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.task-category-name {
    font-weight: 600;
    color: var(--nintendo-dark-gray);
}

.task-category-total {
    font-weight: 700;
    color: var(--nintendo-red);
    background: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.task-category-details {
    padding: 8px 16px;
}

.task-detail {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.9rem;
}

.task-page {
    font-weight: 600;
    color: var(--nintendo-blue);
    min-width: 60px;
}

.task-description {
    color: var(--nintendo-gray);
}

.no-tasks {
    text-align: center;
    color: var(--nintendo-gray);
    font-style: italic;
    padding: 20px;
}

/* Page Actions */
.page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-actions .lucky-egg-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-actions .lucky-egg-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.page-actions .toggle-label {
    font-weight: 600;
    color: var(--nintendo-gray);
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    white-space: nowrap;
}

/* Research Pages - Card Title Group Styling */
.research-pages-header .card-title-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin-bottom: 0;
}

.research-pages-header .card-title-group h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--nintendo-gray);
    flex: 1;
}

.research-pages-header .page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

.research-pages-header .lucky-egg-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.research-pages-header .lucky-egg-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.research-pages-header .toggle-label {
    font-weight: 600;
    color: var(--nintendo-gray);
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    white-space: nowrap;
}
.research-pages {
    padding: 0 24px 20px;
    overflow-y: auto;
}

.active-pages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.completed-pages-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid rgba(230, 0, 18, 0.1);
}

.completed-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nintendo-gray);
    margin-bottom: 16px;
    text-align: center;
}

.completed-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.research-page.next-page {
    grid-column: 1 / -1; /* Full width for current page */
}

/* Base Research Page Styling */
.research-page {
    border: 2px solid rgba(230, 0, 18, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Hover effect for non-completed pages to indicate interactivity */
.research-page:hover {
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

/* Remove hover effect for completed pages */
.research-page.completed:hover {
    border-color: rgba(230, 0, 18, 0.1);
    box-shadow: none;
    transform: none;
}

.research-page.completed {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    opacity: 0.6;
}

.research-page.completed .page-content {
    opacity: 0.7;
    display: none; /* Hide content for completed pages by default */
}

.research-page.pending .page-content {
    display: block; /* Show content for pending pages by default */
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;

}
.completed-pages-grid .page-header{
    margin-bottom: 0px; 
}

.page-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Target Selection Hover Overlay */
.xp-info {
    position: relative;
}

.mark-target-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 123, 255, 0.95));
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Show overlay on hover for all non-completed pages */
.research-page:hover .mark-target-overlay {
    display: flex;
}

/* Hide overlay for completed pages specifically */
.research-page.completed .mark-target-overlay {
    display: none !important;
}

/* Don't show overlay on completed pages */
.research-page.completed:hover .mark-target-overlay {
    display: none !important;
}

/* Hide mark-target-overlay on mobile screens to prevent overlap */
@media (max-width: 768px) {
    .mark-target-overlay {
        display: none !important;
    }
    
    .research-page:hover .mark-target-overlay {
        display: none !important;
    }
}

/* Touch devices - show overlay on tap/touch (for tablets and larger touch screens) */
@media (hover: none) and (pointer: coarse) and (min-width: 769px) {
    .research-page .mark-target-overlay {
        display: flex;
        background: rgba(0, 123, 255, 0.1);
        border: 1px solid rgba(0, 123, 255, 0.3);
        color: var(--nintendo-blue);
        font-weight: 600;
    }
    
    .mark-target-overlay:active {
        background: rgba(0, 123, 255, 0.8);
        color: white;
    }
    
    /* Don't show on completed pages even on touch */
    .research-page.completed .mark-target-overlay {
        display: none !important;
    }
}

.mark-target-overlay:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 1), rgba(0, 100, 200, 1));
    transform: scale(1.02);
}



/* Non-target page opacity */
.research-page.non-target {
    opacity: 0.8;
}

/* Target Icon */
.target-icon {
    color: var(--nintendo-blue);
    font-weight: bold;
    margin-right: 4px;
    font-size: 1rem;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-info .complete-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.page-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.page-status.pending {
    background: rgba(230, 0, 18, 0.1);
    color: var(--nintendo-red);
    border: 2px solid rgba(230, 0, 18, 0.3);
}

.page-status.completed {
    background: #4CAF50;
    color: white;
}

.page-status.current {
    background: var(--nintendo-red);
    color: white;
}

.page-title {
    font-weight: 700;
    color: var(--nintendo-dark-gray);
}

.page-xp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-xp, .completion-xp {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.task-xp {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.completion-xp {
    background: rgba(230, 0, 18, 0.1);
    color: var(--nintendo-red);
}

/* Page Content */
.page-content {
    padding: 0 20px 16px;
    display: none;
}

.page-content.expanded {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.page-tasks {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    border-left: 3px solid var(--nintendo-blue);
    transition: all 0.3s ease;
}

.task-item.completed {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.task-item.completed .task-description {
    text-decoration: line-through;
    color: #6c757d;
}

.task-item.completed .task-reward {
    text-decoration: line-through;
    color: #6c757d;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.task-checkbox:hover {
    border-color: var(--nintendo-blue);
    background: rgba(0, 123, 255, 0.1);
}

.task-checkbox.checked {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.task-checkbox.checked::after {
    content: '✓';
    font-size: 12px;
    font-weight: bold;
}

.task-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.task-description {
    font-weight: 500;
    color: var(--nintendo-dark-gray);
    transition: all 0.3s ease;
    flex-grow: 1;
}

.task-reward {
    font-weight: 600;
    color: var(--nintendo-blue);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.page-completion {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.1), rgba(230, 0, 18, 0.05));
    border-radius: 8px;
    border: 2px solid rgba(230, 0, 18, 0.2);
}

.completion-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.completion-label {
    font-weight: 600;
    color: var(--nintendo-red);
}

.completion-reward {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--nintendo-red);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--nintendo-gray);
}

.loading-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Event Badge */
.event-badge.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
