@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Font init */
.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
}


/* CSS Variables */
:root {
    --color-primary: #4361ee;
    --color-primary-dark: #3651d4;
    --color-primary-light: #6b83f2;
    --color-play-pink: #ff8fc7;
    --color-play-peach: #ffbd8a;
    --color-play-yellow: #ffe18a;
    --color-play-mint: #bdeed6;
    --color-play-sky: #a9d8ff;
    --color-play-lilac: #d8b8ff;
    --color-success: #06d6a0;
    --color-error: #ef476f;
    --color-warning: #ffd166;
    --color-text: #1a1a2e;
    --color-text-light: #6c757d;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-family: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal-open {
    overflow: hidden;
}

.sidebar-open {
    overflow: hidden;
}

.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    width: 100%;
    margin: 0 auto;
    padding: 12px;
    position: absolute;
    top: 0;
    
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-brand img {
    width: 140px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav--left {
    justify-content: flex-start;
}

.site-nav--right {
    justify-content: flex-end;
}

.site-nav--mobile,
.site-nav__head,
.site-nav-backdrop,
.menu-toggle {
    display: none;
}

.nav-link {
    padding: 9px 14px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    color: #4f3f2f;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-white);
    background: #c57bbd;
    outline: none;
    transform: translateY(-1px);
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 300px 20px clamp(36px, 8vh, 72px);
}

/* Card */
.card {
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 253, 0.88)),
        radial-gradient(circle at 10% 12%, rgba(255, 143, 199, 0.24), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(169, 216, 255, 0.26), transparent 26%),
        radial-gradient(circle at 74% 88%, rgba(189, 238, 214, 0.26), transparent 28%);
    backdrop-filter: blur(9px) saturate(1.12);
    -webkit-backdrop-filter: blur(9px) saturate(1.12);
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 30px;
    box-shadow:
        0 18px 0 rgba(255, 143, 199, 0.18),
        0 26px 54px rgba(71, 62, 111, 0.22);
    width: 100%;
    max-width: 520px;
    padding: clamp(30px, 4vw, 44px);
    position: relative;
    overflow: hidden;
    transform-origin: 50% 70%;
    animation: toddlerCardFloat 6s ease-in-out infinite;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle, rgba(255, 143, 199, 0.34) 0 4px, transparent 5px) 18px 24px / 72px 72px,
        radial-gradient(circle, rgba(255, 225, 138, 0.45) 0 5px, transparent 6px) 52px 10px / 86px 86px,
        radial-gradient(circle, rgba(169, 216, 255, 0.38) 0 4px, transparent 5px) 10px 58px / 92px 92px,
        linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.46) 42% 46%, transparent 46% 100%);
    opacity: 0.76;
    animation: sprinkleDrift 11s linear infinite;
}

.card::after {
    content: '';
    position: absolute;
    right: -58px;
    bottom: -74px;
    z-index: -1;
    width: 190px;
    height: 190px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.82) 0 19%, transparent 20%),
        radial-gradient(circle at 62% 36%, rgba(255, 225, 138, 0.72) 0 23%, transparent 24%),
        radial-gradient(circle at 45% 64%, rgba(189, 238, 214, 0.68) 0 28%, transparent 29%),
        radial-gradient(circle at 70% 70%, rgba(216, 184, 255, 0.58) 0 22%, transparent 23%);
    filter: blur(0.2px);
    opacity: 0.9;
    animation: softBlobBounce 7s ease-in-out infinite;
}

.card > * {
    position: relative;
    z-index: 1;
}

.registration-card {
    max-width: 530px;
}

.about-card {
    max-width: 620px;
    padding: clamp(34px, 5vw, 52px);
}

.about-card__title {
    margin-bottom: 16px;
    color: #47355d;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 900;
}

.about-card__copy {
    margin-bottom: 0;
    color: #4f3f2f;
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.82;
    font-weight: 500;
}

.card-header {
    text-align: center;
    margin-bottom: 12px;
}

.card-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-header p {
    font-size: 15px;
    color: var(--color-text-light);
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.3px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--color-text-light);
    pointer-events: none;
    transition: var(--transition);
}

