@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

:root {
    --yellow: #faedcb;
    --blue: #c6def1;
    --green: #c9e4de;
    --purple: #dbcdf0;
    --orange: #f7d9c4;
    --pink: #f2c6de;
    --bright-blue: #00a2ff;
    --soft-grey: #F4F5F8;

    --primary-yellow: #E9C971;
    --primary-pink: #D98CA8;
    --primary-purple: #8E8FA8;
    --primary-teal: #88AEB6;
    --primary-green: #B4C37A;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --yellow-bright: #FFC83D;
    --purple-bright: #6F79FF;
    --green-bright: #7ED957;
    --color-info: #3DD6D0;
    --color-success: #7ED957;
    --color-success-soft: rgba(126, 217, 87, 0.15);
    --color-warning: #FFC83D;
    --color-error: #FF6B6B;
}

*, *::before, *::after {
    box-sizing: border-box;
}

*:not(dialog) {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

#root, #__next {
    isolation: isolate;
}

html, body {
    height: 100%;
    color: #161616;
}

.glass-card {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.glass-card-green     { background: rgba(201, 228, 222, 0.45) !important; }

.blob-yellow {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    z-index: 1;
    width: 600px;
    height: 540px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 1000 1000%22 xmlns=%22http:%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3ClinearGradient id=%22b%22 gradientTransform=%22rotate(-45 .5 .5)%22%3E%3Cstop offset=%220%25%22 stop-color=%22%23faedcb%22%2F%3E%3Cstop offset=%22100%25%22 stop-color=%22%23f8dac4%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath id=%22a%22%3E%3Cpath fill=%22currentColor%22 d=%22M885.5 659Q818 818 659 845t-324.5 6.5Q169 831 120 665.5T141.5 356Q212 212 356 166.5t249 39Q710 290 831.5 395t54 264Z%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cg clip-path=%22url(%23a)%22%3E%3Cpath fill=%22url(%23b)%22 d=%22M885.5 659Q818 818 659 845t-324.5 6.5Q169 831 120 665.5T141.5 356Q212 212 356 166.5t249 39Q710 290 831.5 395t54 264Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.blob-pink{
    position: absolute;
    z-index: 1;
    right: 0;
    top: 250px;
    width: 800px;
    height: 640px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 1000 1000%22 xmlns=%22http:%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3ClinearGradient id=%22c%22 gradientTransform=%22rotate(150 .5 .5)%22%3E%3Cstop offset=%220%25%22 stop-color=%22%23dbcdf0%22%2F%3E%3Cstop offset=%22100%25%22 stop-color=%22%23f2c6df%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath id=%22b%22%3E%3Cpath fill=%22currentColor%22 d=%22M808 600Q700 700 600 832t-209 9Q282 718 187 609t-7.5-225.5Q267 267 383.5 244t282-49q165.5-26 208 139.5T808 600Z%22%2F%3E%3C%2FclipPath%3E%3Cfilter id=%22a%22 x=%22-50vw%22 y=%22-50vh%22 width=%22100vw%22 height=%22100vh%22%3E%3CfeFlood flood-color=%22%23fff%22 result=%22neutral-gray%22%2F%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%222.5%22 numOctaves=%22100%22 stitchTiles=%22stitch%22 result=%22noise%22%2F%3E%3CfeColorMatrix in=%22noise%22 type=%22saturate%22 values=%220%22 result=%22destaturatedNoise%22%2F%3E%3CfeComponentTransfer in=%22desaturatedNoise%22 result=%22theNoise%22%3E%3CfeFuncA type=%22table%22 tableValues=%220 0 0.2 0%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeBlend in=%22SourceGraphic%22 in2=%22theNoise%22 mode=%22soft-light%22 result=%22noisy-image%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg filter=%22url(%23a)%22 clip-path=%22url(%23b)%22%3E%3Cpath fill=%22url(%23c)%22 d=%22M808 600Q700 700 600 832t-209 9Q282 718 187 609t-7.5-225.5Q267 267 383.5 244t282-49q165.5-26 208 139.5T808 600Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.blob-blue{
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 10px;
    width: 600px;
    height: 700px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 1000 1000%22 xmlns=%22http:%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3ClinearGradient id=%22c%22%3E%3Cstop offset=%220%25%22 stop-color=%22%23c9e4df%22%2F%3E%3Cstop offset=%22100%25%22 stop-color=%22%23c5dff2%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath id=%22b%22%3E%3Cpath fill=%22currentColor%22 d=%22M904 644q-61 144-209.5 130T404 836.5q-142 76.5-165.5-78t-34-262Q194 389 250 277T445 95.5q139-69.5 222.5 62t190.5 237Q965 500 904 644Z%22%2F%3E%3C%2FclipPath%3E%3Cfilter id=%22a%22 x=%22-50vw%22 y=%22-50vh%22 width=%22100vw%22 height=%22100vh%22%3E%3CfeFlood flood-color=%22%23fff%22 result=%22neutral-gray%22%2F%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%222.5%22 numOctaves=%22100%22 stitchTiles=%22stitch%22 result=%22noise%22%2F%3E%3CfeColorMatrix in=%22noise%22 type=%22saturate%22 values=%220%22 result=%22destaturatedNoise%22%2F%3E%3CfeComponentTransfer in=%22desaturatedNoise%22 result=%22theNoise%22%3E%3CfeFuncA type=%22table%22 tableValues=%220 0 0.25 0%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeBlend in=%22SourceGraphic%22 in2=%22theNoise%22 mode=%22soft-light%22 result=%22noisy-image%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg filter=%22url(%23a)%22 clip-path=%22url(%23b)%22%3E%3Cpath fill=%22url(%23c)%22 d=%22M904 644q-61 144-209.5 130T404 836.5q-142 76.5-165.5-78t-34-262Q194 389 250 277T445 95.5q139-69.5 222.5 62t190.5 237Q965 500 904 644Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.page{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

.table-button{
    height: 36px;
}

.table-link{
    text-decoration: underline;
    cursor: pointer;
}

.table-link:hover{
    font-weight: bold;
}

/* Table header search and filters */

.search {
    width: 360px;
    padding: var(--space-2) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text);
    font-family: var(--text-font), sans-serif;
    font-size: var(--text-xs);
    outline: none;
    transition: border-color 0.15s;
}

.search:focus {
    border-color: var(--teal-strong);
}

.filter-anchor {
    position: relative;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn:hover,
.filter-btn--active {
    background: var(--blue-soft);
    border-color: var(--blue);
    color: var(--text);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    color: #fff;
    font-family: var(--text-font), sans-serif;
    font-size: var(--text-2xs);
    font-weight: var(--font-weight-bold);
}

.filter-panel {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    z-index: 100;
    min-width: 200px;
    padding: var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    box-shadow: var(--shadow-md);
}

.filter-panel-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-panel-label {
    margin: 0 0 var(--space-1);
    color: var(--text-muted);
    font-family: var(--title-font), sans-serif;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.filter-panel-divider {
    height: 1px;
    margin: var(--space-3) 0;
    background: var(--border);
}

.filter-clear {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: none;
    border-radius: var(--radius-sm);
    background: var(--red-soft);
    color: var(--red);
    font-family: var(--text-font), sans-serif;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background 0.15s;
}

.filter-clear:hover {
    background: var(--red);
    color: #fff;
}

.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--text-font), sans-serif;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
}

.badge--active {
    background: var(--green-soft);
    color: var(--teal-strong);
}

.badge--inactive {
    background: var(--red-soft);
    color: var(--red);
}

/* Utilities */

.mr-05{
    margin-right: 0.5rem;
}

/* Display */

.flex-between{
    display: flex;
    justify-content: space-between;
}

.flex-column{
    display: flex;
    flex-direction: column;
}

.grid-2-columns{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Icon Styles */

.icon-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}

@media (max-width: 720px) {
    .search {
        width: 100%;
    }
}
