* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f5f3;
    --card: #ffffff;
    --text: #171717;
    --muted: #777;
    --line: #e8e8e5;
    --dark: #141414;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg);
    color: var(--text);
}

.hidden {
    display: none !important;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 28px;
    padding: 38px;
    box-shadow:
        0 30px 80px rgba(0,0,0,.08);
}

.brand {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 35px;
}

.login-card h1 {
    font-size: 31px;
    margin: 0 0 10px;
}

.muted {
    color: var(--muted);
    line-height: 1.6;
}

form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

input {
    border: 1px solid #ddd;
    border-radius: 13px;
    padding: 14px;
    font: inherit;
    outline: none;
}

input:focus {
    border-color: #999;
}

button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

form button {
    padding: 15px;
    border-radius: 14px;
    background: var(--dark);
    color: white;
    font-weight: 600;
}

.error {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background: #fff0f0;
    border-radius: 12px;
    color: #a11;
}

.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.sidebar {
    position: fixed;
    width: 250px;
    height: 100vh;
    background: #111;
    color: white;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 0 12px 28px;
}

.sidebar-brand strong {
    display: block;
    font-size: 18px;
}

.sidebar-brand span {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

nav {
    display: grid;
    gap: 5px;
}

.nav-item {
    padding: 12px 14px;
    text-align: left;
    border-radius: 10px;
    background: transparent;
    color: #aaa;
}

.nav-item:hover,
.nav-item.active {
    background: #242424;
    color: white;
}

.logout {
    margin-top: auto;
    padding: 12px;
    border-radius: 10px;
    background: #222;
    color: #aaa;
}

.main {
    grid-column: 2;
    padding: 0 35px 50px;
}

.topbar {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h2 {
    margin: 4px 0 0;
    font-size: 18px;
}

.eyebrow {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.profile {
    text-align: right;
}

.profile span {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.hero {
    background: #171717;
    color: white;
    border-radius: 28px;
    padding: 45px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 37px;
    max-width: 650px;
    margin: 8px 0 12px;
}

.hero p {
    color: #aaa;
    margin: 0;
    max-width: 600px;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid var(--line);
}

.stat-card span {
    display: block;
    color: #777;
    font-size: 13px;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
}

.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.panel-head {
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.panel-head h3 {
    margin: 5px 0 0;
}

.reservation {
    padding: 18px 24px;
    display: grid;
    grid-template-columns:
        1.5fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.reservation:last-child {
    border-bottom: 0;
}

.reservation-title {
    font-weight: 600;
}

.reservation-meta {
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}

.reservation-date {
    font-size: 14px;
}

.badge {
    justify-self: end;
    padding: 7px 11px;
    border-radius: 20px;
    background: #f0f0ed;
    font-size: 12px;
}

.empty {
    padding: 35px;
    text-align: center;
    color: #888;
}

@media(max-width:900px) {
    .app {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main {
        padding: 0 15px 35px;
    }

    .stats {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .hero {
        padding: 30px 24px;
    }

    .hero h1 {
        font-size: 29px;
    }
}

@media(max-width:550px) {
    .stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .badge {
        justify-self: start;
    }
}

.page-title {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:25px 0;
}

.page-title h1 {
    margin:4px 0 0;
}

.primary {
    background:#151515;
    color:#fff;
    border-radius:12px;
    padding:12px 18px;
}

.table-row {
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr 140px;
    gap:15px;
    padding:17px 22px;
    border-bottom:1px solid var(--line);
    align-items:center;
}

.table-row:last-child {
    border-bottom:0;
}

.table-title {
    font-weight:600;
}

.table-sub {
    color:#888;
    font-size:12px;
    margin-top:4px;
}

.action-button {
    background:#eee;
    padding:8px 11px;
    border-radius:9px;
    font-size:12px;
}

.modal {
    position:fixed;
    inset:0;
    z-index:100;
    background:rgba(0,0,0,.45);
    display:grid;
    place-items:center;
    padding:20px;
}

.modal-box {
    position:relative;
    background:#fff;
    width:100%;
    max-width:560px;
    max-height:90vh;
    overflow:auto;
    border-radius:24px;
    padding:30px;
}

.modal-close {
    position:absolute;
    right:18px;
    top:16px;
    width:36px;
    height:36px;
    border-radius:50%;
    font-size:22px;
}

.modal-form {
    display:grid;
    gap:14px;
    margin-top:20px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width:100%;
    border:1px solid #ddd;
    border-radius:12px;
    padding:13px;
    font:inherit;
}

.modal-form textarea {
    min-height:90px;
}

.calendar-actions {
    display:flex;
    gap:7px;
}

.calendar-actions button {
    background:white;
    border:1px solid var(--line);
    border-radius:10px;
    padding:9px 13px;
}

.calendar-weekdays {
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:1px;
    margin-bottom:1px;
}

.calendar-weekdays div {
    background:#eee;
    padding:10px;
    text-align:center;
    font-size:12px;
    color:#666;
}

.calendar-grid {
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:1px;
    background:#ddd;
    border:1px solid #ddd;
}

.calendar-day {
    background:#fff;
    min-height:130px;
    padding:9px;
}

.calendar-day.other {
    background:#f7f7f7;
    color:#aaa;
}

.calendar-number {
    font-size:12px;
    margin-bottom:7px;
}

.calendar-event {
    background:#171717;
    color:#fff;
    padding:6px 7px;
    border-radius:7px;
    margin-bottom:5px;
    font-size:11px;
    overflow:hidden;
}

.light {
    color:#999;
}

@media(max-width:800px) {
    .table-row {
        grid-template-columns:1fr;
    }

    .calendar-day {
        min-height:80px;
        padding:4px;
    }

    .calendar-event {
        font-size:9px;
    }
}

.catalog-summary {
    display:grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap:15px;
    margin-bottom:20px;
}

.catalog-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.catalog-toolbar select {
    border:1px solid var(--line);
    background:white;
    border-radius:10px;
    padding:9px 12px;
}

.catalog-row {
    display:grid;
    grid-template-columns:
        1.5fr 1fr 1fr 1fr 150px;
    gap:15px;
    align-items:center;
    padding:17px 22px;
    border-bottom:1px solid var(--line);
}

.catalog-row:last-child {
    border-bottom:0;
}

.catalog-category {
    display:inline-block;
    padding:6px 9px;
    border-radius:20px;
    background:#f1f1ee;
    font-size:11px;
}

.catalog-price-type {
    color:#777;
    font-size:13px;
}

.catalog-actions {
    display:flex;
    justify-content:flex-end;
    gap:6px;
}

@media(max-width:800px) {

    .catalog-summary {
        grid-template-columns:1fr;
    }

    .catalog-row {
        grid-template-columns:1fr;
    }

    .catalog-actions {
        justify-content:flex-start;
    }
}

.catalog-summary {
    display:grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap:15px;
    margin-bottom:20px;
}

.catalog-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.catalog-toolbar select {
    border:1px solid var(--line);
    background:white;
    border-radius:10px;
    padding:9px 12px;
}

.catalog-row {
    display:grid;
    grid-template-columns:
        1.5fr 1fr 1fr 1fr 150px;
    gap:15px;
    align-items:center;
    padding:17px 22px;
    border-bottom:1px solid var(--line);
}

.catalog-row:last-child {
    border-bottom:0;
}

.catalog-category {
    display:inline-block;
    padding:6px 9px;
    border-radius:20px;
    background:#f1f1ee;
    font-size:11px;
}

.catalog-price-type {
    color:#777;
    font-size:13px;
}

.catalog-actions {
    display:flex;
    justify-content:flex-end;
    gap:6px;
}

@media(max-width:800px) {

    .catalog-summary {
        grid-template-columns:1fr;
    }

    .catalog-row {
        grid-template-columns:1fr;
    }

    .catalog-actions {
        justify-content:flex-start;
    }
}

.inline-form {
    padding: 24px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.inline-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.inline-form input,
.inline-form select,
.inline-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.inline-form textarea {
    min-height: 100px;
    resize: vertical;
}

.inline-form .full {
    grid-column: 1 / -1;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
}

.secondary {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    padding: 11px 18px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .inline-form {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   DAVET YONETIM - MODERN UI
   ========================================================= */

:root {
    --bg: #f5f5f3;
    --surface: #ffffff;
    --surface-soft: #fafafa;

    --text: #171717;
    --muted: #777777;

    --border: #e7e7e4;
    --border-strong: #d7d7d3;

    --sidebar: #111111;
    --sidebar-hover: #202020;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --shadow-sm:
        0 1px 2px rgba(0, 0, 0, .03),
        0 4px 14px rgba(0, 0, 0, .03);

    --shadow-md:
        0 10px 35px rgba(0, 0, 0, .06);
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}


.app {
    min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
    width: 245px;
    padding: 26px 18px;
    background: var(--sidebar);
    border-right: 0;
}

.sidebar-brand {
    padding: 5px 12px 24px;
}

.sidebar-brand strong {
    font-size: 18px;
    letter-spacing: -.3px;
}

.sidebar-brand span {
    margin-top: 4px;
    font-size: 12px;
    color: #858585;
}


.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.nav-item {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    text-align: left;
    font-size: 15px;
    color: #a9a9a9;
    background: transparent;
    cursor: pointer;
    transition:
        background .15s ease,
        color .15s ease;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-item.active {
    background: #272727;
    color: #fff;
    font-weight: 600;
}


.logout {
    left: 18px;
    right: 18px;
    bottom: 26px;
    width: calc(100% - 36px);
    min-height: 44px;
    border-radius: 11px;
    background: #222;
    color: #aaa;
    border: 0;
}


/* MAIN */

.main {
    margin-left: 245px;
    width: calc(100% - 245px);
    padding: 0 34px 60px;
}


.topbar {
    min-height: 96px;
    padding: 24px 0;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}


.page {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
}


.page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 26px;
}


.page-title h1 {
    margin: 3px 0 0;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -1.2px;
}


.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #929292;
}


/* BUTTONS */

.primary {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: #171717;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform .1s ease,
        background .15s ease;
}

.primary:hover {
    background: #2c2c2c;
}

.primary:active {
    transform: translateY(1px);
}


.secondary {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.secondary:hover {
    background: #f6f6f6;
}


/* PANELS */

.panel {
    overflow: hidden;
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}


.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
}


.panel-head h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.3px;
}


/* STAT CARDS */

.stats {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}


.stat-card {
    min-height: 120px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}


.stat-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}


.stat-card strong {
    font-size: 31px;
    line-height: 1;
    letter-spacing: -1px;
}


/* INLINE FORMS */

#catalog-form-panel,
#staff-form-panel {
    max-width: 980px;
    margin-bottom: 26px;
}


.inline-form {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 26px;
}


.inline-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    font-size: 13px;
    font-weight: 600;
    color: #333;
}


.inline-form input,
.inline-form select,
.inline-form textarea {
    width: 100%;
    height: 46px;
    padding: 0 13px;

    border: 1px solid var(--border-strong);
    border-radius: 11px;

    outline: none;
    background: #fff;

    color: #171717;
    font: inherit;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.inline-form textarea {
    height: auto;
    min-height: 105px;
    padding-top: 12px;
    resize: vertical;
}


.inline-form input:focus,
.inline-form select:focus,
.inline-form textarea:focus {
    border-color: #8b8b8b;
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, .05);
}


.inline-form select {
    appearance: auto;
}


.inline-form .full {
    grid-column: 1 / -1;
}


.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    padding-top: 4px;
}


/* LIST ROWS */

.table-row {
    display: grid;
    grid-template-columns:
        minmax(220px, 2fr)
        minmax(140px, 1fr)
        minmax(160px, 1fr)
        auto;
    align-items: center;
    gap: 20px;

    min-height: 78px;
    padding: 15px 24px;

    border-bottom: 1px solid var(--border);
}


.table-row:last-child {
    border-bottom: 0;
}


.table-row:hover {
    background: var(--surface-soft);
}


.table-title {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 650;
}


.table-sub {
    font-size: 12px;
    color: var(--muted);
}


.row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}


.action-button {
    min-height: 36px;
    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #fff;
    color: #333;

    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}


.action-button:hover {
    background: #f3f3f3;
}


.action-button.danger {
    color: #b42318;
}


/* FILTERS */

#catalog-filter {
    min-width: 185px;
    height: 38px;
    padding: 0 10px;

    border: 1px solid var(--border-strong);
    border-radius: 9px;

    background: #fff;
    font: inherit;
    font-size: 13px;
}


/* EMPTY STATES */

.empty {
    padding: 52px 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
}


.error {
    margin: 20px;
    padding: 14px 16px;

    border: 1px solid #ffd5d2;
    border-radius: 11px;

    background: #fff4f3;
    color: #b42318;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .table-row {
        grid-template-columns:
            minmax(180px, 2fr)
            1fr
            auto;
    }
}


@media (max-width: 760px) {

    .sidebar {
        width: 205px;
    }

    .main {
        margin-left: 205px;
        width: calc(100% - 205px);
        padding: 0 18px 40px;
    }

    .inline-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .inline-form .full,
    .form-actions {
        grid-column: 1;
    }

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

    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .row-actions {
        justify-content: flex-start;
    }
}