/* Inputs */
input, select {
    width: 100%;
    padding: 14px 14px 14px 46px;
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(255, 143, 199, 0.28);
    border-radius: 18px;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

input:focus, select:focus {
    border-color: var(--color-play-pink);
    box-shadow:
        0 0 0 4px rgba(255, 143, 199, 0.16),
        0 10px 22px rgba(71, 62, 111, 0.08);
    background: #ffffff;
}

input:focus ~ .input-icon {
    color: var(--color-play-pink);
}

input::placeholder {
    color: #adb5bd;
}

/* Select Arrow */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Validation States */
input.valid, select.valid {
    border-color: var(--color-success);
}

input.invalid, select.invalid {
    border-color: var(--color-error);
}

.error-message {
    font-size: 13px;
    color: var(--color-error);
    min-height: 18px;
    display: none;
}

.error-message.show,
.error-message.visible {
    display: block;
}

/* Kids Ages Container */
.kids-ages-container {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    padding: 16px;
    border: 2px dashed rgba(151, 174, 59, 0.36);
    animation: slideDown 0.3s ease;
}

.kids-ages-container label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    display: block;
}

.kids-ages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.kid-age-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kid-age-item label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.kid-age-item input {
    padding: 12px 14px;
    font-size: 14px;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--color-white);
    background: #97ae3b;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.btn:hover {
    background: #c57bbd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: inline-block;
}

.btn-loader {
    display: none;
    position: absolute;
}

.btn.loading .btn-text {
    visibility: hidden;
}

.btn.loading .btn-loader {
    display: block;
}

/* Spinner Animation */
.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

@keyframes toddlerCardFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    45% {
        transform: translateY(-8px) rotate(-0.35deg);
    }
    72% {
        transform: translateY(4px) rotate(0.25deg);
    }
}

@keyframes sprinkleDrift {
    0% {
        background-position: 18px 24px, 52px 10px, 10px 58px, 0 0;
    }
    100% {
        background-position: 90px 96px, 138px 96px, 102px 150px, 0 0;
    }
}

@keyframes softBlobBounce {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-10px, -12px, 0) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .card::before,
    .card::after,
    .fun-button:hover .icon {
        animation: none;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 360px;
    word-wrap: break-word;
}

.toast.success {
    background: var(--color-success);
}

.toast.error {
    background: var(--color-error);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 24px;
    color: #4f3f2f;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-link,
.footer-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f3f2f;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.footer-contact {
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
}

.social-link svg,
.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link:hover,
.social-link:focus-visible,
.footer-contact:hover,
.footer-contact:focus-visible {
    color: var(--color-white);
    background: #97ae3b;
    outline: none;
    transform: translateY(-1px);
}

.footer-copy {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55);
    color: #fff;
}

.confirm-modal[hidden] {
    display: none;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.confirm-modal__panel {
    position: relative;
    width: min(100%, 360px);
    padding: 30px 26px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.2s ease;
}

.confirm-modal__panel h2 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.2;
}

.confirm-modal__panel p {
    margin-bottom: 22px;
    color: var(--color-text-light);
    font-size: 15px;
}

.confirm-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.confirm-modal__close:hover,
.confirm-modal__close:focus-visible {
    color: var(--color-text);
    background: #f3f4f6;
    outline: none;
}

.confirm-modal__button {
    width: 100%;
    padding: 12px 20px;
    color: var(--color-white);
    background: #97ae3b;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
}

