/* FuturIntrosWebApp/Front/MainPage/Modules/Organization/Reminder/Reminder.css */

.OrganisationReminderContentArea {
    width: 100%;
    color: var(--text-color);
}

.OrganisationReminderContentAreaInner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 40px;
    box-sizing: border-box;
}

.ReminderHeroCard,
.ReminderPanel {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)), var(--bg-color);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.ReminderHeroCard {
    padding: 24px;
}

.ReminderHeroCopy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ReminderHeroCopy h1,
.ReminderPanelHeader h2,
.ReminderRecurringCard h3,
.ReminderCard h3 {
    margin: 0;
}

.ReminderHeroCopy p,
.ReminderPanelHeader p,
.ReminderRecurringCardHeader p,
.ReminderCardHeader p,
.ReminderEmptyState p,
.ReminderDescription,
.ReminderMeta,
.ReminderMutedText {
    margin: 0;
}

.ReminderEyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--unselected-text-color);
}

.ReminderWorkspace {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 380px);
    gap: 16px;
    align-items: start;
}

.ReminderPrimaryColumn,
.ReminderSecondaryColumn {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ReminderPanel {
    padding: 18px;
}

.ReminderPanelHeader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.ReminderPanelDescription {
    color: var(--unselected-text-color);
}

.ReminderForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ReminderFormGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

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

.ReminderField {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ReminderField span {
    font-size: 13px;
    color: var(--unselected-text-color);
}

.ReminderField input,
.ReminderField textarea,
.ReminderField select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--input-bg-color);
    color: var(--text-color);
    padding: 11px 12px;
    font: inherit;
}

.ReminderField textarea {
    resize: vertical;
    min-height: 96px;
}

.ReminderDateFieldControl {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--input-bg-color);
    overflow: hidden;
}

.ReminderDateFieldControl:focus-within {
    border-color: rgba(22, 163, 74, 0.5);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.ReminderDatePickerTrigger {
    position: relative;
    flex: 0 0 44px;
    min-width: 44px;
    border: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.ReminderDatePickerTrigger::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border-radius: 4px;
    border: 2px solid rgba(148, 163, 184, 0.72);
    box-sizing: border-box;
    pointer-events: none;
}

.ReminderDatePickerTrigger::before {
    content: '';
    position: absolute;
    top: calc(50% - 7px);
    right: 16px;
    width: 10px;
    height: 2px;
    background: rgba(148, 163, 184, 0.72);
    box-shadow: 0 5px 0 rgba(148, 163, 184, 0.72);
    pointer-events: none;
    z-index: 1;
}

.ReminderDateFieldControl > #ReminderRecurringAnchorDate {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-right: 12px;
}

.ReminderDateFieldControl > #ReminderRecurringAnchorDate:focus,
.ReminderDatePickerTrigger:focus-visible {
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.ReminderDatePickerNativeProxy {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.ReminderAnchorDateModalOverlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(10px);
}

.ReminderAnchorDateModal {
    width: min(360px, 100%);
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        var(--bg-color);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.ReminderAnchorDateModalHeader {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.ReminderAnchorDateModalHeader strong {
    text-align: center;
    text-transform: capitalize;
}

.ReminderAnchorDateWeekdays,
.ReminderAnchorDateGrid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.ReminderAnchorDateWeekdays {
    margin-bottom: 8px;
    color: var(--unselected-text-color);
    font-size: 12px;
    text-align: center;
}

.ReminderAnchorDateDay {
    min-height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    font: inherit;
    cursor: pointer;
}

.ReminderAnchorDateDay.is-outside {
    opacity: 0.45;
}

.ReminderAnchorDateDay.is-today {
    border-color: rgba(22, 163, 74, 0.34);
}

.ReminderAnchorDateDay.is-selected {
    border-color: transparent;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}

.ReminderField input:focus,
.ReminderField textarea:focus,
.ReminderField select:focus {
    border-color: rgba(22, 163, 74, 0.5);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
    outline: none;
}

.ReminderCustomSelectField {
    position: relative;
}

.ReminderCustomSelect {
    position: relative;
}

.ReminderCustomSelectTrigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--input-bg-color);
    color: var(--text-color);
    padding: 11px 12px;
    font: inherit;
    cursor: pointer;
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease,
        background-color 120ms ease;
}

.ReminderCustomSelectTrigger:focus-visible,
.ReminderCustomSelectTrigger.is-open {
    border-color: rgba(22, 163, 74, 0.5);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
    outline: none;
}

.ReminderCustomSelectChevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.7;
    transition: transform 120ms ease;
}

