:root {
    color-scheme: light;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color: #1c0f24;
    background-color: #fff1f6;
    --femope-pink: #fc027f;
    --femope-pink-dark: #d00269;
    --femope-purple: #ad25a7;
    --femope-purple-dark: #8d1f87;
    --femope-salmon: #fd878d;
    --femope-salmon-dark: #fc5d65;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(253, 135, 141, 0.35), transparent 55%),
        linear-gradient(135deg, var(--femope-purple-dark) 0%, var(--femope-pink) 65%);
    padding-bottom: 60px;
}

.app-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 40px 20px 80px;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 25px 45px rgba(141, 31, 135, 0.15),
        0 8px 25px rgba(252, 2, 127, 0.12);
    margin-bottom: 32px;
}

.card.max-400 {
    max-width: 420px;
    margin-inline: auto;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.login-logo img {
    width: 420px;
    max-width: 95%;
    filter: drop-shadow(0 12px 30px rgba(141, 31, 135, 0.25));
}

.card__header {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-direction: column;
}

h1, h2 {
    font-weight: 600;
    color: #0f172a;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--femope-salmon-dark);
}

.muted {
    color: rgba(28, 15, 36, 0.65);
    font-size: 0.95rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#indications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.indication-card {
    border: 1px solid rgba(173, 37, 167, 0.18);
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(173, 37, 167, 0.08);
}

.indication-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: var(--femope-purple-dark);
}

.indication-card__grid {
    margin-top: 12px;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #334155;
}

.form__field input {
    border: 1px solid rgba(252, 2, 127, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    background-color: rgba(255, 241, 246, 0.8);
}

.form__field input:focus {
    outline: none;
    border-color: var(--femope-pink);
    box-shadow: 0 0 0 3px rgba(252, 2, 127, 0.25);
    background-color: #fff;
}

.form__field select {
    border: 1px solid rgba(252, 2, 127, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 1rem;
    background-color: rgba(255, 241, 246, 0.8);
    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='%23fc027f' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    appearance: none;
}

.form__field select:focus {
    outline: none;
    border-color: var(--femope-pink);
    box-shadow: 0 0 0 3px rgba(252, 2, 127, 0.25);
    background-color: #fff;
}

.admin-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    width: 100%;
}

.admin-filters__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form__field input.is-loading {
    background-image: linear-gradient(120deg, rgba(252, 2, 127, 0.15) 0%, rgba(173, 37, 167, 0.15) 40%, rgba(252, 2, 127, 0.15) 80%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

.modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 2, 16, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal[hidden] {
    display: none;
}

.modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.modal__dialog {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(141, 31, 135, 0.25);
}

.modal__dialog h3 {
    margin-bottom: 12px;
    color: var(--femope-purple-dark);
    font-size: 1.4rem;
}

.modal__dialog p {
    color: rgba(28, 15, 36, 0.75);
    margin-bottom: 24px;
    line-height: 1.4;
}

@keyframes shimmer {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 200% 0%;
    }
}

.button {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button--primary {
    background: linear-gradient(135deg, var(--femope-purple-dark), var(--femope-pink));
    color: #fff;
    box-shadow: 0 10px 25px rgba(252, 2, 127, 0.35);
}

.button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(252, 2, 127, 0.35);
}

.button--ghost {
    background: rgba(253, 135, 141, 0.16);
    color: var(--femope-purple-dark);
}

.button--danger {
    background: rgba(252, 2, 127, 0.15);
    color: #fff;
    border: 1px solid rgba(252, 2, 127, 0.4);
}

.button--xs {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 999px;
}

.form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.alert {
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 500;
    margin-bottom: 24px;
}

.alert--success {
    background: linear-gradient(120deg, rgba(13, 148, 136, 0.85), rgba(34, 197, 94, 0.7));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.alert--error {
    background: rgba(253, 135, 141, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.dashboard__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    color: #fff;
}

.dashboard__header .eyebrow,
.dashboard__header h1,
.dashboard__header .muted {
    color: #fff;
}

.dashboard__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pill {
    background: rgba(252, 2, 127, 0.12);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding-block: 16px;
    border-bottom: 1px solid rgba(173, 37, 167, 0.15);
}

.grid__item {
    min-width: 0;
}

.grid:last-child {
    border-bottom: none;
}

.table {
    width: 100%;
    border: 1px solid rgba(173, 37, 167, 0.12);
    border-radius: 16px;
    overflow-x: auto;
    background: #fff;
}

.table__head,
.table__row {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 1fr 0.5fr 1fr 0.9fr 0.9fr;
    gap: 12px;
    padding: 16px;
}

.table__head {
    background: rgba(253, 135, 141, 0.08);
    font-weight: 600;
    color: rgba(28, 15, 36, 0.7);
}

.table__row span {
    color: #1c0f24;
    font-size: 0.95rem;
}

.table__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    display: inline;
}

.table--admin .table__head,
.table--admin .table__row {
    grid-template-columns: 1.2fr 1.2fr 0.9fr 0.8fr 0.8fr 1fr 1fr 0.8fr;
}

.table__row small {
    display: block;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .dashboard__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard__actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 24px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .form__actions {
        flex-direction: column;
    }

    .form__actions .button {
        width: 100%;
    }

    .dashboard__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dashboard__actions .button,
    .dashboard__actions .pill {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 30px;
    }

    .app-shell {
        padding: 32px 16px 60px;
    }

    .card {
        padding: 20px;
        border-radius: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .table {
        border-radius: 14px;
    }

    .table__head {
        display: none;
    }

    .table__row,
    .table__row--admin {
        grid-template-columns: 1fr;
        gap: 8px;
        border-bottom: 1px solid #e2e8f0;
    }

    .table__row span[data-label],
    .table__row--admin span[data-label] {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .table__row span[data-label]::before,
    .table__row--admin span[data-label]::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        color: #94a3b8;
    }
}

