:root {
    --bg-color: #064e3b;
    --card-bg: rgba(255, 255, 255, 0.08);
    --accent: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #a7f3d0;
    --danger: #f87171;
    --border: rgba(255, 255, 255, 0.15);
    --font-main: 'Poppins', sans-serif;
}

/* Remove the blue flash on tap */
* {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-sizing: border-box;
}

/* Force inheritance for all interactive elements */
button,
input,
textarea,
select {
    font-family: 'Poppins', sans-serif !important;
}

/* Fix the bottom navigation/overscroll color */
html {
    background-color: var(--bg-color);
    /* Matches your dark green */
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #065f46, #064e3b);
    background-color: var(--bg-color);
    overscroll-behavior-y: contain;
    color: var(--text-main);
    min-height: 100vh;
}

/* --- SNOW EFFECT --- */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    color: white;
    opacity: 0.6;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* --- UI COMPONENTS --- */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    height: auto !important;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.main-header {
    padding: 20px;
    display: grid;
    /* Adjusted grid to give more space to the right-side buttons */
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
}



/* Small profile image in header */
.profile-btn-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    display: block;
}

/* Clean & Elevated */
#profile-pic-large {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(251,191,36,0.14), rgba(255,255,255,0.02));
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#profile-pic-large img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
#profile-pic-large:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.55); }

/* header small avatar */
.profile-btn-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
@media (max-width:480px) { .profile-btn-img { width: 40px; height: 40px; } }

/* Adjusting the danger-btn for the modal to be a full-width text button */
#account-modal .danger-btn {
    border-radius: 14px;
    font-weight: 600;
    font-family: inherit;
}

#app-title {
    text-align: center;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.icon-btn span {
    font-size: 20px;
    display: block;
}

.icon-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

.icon-btn.hidden {
    display: none;
}

#back-btn {
    background: rgba(251, 191, 36, 0.1);
}

.danger-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 113, 113, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 14px;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.danger-btn:active {
    transform: scale(0.9);
    background: rgba(248, 113, 113, 0.25);
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.2);
}

.danger-btn span {
    font-size: 22px;
}

h1 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.card-grid {
    padding: 10px 20px;
}

.timeline-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-card:active {
    transform: scale(0.96);
}

.timeline-info h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 34px;
}

/* --- THE TIMELINE --- */
.timeline-wrapper {
    padding: 30px 20px;
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

#share-btn {
    margin: 10px 20px;
    width: calc(100% - 40px);
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.share-poster {
    width: 450px;
    height: 800px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    /* Darker premium gradient */
    background: linear-gradient(135deg, #0a4f47 0%, #043d31 50%, #011f18 100%);
    color: white;
    box-sizing: border-box;
    position: fixed;
    top: -9999px;
    left: -9999px;
    z-index: -1000;
    box-shadow: inset 0 0 60px rgba(251, 191, 36, 0.1);
}

/* Ensure icons are visible during canvas capture */
.share-poster .material-symbols-rounded {
    display: inline-block !important;
    font-family: 'Material Symbols Rounded' !important;
    text-align: center;
    vertical-align: middle;
    line-height: 1;
    font-style: normal;
    text-transform: none;
}

.poster-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    padding-bottom: 22px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, transparent 100%);
    margin: -30px -40px 25px -40px;
    padding: 25px 40px 22px 40px;
}

.poster-app-brand {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.poster-header h1 {
    font-size: 1.8rem;
    margin: 6px 0 12px 0;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.poster-header h1 span {
    font-size: 2rem;
    color: var(--accent);
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

.poster-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
    margin: 0 auto;
}

.poster-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    /* Reduced gap to accommodate 5 items comfortably */
    overflow: hidden;
}

.poster-footer {
    margin-top: 20px;
    text-align: center;
    border-top: 2px solid rgba(251, 191, 36, 0.3);
    padding-top: 18px;
    flex-shrink: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 44, 34, 0.5) 100%);
    margin: 20px -40px -30px -40px;
    padding: 18px 40px 25px 40px;
}