.ReminderCustomSelectTrigger.is-open .ReminderCustomSelectChevron {
    transform: rotate(-135deg) translateX(-2px);
}

.ReminderCustomSelectMenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)), var(--bg-color);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
    max-height: 240px;
    overflow-y: auto;
}

.ReminderCustomSelectMenu.is-open {
    display: flex;
}

.ReminderCustomSelectOption {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
    transition:
        background-color 120ms ease,
        color 120ms ease,
        transform 120ms ease;
}

.ReminderCustomSelectOption:hover,
.ReminderCustomSelectOption:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.ReminderCustomSelectOption.is-selected {
    background: rgba(22, 163, 74, 0.14);
    color: #22c55e;
}

.ReminderCheckboxField {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.ReminderCheckboxField--card {
}

.ReminderCheckboxField input {
    margin-top: 2px;
    flex: 0 0 auto;
}

.ReminderCheckboxField span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ReminderPanelSubsection {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ReminderActionRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ReminderPrimaryButton,
.ReminderGhostButton,
.ReminderDangerButton,
.ReminderNotice button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
    transition:
        transform 120ms ease,
        border-color 120ms ease,
        background-color 120ms ease,
        box-shadow 120ms ease;
}

.ReminderPrimaryButton:hover,
.ReminderGhostButton:hover,
.ReminderDangerButton:hover,
.ReminderNotice button:hover {
    transform: translateY(-1px);
}

.ReminderPrimaryButton:disabled,
.ReminderGhostButton:disabled,
.ReminderDangerButton:disabled,
.ReminderNotice button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ReminderPrimaryButton {
    border-color: transparent;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    box-shadow: 0 12px 20px rgba(22, 163, 74, 0.18);
}

.ReminderGhostButton,
.ReminderNotice button {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
}

.ReminderDangerButton {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.ReminderNotice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.ReminderNotice.is-success {
    background: rgba(34, 197, 94, 0.12);
}

.ReminderNotice.is-error {
    background: rgba(239, 68, 68, 0.12);
}

.ReminderNotice.is-info {
    background: rgba(14, 165, 233, 0.1);
}

.ReminderNotice.is-warning {
    background: rgba(245, 158, 11, 0.12);
}

.ReminderCards,
.ReminderRecurringList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ReminderRecurringCard,
.ReminderCard {
    position: relative;
    padding: 15px 16px 15px 18px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--reminder-event-color, #16a34a) 28%, rgba(148, 163, 184, 0.18));
    background: color-mix(in srgb, var(--reminder-event-color, #16a34a) 9%, rgba(255, 255, 255, 0.03));
    overflow: hidden;
}

.ReminderCard.is-done {
    opacity: 0.72;
    background: color-mix(in srgb, var(--reminder-event-color, #16a34a) 5%, rgba(255, 255, 255, 0.03));
}

.ReminderRecurringCard.is-done {
    opacity: 0.72;
    background: color-mix(in srgb, var(--reminder-event-color, #16a34a) 5%, rgba(255, 255, 255, 0.03));
}

.ReminderRecurringCard::before,
.ReminderCard::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--reminder-event-color, #16a34a);
}

.ReminderRecurringCardHeader,
.ReminderCardHeader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ReminderRecurringCardHeader > div:first-child,
.ReminderCardHeader > div:first-child {
    min-width: 0;
}

.ReminderTagRow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ReminderTag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 600;
}

.ReminderMeta,
.ReminderMutedText {
    margin-top: 8px;
    color: var(--unselected-text-color);
}

.ReminderDescription {
    margin-top: 10px;
    white-space: pre-wrap;
}

.ReminderCountdown {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    width: 60px;
    height: 32px;
    border-radius: 15px;
}

.ReminderCountdown.is-done {
    background: rgba(22, 163, 74, 0.14);
    color: #15803d;
}

.ReminderDoneBadge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.18);
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
}

.ReminderDoneButton.is-done {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.18);
    color: #15803d;
}

.ReminderInlineHint {
    flex: 1 1 220px;
    min-width: 0;
    color: var(--unselected-text-color);
    font-size: 13px;
}

.ReminderEmptyState {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    color: var(--unselected-text-color);
}

@media (max-width: 980px) {
    .ReminderWorkspace {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .OrganisationReminderContentAreaInner {
        padding: 14px 12px 24px;
        gap: 12px;
    }

    .ReminderHeroCard,
    .ReminderPanel {
        padding: 14px;
        border-radius: 16px;
    }

    .ReminderWorkspace,
    .ReminderPrimaryColumn,
    .ReminderSecondaryColumn {
        gap: 12px;
    }

    .ReminderHeroCopy {
        gap: 6px;
    }

    .ReminderHeroCopy h1,
    .ReminderPanelHeader h2 {
        font-size: clamp(1.65rem, 7vw, 2.15rem);
        line-height: 1.02;
    }

    .ReminderHeroCopy p,
    .ReminderPanelDescription,
    .ReminderRecurringCardHeader p,
    .ReminderCardHeader p,
    .ReminderDescription,
    .ReminderMeta,
    .ReminderMutedText {
        line-height: 1.35;
    }

    .ReminderPanelHeader {
        margin-bottom: 12px;
        gap: 10px;
    }

    .ReminderPanelSubsection {
        margin-top: 14px;
        padding-top: 14px;
        gap: 10px;
    }

    .ReminderForm {
        gap: 10px;
    }

    .ReminderFormGrid,
    .ReminderFormGrid--triple {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .ReminderField {
        gap: 6px;
    }

    .ReminderField span {
        font-size: 12px;
    }

    .ReminderField input,
    .ReminderField textarea,
    .ReminderField select,
    .ReminderCustomSelectTrigger {
        padding: 9px 10px;
        border-radius: 10px;
    }

    .ReminderField textarea {
        min-height: 84px;
    }

    .ReminderDateFieldControl {
        border-radius: 10px;
    }

    .ReminderDatePickerTrigger {
        flex-basis: 40px;
        min-width: 40px;
    }

    .ReminderDatePickerTrigger::after {
        right: 10px;
        width: 16px;
        height: 16px;
    }

    .ReminderDatePickerTrigger::before {
        right: 14px;
        width: 8px;
    }

    .ReminderCustomSelectMenu {
        top: calc(100% + 6px);
        padding: 6px;
        border-radius: 14px;
    }

    .ReminderCustomSelectOption {
        padding: 9px 10px;
        border-radius: 10px;
    }

    .ReminderCheckboxField {
        gap: 8px;
        border-radius: 12px;
    }

    .ReminderCheckboxField span {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .ReminderCards,
    .ReminderRecurringList {
        gap: 10px;
    }

    .ReminderRecurringCard,
    .ReminderCard {
        padding: 12px 13px 12px 15px;
        border-radius: 14px;
    }

    .ReminderRecurringCardHeader,
    .ReminderCardHeader {
        gap: 10px;
    }

    .ReminderTagRow {
        gap: 6px;
        margin-top: 8px;
    }

    .ReminderTag,
    .ReminderCountdown {
        min-height: 24px;
        padding: 4px 9px;
        font-size: 11px;
    }

    .ReminderMeta {
        margin-top: 6px;
    }

    .ReminderDescription {
        margin-top: 8px;
    }

    .ReminderInlineHint {
        font-size: 12px;
    }

    .ReminderAnchorDateModalOverlay {
        padding: 14px;
    }

    .ReminderAnchorDateModal {
        width: min(340px, 100%);
        padding: 14px;
        border-radius: 16px;
    }

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

    .ReminderAnchorDateModalHeader .ReminderGhostButton {
        width: 100%;
    }

    .ReminderPanelHeader,
    .ReminderRecurringCardHeader,
    .ReminderCardHeader,
    .ReminderNotice {
        flex-direction: row;
    }

    .ReminderNotice {
        gap: 10px;
        padding: 10px 12px;
        border-radius: 14px;
    }
}

@media (max-width: 560px) {
    .OrganisationReminderContentAreaInner {
        padding: 12px 10px 22px;
        gap: 10px;
    }

    .ReminderHeroCard,
    .ReminderPanel {
        padding: 12px;
        border-radius: 14px;
    }

    .ReminderHeroCopy h1,
    .ReminderPanelHeader h2 {
        font-size: clamp(1.5rem, 7.5vw, 1.9rem);
    }

    .ReminderPrimaryButton,
    .ReminderGhostButton,
    .ReminderDangerButton,
    .ReminderNotice button {
        width: 100%;
        padding: 9px 12px;
    }

    .ReminderActionRow {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ReminderRecurringCard,
    .ReminderCard {
        padding: 11px 12px 11px 14px;
    }

    .ReminderCheckboxField {
    }
}
