textarea.form-control.is-invalid,
.was-validated textarea.form-control:invalid {
    background-image: none;
}

/* Remove step buttons on input-type="number" */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    /* Firefox */
}

html {
    overscroll-behavior: none;
}

body {
    font-family: "Google Sans Flex", sans-serif;
    font-weight: 400;
    font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 20;

    background-color: #f4f4f4;
    overscroll-behavior: none;
}

#mainNav {
    font-size: 14px;
    position: sticky;
    width: 100%;
    top: 0;

    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;

    z-index: 1040;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    font-size: 18px;
}

.svgbtn {
    background: transparent;
    padding: 0;
    border: 0;
    color: #434343;
}

.svgbtn:hover {
    background-color: gainsboro;
    color: #000000;
}

.borderless-input {
    border: none;
    outline: none;
}

.alert-pop-up {
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 0;
    pointer-events: none;
    /* tıklamaları engellesin */
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

.alert-pop-up.show {
    opacity: 1;
    pointer-events: auto;
}

.bg-blue-subtle {
    background-color: rgb(210, 232.8, 255)
}

;

.modal-backdrop {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-header .btn-close {
    order: -1;
    margin-left: 0;
    margin-right: 15px;
    background-size: contain;
    background-position: center;
    opacity: 1;
    width: 0.6em;
    height: 0.6em;
}

.modal-header {
    padding: 24px 16px 24px 16px;
    justify-content: flex-start;
}

.modal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.modal-content {
    border-radius: 20px;
}

textarea {
    resize: none;
}

.s-card {
    padding: 12px;
    background-color: #fff;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .bi {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--bs-gray);
    pointer-events: none;
    z-index: 5;
}

.input-icon-wrapper .form-control {
    padding-left: 2.8rem;
    /* İkonun genişliğine göre padding */
}

/* (.has-toggle) for show password icon */
.input-icon-wrapper.has-toggle .form-control.is-invalid,
.input-icon-wrapper.has-toggle .form-control.is-valid {
    background-image: none;
    padding-right: 2.8rem;
}

.customer-card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease;
    /* overflow: hidden; */
}

.customer-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);
}

.customer-card .card-body {
    padding: 16px 18px 14px;
}

.customer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

.customer-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1d21;
    word-break: break-all;
    line-height: 1.3;
}

.customer-card-name .gender-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-card-name .gender-icon.female {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.customer-card-name .gender-icon.male {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.customer-card-name .gender-icon img {
    width: 15px;
    height: 15px;
}

.customer-card-meta {
    font-size: 0.75rem;
    color: #8c929a;
    margin-top: 2px;
}

.customer-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.customer-card-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.customer-card-field.full-width {
    grid-column: 1 / -1;
}

.customer-card-field-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 1px;
}

.customer-card-field-value {
    font-size: 0.83rem;
    color: #374151;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-card-field-value.allow-wrap {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.form-control,
.form-select {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #a5c6f5;
    box-shadow: 0 0 0 0.2rem rgba(17, 110, 203, 0.12);
}

.custom-table-header th {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;

    color: #6c757d;
    font-size: 0.875em;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 0 !important;
    text-align: inherit;
}

/* ── Stat mini-cards ─────────────────────────────── */
.stat-card {
    border-radius: 1rem;
    border: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

.stat-icon-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    margin-top: -4px;
}

/* ── Squared icon badge ──────────────────────────── */
.squared-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}

/* ── Appointment badge component ─────────────────── */
:root {
    --appointment-badge-blue-bg: #dbeafe;       --appointment-badge-blue-color: #1e40af;
    --appointment-badge-warning-bg: #fef3c7;    --appointment-badge-warning-color: #92400e;
    --appointment-badge-danger-bg: #fee2e2;     --appointment-badge-danger-color: #991b1b;
    --appointment-badge-info-bg: #cffafe;       --appointment-badge-info-color: #155e75;
    --appointment-badge-secondary-bg: #e2e8f0;  --appointment-badge-secondary-color: #334155;
    
    --appointment-badge-closed-bg: #1f2937;     --appointment-badge-closed-color: #f8fafc;
    --appointment-badge-empty-bg: #f1f5f9;      --appointment-badge-empty-color: #475569;
    --appointment-badge-demand-bg: #ede9fe;     --appointment-badge-demand-color: #5b21b6;
    --appointment-badge-full-bg: #d1fae5;       --appointment-badge-full-color: #065f46;
    --appointment-badge-entry-bg: #e0e7ff;      --appointment-badge-entry-color: #3730a3;
}

/* ── Appointment badge component ─────────────────── */
/* One component drives both appointment-template badges and block-state badges. */
:where([class*="appointment-badge"]) {
    display: inline-flex;
    align-items: center;
    padding: 0.32em 0.65em;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Template colors */
.appointment-badge-blue      { background: var(--appointment-badge-blue-bg); color: var(--appointment-badge-blue-color); }
.appointment-badge-warning   { background: var(--appointment-badge-warning-bg); color: var(--appointment-badge-warning-color); }
.appointment-badge-danger    { background: var(--appointment-badge-danger-bg); color: var(--appointment-badge-danger-color); }
.appointment-badge-info      { background: var(--appointment-badge-info-bg); color: var(--appointment-badge-info-color); }
.appointment-badge-secondary { background: var(--appointment-badge-secondary-bg); color: var(--appointment-badge-secondary-color); }

/* Block-state badges */
.appointment-badge-closed { background: var(--appointment-badge-closed-bg); color: var(--appointment-badge-closed-color); }
.appointment-badge-empty  { background: var(--appointment-badge-empty-bg); color: var(--appointment-badge-empty-color); }
.appointment-badge-demand { background: var(--appointment-badge-demand-bg); color: var(--appointment-badge-demand-color); }
.appointment-badge-full   { background: var(--appointment-badge-full-bg); color: var(--appointment-badge-full-color); }
.appointment-badge-entry  { background: var(--appointment-badge-entry-bg); color: var(--appointment-badge-entry-color); }

.appointment-badge-fixed-60 { min-width: 60px; justify-content: center; }

.app-label {
    text-transform: uppercase;
    font-size: small;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--bs-secondary);
}