/* Explain: Styling for the administration panel, including forms and work hours. */
.adm-login-body {
    background: var(--background-color);
    min-height: 100vh;
}

.adm-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 196, 0, 0.16), transparent 60%),
        linear-gradient(180deg, #003B20 0%, #002616 100%);
}

.adm-login-card {
    width: min(100%, 26rem);
    background: #fff;
    border-radius: 1.75rem;
    padding: 2rem 1.6rem;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.adm-login-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.adm-login-card h1 {
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.adm-body {
    background: var(--surface-alt);
    min-height: 100vh;
    padding-bottom: 2.5rem;
}

.adm-shell {
    max-width: 68rem;
    margin-inline: auto;
    padding: 1.25rem 1rem;
}

.adm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #00512d, #003B20);
    color: #fff;
    border-radius: 1.25rem;
    padding: 0.9rem 1.25rem;
    box-shadow: var(--shadow-soft);
}

.adm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
}

.adm-brand i {
    color: var(--secondary-color);
}

.adm-top-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.adm-btn:hover {
    transform: translateY(-1px);
}

.adm-btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.adm-btn-primary:hover {
    background: #008f45;
}

.adm-btn-gold {
    background: var(--secondary-color);
    color: #3a2a00;
}

.adm-btn-gold:hover {
    background: var(--secondary-hover);
}

.adm-btn-light {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.adm-btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.adm-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
}

.adm-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.adm-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.adm-tab:hover {
    border-color: var(--secondary-color);
}

.adm-tab.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.adm-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.adm-h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-dark);
}

.adm-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.adm-input,
.adm-select,
.adm-textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 0.8rem;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 59, 32, 0.14);
}

.adm-list {
    display: grid;
    gap: 0.75rem;
}

.adm-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.7rem 0.9rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
}

.adm-row-img {
    width: 56px;
    height: 56px;
    border-radius: 0.8rem;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--surface-alt);
}

.adm-cat-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.35rem;
}

.adm-row-main {
    flex: 1 1 12rem;
    min-width: 0;
}

.adm-row-title {
    font-weight: 700;
    color: var(--text-color);
}

.adm-row-sub {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.adm-row-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.adm-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: var(--surface-alt);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.adm-badge.is-on {
    background: rgba(0, 166, 80, 0.14);
    color: var(--accent-color);
}

.adm-badge.is-off {
    background: rgba(217, 52, 43, 0.12);
    color: #b3241d;
}

.adm-row-btns {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
}

.adm-icon-btn {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 9999px;
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.adm-icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.adm-icon-btn.is-danger {
    color: #b3241d;
}

.adm-icon-btn.is-danger:hover {
    background: #d9342b;
    color: #fff;
}

.adm-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
    border-radius: 1.25rem;
    background: #fff;
}

.adm-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.adm-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 20, 10, 0.6);
    backdrop-filter: blur(4px);
}

.adm-modal[hidden] {
    display: none;
}

.adm-modal-card {
    width: min(100%, 34rem);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.4rem;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}

.adm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.adm-form-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .adm-form-grid.cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.adm-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.adm-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.adm-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.adm-check input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--primary-color);
}

.adm-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.adm-msg {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.6rem;
}

.adm-toast-wrap {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: max-content;
    max-width: 90vw;
}

.adm-toast {
    background: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
}

.adm-toast.is-err {
    background: #d9342b;
}

.adm-toast.is-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.adm-nutr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.adm-nutr-head label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
}

.adm-nutr-btn,
.adm-alg-btn {
    width: auto;
}

.adm-nutr-btn i {
    color: var(--secondary-hover);
}

.adm-alg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    min-height: 1.6rem;
}

.adm-alg-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.adm-alg-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.3rem 0.25rem 0.7rem;
    border-radius: 9999px;
    background: rgba(217, 52, 43, 0.1);
    border: 1.5px solid rgba(217, 52, 43, 0.35);
    color: #b3241d;
    font-size: 0.82rem;
    font-weight: 600;
}

.adm-alg-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 9999px;
    border: none;
    background: rgba(179, 36, 29, 0.15);
    color: #b3241d;
    cursor: pointer;
    font-size: 0.62rem;
    line-height: 1;
}

.adm-alg-chip-x:hover {
    background: #b3241d;
    color: #fff;
}

.adm-alg-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 52vh;
    overflow-y: auto;
    padding: 0.25rem 0.1rem;
    margin-top: 0.85rem;
}

@media (min-width: 480px) {
    .adm-alg-list {
        grid-template-columns: 1fr 1fr;
    }
}

.adm-alg-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    border: 1.5px solid var(--border-color);
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.adm-alg-option:hover {
    border-color: var(--secondary-color);
    background: var(--surface-alt);
}

.adm-alg-option input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #d9342b;
}

/* ---- Görsel yükleme ---- */
.adm-upload-box {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.adm-upload-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 11rem;
    height: 8rem;
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    background: var(--surface-alt);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.adm-upload-target:hover {
    border-color: var(--secondary-color);
    background: #fff;
}

.adm-upload-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.adm-upload-hint i {
    font-size: 1.6rem;
    color: var(--secondary-hover);
}

.adm-upload-hint[hidden] { display: none; }

.adm-upload-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-upload-remove {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    z-index: 3;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 9999px;
    border: 2px solid #fff;
    background: #d9342b;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
    transition: background-color 0.2s ease;
}

.adm-upload-remove:hover { background: #b3241d; }
.adm-upload-remove[hidden] { display: none; }

.adm-upload-busy {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.adm-upload-busy[hidden] { display: none; }

.adm-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.adm-gallery-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
}

.adm-gallery-item {
    position: relative;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--surface-alt);
}

.adm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-gallery-item .adm-upload-remove {
    top: 0.3rem;
    right: 0.3rem;
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.68rem;
}

.adm-gallery-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 6.5rem;
    height: 6.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    background: var(--surface-alt);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.adm-gallery-add:hover {
    border-color: var(--secondary-color);
    background: #fff;
}

.adm-gallery-add i {
    font-size: 1.3rem;
    color: var(--secondary-hover);
}

.adm-gallery-add.is-busy {
    opacity: 0.55;
    pointer-events: none;
}

/* ---- Çalışma saatleri ---- */
.adm-hours {
    display: grid;
    gap: 0.55rem;
}

.adm-hours-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: var(--surface-alt);
}

.adm-hours-day {
    flex: 0 0 6.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-color);
}

.adm-hours-row input[type="time"] {
    flex: 1 1 6.5rem;
    min-width: 0;
}

.adm-hours-row input[type="time"]:disabled {
    opacity: 0.45;
}

.adm-hours-sep {
    color: var(--text-muted);
    font-weight: 700;
}

.adm-hours-row .adm-check {
    flex: 0 0 auto;
    font-size: 0.82rem;
}