:root {
    --blue-500: #3B82F6;
    --cyan-500: #06B6D4;
    --green-500: #22C55E;
    --rose-500: #F43F5E;
    --pink-500: #EC4899;
    --purple-500: #A855F7;
    --violet-500: #8B5CF6;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #3B82F6, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 6s ease infinite;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 3rem;
    color: #E5E7EB;
    margin: 0;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "💰";
    position: absolute;
    right: -40px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.calendar-container {
    background: rgba(31, 41, 55, 0.9);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.calendar-container:hover {
    transform: translateY(-5px);
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.day-column h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #E5E7EB;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.day-column h3::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-500), var(--violet-500));
    margin: 8px auto 0;
    border-radius: 2px;
}

.squares-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.circle {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background-color: white;  /* Add white background */
}

.circle.spacer {
    background-color: transparent;
    border-color: transparent;
}

.circle.spacer:hover {
    transform: none;
    box-shadow: none;
}

.circle.future {
    opacity: 0.3;
    background-color: white;
}

/* Border colors for unchecked circles */
.circle.personal-brand { border-color: var(--blue-500); }
.circle.e-commerce { border-color: var(--cyan-500); }
.circle.exercise { border-color: var(--green-500); }
.circle.content { border-color: var(--rose-500); }
.circle.relationship { border-color: var(--pink-500); }
.circle.gaming { border-color: var(--purple-500); }

/* Background colors for checked circles */
.circle.personal-brand.checked { 
    background-color: var(--blue-500);
    border-color: var(--blue-500);
}
.circle.e-commerce.checked { 
    background-color: var(--cyan-500);
    border-color: var(--cyan-500);
}
.circle.exercise.checked { 
    background-color: var(--green-500);
    border-color: var(--green-500);
}
.circle.content.checked { 
    background-color: var(--rose-500);
    border-color: var(--rose-500);
}
.circle.relationship.checked { 
    background-color: var(--pink-500);
    border-color: var(--pink-500);
}
.circle.gaming.checked { 
    background-color: var(--purple-500);
    border-color: var(--purple-500);}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(75, 85, 99, 0.5);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-card h4 {
    font-size: 1.25rem;
    color: #E5E7EB;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(45deg, #3B82F6, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-section {
    background: rgba(31, 41, 55, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.info-section p {
    margin: 0.75rem 0;
    color: #D1D5DB;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p::before {
    content: "✦";
    color: var(--violet-500);
}

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

    h1 {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h2::after {
        right: -30px;
        font-size: 1.5rem;
    }

    .calendar-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .days-grid {
        gap: 0.5rem;
    }

    .day-column h3 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .circle {
        width: 1.2rem;
        height: 1.2rem;
    }

    .squares-group {
        gap: 0.15rem;
    }

    .legend {
        gap: 0.75rem;
        padding-top: 1rem;
    }

    .legend-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .stat-card p {
        font-size: 1.5rem;
    }

    .info-section {
        padding: 1rem;
    }

    .info-section p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    /* Special handling for TUE and FRI columns on mobile */
    .day-column[data-day="TUE"] .squares-group,
    .day-column[data-day="FRI"] .squares-group {
        margin: 0 0.5rem;
    }
    
    /* Toast adjustments for mobile */
    .toast {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        max-width: 85vw;
    }
}

/* Additional optimization for very small screens */
@media (max-width: 360px) {
    .circle {
        width: 0.7rem;
        height: 0.7rem;
    }

    .days-grid {
        gap: 0.2rem;
    }

    .legend-item {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
    }

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

    .day-column h3 {
        font-size: 0.65rem;
    }
}

/* Make sure the container doesn't overflow on mobile */
body {
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    overflow-x: hidden;
}

/* Special styling for TUE and FRI columns that have two tasks */
.day-column[data-day="TUE"],
.day-column[data-day="FRI"] {
    text-align: center;
}

.day-column[data-day="TUE"] .squares-group,
.day-column[data-day="FRI"] .squares-group {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
}

.day-column[data-day="TUE"] .squares-group:last-child,
.day-column[data-day="FRI"] .squares-group:last-child {
    margin-right: 0;
}

/* Add these toast styles at the end of your CSS file */
.toast {
    position: fixed;
    top: 50%;  /* Changed from bottom to top positioning */
    left: 50%;
    transform: translate(-50%, -50%);  /* Center both vertically and horizontally */
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}