body,
html {
    background-color: #f2f4f9;
    padding: 0px;
    margin: 0px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: block;
    cursor: pointer;
}

span {
    font-size: 14px;
}

span.main-f-color {
    color: black;
}

span.second-f-color {
    color: #8b8897;
}

span.white-f-color {
    color: white;
}

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

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label {
    font-size: 0.875rem;
    color: #6c757d;
    /* sesuaikan dengan tema kamu */
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d1d5db;
    border-radius: 999px;
    transition: 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: 0.2s;
}

/* Saat checked */
.toggle-switch input:checked + .toggle-slider {
    background-color: #22c55e;
    /* hijau ON */
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ====== Wrapper umum dropdown (opsional, sesuaikan dengan style kamu) ====== */
.dropdown-title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.dropdown-title > span.second-font {
    display: inline-block;
    margin-bottom: 0.15rem;
}

/* ===== WRAPPER UTAMA ===== */
.input-icon.tag-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;

    padding: 0.75rem 1rem;          /* PADDING container */
    background: #fafafa;            /* Background lembut */
    border: 1px solid #e5e7eb;      /* Border ringan */
    border-radius: 0.75rem;         /* Radius modern */
    box-sizing: border-box;
}

/* ===== LIST TAG VERTICAL ===== */
.tag-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

/* Tiap baris tag */
.tag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.45rem 0.65rem;
    background: #f3f4f6;
    border-radius: 0.55rem;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;

    transition: background-color 0.15s ease;
}
.tag-row:hover {
    background-color: #e9eaec;
}

/* Teks tag */
.tag-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Tombol hapus */
.tag-remove-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #6b7280;
    padding: 0;
}
.tag-remove-btn:hover {
    color: #dc2626;
}

/* ===== INPUT FIELD ===== */
.tag-input-field-vertical {
    width: 100%;
    padding: 0.6rem 0.7rem;

    border: 1px solid #d1d5db;
    border-radius: 0.55rem;
    font-size: 0.875rem;
    outline: none;
    background-color: #ffffff;

    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
}

.tag-input-field-vertical::placeholder {
    color: #9ca3af;
    font-size: 0.8rem;
}

.tag-input-field-vertical:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
    background-color: #f9fafb;
}

/* ===== FOOTER ===== */
.tag-footer-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.tag-error {
    color: #dc2626;
    font-weight: 500;
}

/* Tombol "Hapus semua" */
.tag-clear-btn {
    width: max-content;
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 0.25rem;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.75rem;
    align-self: flex-start;
}
.tag-clear-btn:hover {
    color: #1d4ed8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .input-icon.tag-input-container {
        padding: 0.65rem 0.8rem;
    }

    .tag-row {
        padding: 0.4rem 0.55rem;
    }

    .tag-input-field-vertical {
        padding: 0.5rem 0.6rem;
        font-size: 0.82rem;
    }
}

a.main-button,
div.main-button,
button.main-button {
    display: flex;
    font-size: 14px;
    font-weight: 600;
    background-color: #eceff6;
    padding: 9.8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #eceff6;
    color: black;
    text-decoration: none;
}

a.main-button:hover,
a.main-button:active,
a.main-button:focus,
div.main-button:focus,
div.main-button:active,
div.main-button:hover,
button.main-button:focus,
button.main-button:active,
button.main-button:hover {
    background-color: #dce4f0;
    transition: all 0.2s ease-in-out;
}

a.main-button.active-btn,
div.main-button.active-btn,
button.main-button.active-btn {
    background-color: #f1e8ff;
    border: 1px solid #4547fc;
    transition: all 0.2s ease-in-out;
}

a.main-button.selected-coach,
div.main-button.selected-coach,
button.main-button.selected-coach {
    background-color: #e8f5e8;
    border: 1px solid #12a67c;
    color: #0f8b69;
    transition: all 0.2s ease-in-out;
}

a.main-button.red-btn,
div.main-button.red-btn,
button.main-button.red-btn {
    background-color: #ff5c5c;
    color: white;
    transition: all 0.3s ease-in-out;
}

a.main-button.red-btn:hover,
a.main-button.red-btn:focus,
div.main-button.red-btn:focus,
div.main-button.red-btn:hover,
button.main-button.red-btn:focus,
button.main-button.red-btn:hover {
    background-color: #df4444;
    transition: all 0.3s ease-in-out;
}

a.button-icon,
button.button-icon {
    display: flex;
    flex-direction: row;
    font-size: 14px;
    font-weight: 600;
    background-color: #eceff6;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9.8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #eceff6;
    text-decoration: none;
}

a.button-icon img,
button.button-icon img {
    width: auto;
    height: 16.8px;
}

a.button-icon:hover,
a.button-icon:active,
a.button-icon:focus,
button.button-icon:focus,
button.button-icon:active,
button.button-icon:hover {
    background-color: #dce4f0;
    transition: all 0.2s ease-in-out;
}

a.button-icon.active-btn,
button.button-icon.active-btn {
    background-color: #f1e8ff;
    border: 1px solid #4547fc;
    transition: all 0.2s ease-in-out;
}

.dropdown {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #dadce5;
    border-radius: 6px;
    padding-right: 8px;
}

.dropdown img {
    height: 16.8px;
    width: auto;
}