.poster-footer p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.poster-footer span {
    font-size: 0.8rem;
    opacity: 0.75;
    display: block;
    margin-top: 4px;
}

.poster-body .milestone {
    background: transparent;
    padding: 10px 15px 10px 60px;
    margin-bottom: 0px;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
}

.poster-body .milestone .milestone-icon {
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8)) drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.poster-body .milestone h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
}

.poster-body .milestone p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.milestone {
    position: relative;
    padding-left: 55px;
    margin-bottom: 40px;
    cursor: pointer;
}

.milestone-icon {
    position: absolute;
    left: 18px;
    top: 0;
    font-size: 24px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent));
}


.milestone strong {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
}

.milestone h4 {
    margin: 2px 0;
    font-size: 1.1rem;
}

.milestone p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 1. Christmas */
.milestone:has(.bg-christmas) .milestone-icon {
    color: #be123c;
    filter: drop-shadow(0 0 8px #be123c);
}

/* 5. Father's Day / US Independence */
.milestone:has(.bg-independence-us) .milestone-icon {
    color: #2563eb;
    filter: drop-shadow(0 0 8px #2563eb);
}

/* 6. Birthday */
.milestone:has(.bg-birthday) .milestone-icon {
    color: #f43f5e;
    filter: drop-shadow(0 0 8px #f43f5e);
}

/* 7. Wedding / Engagement */
.milestone:has(.bg-wedding) .milestone-icon {
    color: #ca8a04;
    filter: drop-shadow(0 0 8px #ca8a04);
}

/* 8. Friendship */
.milestone:has(.bg-friendship) .milestone-icon {
    color: #d97706;
    filter: drop-shadow(0 0 8px #d97706);
}

.offline-tag {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(248, 113, 113, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
}

.login-card.hidden {
    display: none !important;
}

.login-card {
    /* Use margin auto to keep it centered and calc for consistent spacing */
    margin: 15px auto 25px auto;
    width: calc(100% - 40px);
    /* Leaves 20px on each side */
    box-sizing: border-box;

    padding: 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    border: 1px dashed rgba(251, 191, 36, 0.4);
    border-radius: 24px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-content {
    width: 100%;
}

.login-card h3 {
    margin: 0;
    color: var(--accent);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 6px 0 10px 0;
    line-height: 1.5;
}

/* Button container inside the card to handle width better */
.login-card-actions {
    width: 100%;
}

/* --- SKELETON LOADING --- */
.skeleton-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.skeleton-info {
    width: 70%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.refresh-container {
    position: absolute;
    top: -50px;
    /* Hidden above */
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 0;
}

.refresh-container span {
    font-size: 28px;
    transition: transform 0.2s;
}

.refreshing span {
    animation: rotate 0.8s linear infinite;
}

/* Base Style - The "Pill" Look */
.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    /* Always White Text */
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Subtle border */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.special-badge .material-symbols-rounded {
    font-size: 12px;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto;
    height: auto;
    line-height: 1;
    flex-shrink: 0;
}

.poster-body .special-badge .material-symbols-rounded {
    font-size: 13px;
    color: #ffffff !important;
}

/* 1. Christmas (Red/Rose) - The Original */
.bg-christmas {
    background: linear-gradient(135deg, #be123c, #9f1239);
    box-shadow: 0 0 10px rgba(190, 18, 60, 0.4);
}

/* 2. New Year (Deep Purple/Violet) */
.bg-newyear {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

/* 3. Republic/Independence (Saffron/Orange) */
.bg-republic,
.bg-independence {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.4);
}

/* 4. Valentines/Mother's Day (Hot Pink/Magenta) */
.bg-valentine {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

/* 5. Women's Day (Rich Orchid) */
.bg-women {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* 6. Friendship/April Fool (Golden Amber) */
.bg-friendship {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

/* 7. US Independence/Father's Day (Royal Blue) */
.bg-independence-us {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* 8. Karnataka Rajyotsava (Vibrant Red/Yellow hint) */
.bg-karnataka {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* 9. Birthday (Bright Rose) */
.bg-birthday {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

/* 10. Wedding/Engagement (Premium Gold/Bronze) */
.bg-wedding {
    background: linear-gradient(135deg, #ca8a04, #854d0e);
    box-shadow: 0 0 10px rgba(202, 138, 4, 0.4);
}

/* Special Card Highlight */
.milestone.event-highlight {
    border-left: 4px solid var(--event-color, var(--accent));
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- SUPPORTER REWARDS --- */
.supporter-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #064e3b;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.supporter-badge span {
    font-size: 14px;
}

.celebration-icon {
    width: 70px;
    height: 70px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.celebration-icon span {
    font-size: 40px;
}

.supporter-glow {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    border-color: var(--accent) !important;
}

/* Confetti Effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f2d74e;
    position: absolute;
    z-index: 10001;
    top: -10px;
    border-radius: 50%;
    animation: confetti-fall 3s ease-in-out infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Specific Mobile Optimization for tiny screens */
@media (max-width: 360px) {
    .login-card {
        width: calc(100% - 20px);
        padding: 15px;
        margin-bottom: 15px;
    }

    .login-card h3 {
        font-size: 0.9rem;
    }
}

/* --- GOOGLE SIGN IN BUTTON --- */
.google-btn {
    background: white;
    color: #3c4043;
    padding: 11px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.google-btn img {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.google-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.google-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile button optimization */
@media (max-width: 480px) {
    .google-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .google-btn img {
        width: 16px;
        height: 16px;
    }
}

/* --- SETTINGS & ABOUT STYLING --- */
.settings-link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.settings-link-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.kofi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #00aff1;
    /* Ko-fi Blue */
    color: #fff;
    text-decoration: none;
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 175, 241, 0.2);
}

.kofi-btn:active {
    transform: scale(0.96);
    background: #0098d1;
}

#profile-pic-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #064e3b;
    font-size: 1.5rem;
    font-weight: 700;
    overflow: hidden;
}

#profile-pic-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.modal-open {
    overflow: hidden !important;
    touch-action: none;
    /* Prevents swiping in background on mobile */
}

.glass-card {
    background: #064e3b;
    border: 1px solid var(--border);
    border-radius: 28px;
    width: 100%;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    color: white;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.modal-actions-right {
    display: flex;
    gap: 10px;
    flex: 1;
}

.spacer {
    flex: 1;
}

/* --- PRIMARY (SAVE) BUTTON --- */
.primary-btn {
    background: var(--accent);
    color: #064e3b;
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
    flex: 2;
}

.primary-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* Date Input Styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

#date-group {
    position: relative;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(251, 191, 36, 0.05);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
    transition: all 0.3s ease;
}

/* Consolidating input styles */
input,
textarea,
input[type="date"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    color: white;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
}

input[type="date"] {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    color: white;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

#date-group::after {
    content: '\ebcc';
    font-family: 'Material Symbols Rounded';
    position: absolute;
    right: 15px;
    top: 42px;
    color: var(--accent);
    font-size: 20px;
    pointer-events: none;
}

/* --- SECONDARY (CANCEL) BUTTON --- */
.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.secondary-btn:active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.fab {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 22px;
    background: var(--accent);
    color: #064e3b;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-5deg);
    transition: 0.2s;
}

.hidden {
    display: none !important;
}

.pop-in {
    animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- EMPTY STATE --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 50vh;
    animation: popIn 0.5s ease-out;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.empty-state-icon span {
    font-size: 40px;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    color: var(--text-main);
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.create-first-btn,
.add-ms-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    width: auto;
    flex: none;
}

.ms-empty {
    padding-top: 40px;
    min-height: 40vh;
}

.ms-empty .empty-state-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}