.confirm-modal__button:hover,
.confirm-modal__button:focus-visible {
    background: #c57bbd;
    outline: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        display: flex;
        justify-content: space-between;
    }

    .site-nav--left,
    .site-nav--right {
        display: none;
    }

    .site-brand img {
        width: 100px;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        color: #fff;
        background: rgb(71 157 210);
        border: 1px solid rgba(255, 255, 255, 0.92);
        border-radius: 50%;
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        transition: var(--transition);
    }

    .menu-toggle span {
        width: 19px;
        height: 2px;
        background: currentColor;
        border-radius: 999px;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        color: var(--color-white);
        background: #c57bbd;
        outline: none;
        transform: translateY(-1px);
    }

    .site-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        display: block;
        background: rgba(26, 26, 46, 0.46);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .site-nav--mobile {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        width: min(84vw, 320px);
        padding: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: -12px 0 36px rgba(26, 26, 46, 0.18);
        transform: translateX(100%);
        transition: transform 0.24s ease;
    }

    .site-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        color: #4f3f2f;
        font-size: 18px;
        font-weight: 800;
    }

    .site-nav__close {
        width: 36px;
        height: 36px;
        color: #fff;
        background: #ffa977;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 26px;
        line-height: 1;
    }

    .site-nav__close:hover,
    .site-nav__close:focus-visible {
        color: var(--color-text);
        outline: none;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        text-align: left;
        border-radius: var(--radius-sm);
        font-size: 15px;
        box-shadow: none;
        background: #f8f9fa;
        border-color: var(--color-border);
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .sidebar-open .site-nav--mobile {
        transform: translateX(0);
        display: block;
        height: 100vh;
    }

    .sidebar-open .site-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .container {
        padding: 16px;
        align-items: center;
        padding-top: 230px !important;
        padding-bottom: 34px;
    }

    .card {
        padding: 28px 22px;
        border-radius: 24px;
        box-shadow:
            0 12px 0 rgba(255, 143, 199, 0.16),
            0 18px 34px rgba(71, 62, 111, 0.18);
    }

    .about-card {
        padding: 32px 24px;
    }

    .card-header h1 {
        font-size: 24px;
    }

    .form {
        gap: 16px;
    }

    input, select {
        padding: 12px 12px 12px 40px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .input-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .btn {
        padding: 14px 28px;
    }

    .kids-ages-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 18px;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .card-header h1 {
        font-size: 22px;
    }
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
}

.btn-logout {
    background: var(--color-error);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Controls */
.controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.date-filter {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-filter input[type="date"] {
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
}

.btn-export {
    background: var(--color-success);
    color: var(--color-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-export:hover {
    opacity: 0.9;
}

/* Data Table */
.table-container {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th, td {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

td {
    color: var(--color-text-light);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #f8f9fa;
}

/* Table Actions */
.actions {
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background: var(--color-primary-light);
    color: var(--color-white);
}

.btn-edit:hover {
    background: var(--color-primary);
}

.btn-delete {
    background: #fee2e2;
    color: var(--color-error);
}

.btn-delete:hover {
    background: var(--color-error);
    color: var(--color-white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination button.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    animation: scaleIn 0.2s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 4px;
    line-height: 1;
}

.btn-close:hover {
    color: var(--color-text);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 24px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

.fun-button {
    position: relative;
    outline: none;
    cursor: pointer;

    padding: 10px 14px;
    border-radius: 50px;

    background: linear-gradient(135deg, #ff8fc7, #ffb84d);
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 8px 0 #e96b9f,
        0 14px 20px rgba(233, 107, 159, 0.3);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
        
    border: 1px solid #fff;
    text-decoration: none !important;
    text-align: center;
}

.fun-button .icon {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.fun-button::before,
.fun-button::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fun-button::before {
    content: "✨";
    top: -5px;
    left: 8px;
    font-size: 22px;
    transform: scale(0) rotate(-20deg);
}

.fun-button::after {
    content: "⭐";
    top: -8px;
    right: 8px;
    font-size: 22px;
    transform: scale(0) rotate(20deg);
}

.fun-button::before,
.fun-button::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    font-size: 0;
}

.fun-button::before {
    top: -7px;
    left: 14px;
    background: var(--color-play-yellow);
    box-shadow:
        -10px 12px 0 var(--color-play-sky),
        16px 16px 0 var(--color-play-mint);
}

.fun-button::after {
    top: -9px;
    right: 14px;
    background: #ffffff;
    box-shadow:
        -16px 18px 0 var(--color-play-lilac),
        11px 14px 0 var(--color-play-peach);
}

.fun-button:hover {
    transform: translateY(-5px) rotate(-2deg) scale(1.06);
    background: linear-gradient(135deg, #ff77b7, #ffd45f);

    box-shadow:
        0 12px 0 #e96b9f,
        0 18px 25px rgba(233, 107, 159, 0.35);
}

.fun-button:hover .icon {
    animation: wiggle 0.5s ease-in-out infinite alternate;
}

.fun-button:hover::before,
.fun-button:hover::after {
    opacity: 1;
    transform: scale(1) rotate(10deg);
}

.fun-button:active {
    transform: translateY(5px) scale(0.97);
    box-shadow:
        0 3px 0 #e96b9f,
        0 7px 12px rgba(233, 107, 159, 0.25);
}

@keyframes wiggle {
    0% {
        transform: rotate(-12deg) scale(1);
    }

    100% {
        transform: rotate(12deg) scale(1.2);
    }
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .date-filter {
        width: 100%;
        flex-wrap: wrap;
    }

    .date-filter input[type="date"] {
        flex: 1;
        min-width: 140px;
    }

    th, td {
        padding: 12px;
        font-size: 13px;
    }

    .actions {
        flex-direction: column;
    }

    .modal {
        padding: 24px;
    }
}