select {
    font-size: 14px;
    font-weight: 600;
    background-color: transparent;
    width: 100%;
    font-family: "Inter";
    border: 0px solid transparent;
    /* Hide default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    padding: 9.8px 12px;
    color: black;
}

select:required:invalid {
    color: #8b8897;
}

select option[value=""][disabled] {
    color: #8b8897;
}

select option {
    color: black;
}

select:focus {
    outline: none;
}

span b {
    color: rgb(255, 46, 46);
    font-weight: 500;
}

.split-card {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.split-card .user-card {
    flex: 1;
}

.ext-area {
    width: 100%;
}

.ext-area .back-btn {
    background-color: #dae1ef;
    width: fit-content;
}

.input-icon {
    display: flex;
    flex-direction: row;
    padding-right: 8px;
    flex: 1;
    border: 1px solid #dadce5;
    border-radius: 6px;
    justify-content: space-between;
    align-items: center;
}

.input-icon img {
    height: 14.8px;
    width: auto;
}

.input-icon input[type="text"],
.input-icon input {
    border: 0px solid transparent;
    padding: 9.8px 12px;
    width: 100%;
    border-radius: 8px;
    background-color: transparent;
    font-family: "Inter";
    font-size: 14px;
}

.input-icon textarea {
    min-height: 80px;
    resize: none; /* 🔹 Hilangkan handle resize */
    overflow: auto; /* 🔹 Scroll otomatis jika isi panjang */
    outline: none; /* 🔹 Hilangkan garis fokus */
}

.input-icon input[type="text"]:focus,
.input-icon input:focus {
    outline: none;
}

.input-icon textarea {
    border: 0px solid transparent;
    padding: 9.8px 12px;
    width: 100%;
    border-radius: 8px;
    background-color: transparent;
    font-family: "Inter";
    font-size: 14px;
}

.input-icon textarea:focus {
    outline: none;
}

.notes-area {
    display: flex;
    padding: 12px;
    background-color: #4b4dc4;
    border-radius: 8px;
}

/* Color BTN */

.purple-btn {
    background-color: #897bb9 !important;
    color: white !important;
}

.purple-btn:hover,
.purple-btn:active,
.purple-btn:focus {
    background-color: #6e5fa3 !important;
    transition: all 0.2s ease-in-out;
}
.green-btn {
    background-color: #12a67c !important;
    color: white !important;
}

.green-btn:hover,
.green-btn:active,
.green-btn:focus {
    background-color: #0f8b69 !important;
    transition: all 0.2s ease-in-out;
}

.blue-btn {
    background-color: #7b7dff !important;
    color: white !important;
}

.blue-btn:hover,
.blue-btn:active,
.blue-btn:focus {
    background-color: #5e60eb !important;
    transition: all 0.2s ease-in-out;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.548);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 480px;
    height: fit-content;
    min-height: 580px;
    max-height: 90dvh;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-content.fit-content {
    min-height: unset;
}

.modal-content .modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0px 0px;
}

.modal-header,
.modal-footer {
    height: 38px;
    padding: 14px;
}

.modal-header {
    padding-bottom: 6px;
}

.modal-footer {
    padding-top: 6px;
    padding-bottom: 12px;
}

button.main-button {
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

.modal-content .modal-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.close-btn {
    justify-content: center;
}

.alert-notification {
    width: -webkit-fill-available;
    background-color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: start;
    align-items: center;
    border: 1px solid #dadce5;
    color: black;
}

.alert-notification.success {
    background-color: #e6f4ea;
    border: 1px solid #a3d9b1;
}

.alert-notification.success span {
    color: #137c50;
}

.alert-notification.error {
    background-color: #fdecea;
    border: 1px solid #f5a4a4;
}

.alert-notification.error span {
    color: #d93025;
}

.alert-notification span {
    font-size: 14px;
    color: black;
}

.modal-content .main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
    padding-top: 0px;
    padding-bottom: 0px;
    gap: 6px;
}

.modal-content .main-content img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.modal-content .modal-footer {
    border-radius: 0px 0px 8px 8px;
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.modal-content .modal-footer a {
    width: 100%;
}

.modal-content .modal-footer div {
    width: 100%;
}

.modal-content .modal-footer a.close-modal-btn {
    justify-content: center;
}

.multi-dropdown {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
}

.multi-dropdown .dropdown {
    flex: 1;
}

.modal-content .main-content {
    max-height: 70dvh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
.modal-content .main-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

input.input-quantity {
    height: 38px;
    width: 38px;
    padding: 0px;
    border-radius: 6px;
    outline: none;
    border: 1px solid #dadce5;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    /* Remove default spinners */
    -moz-appearance: textfield;
    font-family: "Inter";
}

input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.dropdown img {
    height: 14.8px !important;
    width: 14.8px !important;
}

.dropdown {
    flex: unset;
}

.dropdown-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

input.input-quantity::-webkit-outer-spin-button,
input.input-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

a {
    text-decoration: none;
    color: black;
}

.switch-container {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.switch-container a {
    width: 100%;
    justify-content: center;
    text-align: center;
}

@media screen and (max-width: 768px) {
}

@media screen and (max-width: 480px) {
    .multi-dropdown {
        flex-direction: column;
    }

    .modal-content {
        width: calc(100dvw - 20px);
        height: fit-content;
        max-height: 90dvh;
    }

    .modal-content .main-content {
        max-height: 80dvh;
        overflow-y: scroll;
    }
}
