*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Enhanced Gradient Base Colors for more depth */
    --bg-primary: #120a23;
    --bg-secondary: #211142;
    --bg-magenta: #911760;
    --bg-crimson: #c41e4a;

    /* Layout Colors */
    --card-bg-light: rgba(255, 255, 255, 0.05);
    --card-bg-solid: rgba(46, 26, 82, 0.65);
    --card-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.2);

    /* Brand/Accent Colors */
    --accent: #ed5f7f;
    --accent-dark: #c0405d;
    --accent-glow: rgba(237, 95, 127, 0.4);

    /* Typographic Colors */
    --text-main: #ffffff;
    --text-dim: #a9a4b8;
    --text-subtlest: rgba(255, 255, 255, 0.4);

    /* Semantic Colors */
    --green: #48d982;
    --green-glow: rgba(72, 217, 130, 0.5);
    --orange: #fc793d;
    --orange-glow: rgba(252, 121, 61, 0.4);
    --currency-bg: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);

    /* Currencies */
    --usd-g1: #ed5f7f;
    --usd-g2: #c0405d;
    --eur-g1: #9f7af5;
    --eur-g2: #6f4fd1;
    --gbp-g1: #fb9342;
    --gbp-g2: #d66b1a;
    --chf-g1: #3fd0bf;
    --chf-g2: #138b8c;
}

/* ── Native-app davranisi: metin secimi/sag tik/iOS callout/cift dokunma zoom kapali ── */
html,
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overscroll-behavior: contain;
}
/* Sadece form alanlarinda secim/duzenleme acik kalir */
input,
textarea,
[contenteditable="true"],
[contenteditable=""] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    touch-action: manipulation;
}
/* Goz hatasi: bilerek secime izin verilen alanlar (rapor/log gibi) ".tg-selectable" sinifi alir */
.tg-selectable,
.tg-selectable * {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}
/* Surukleme/secim ipucu kursoru kaldir */
img, svg, canvas, video { -webkit-user-drag: none; user-drag: none; }

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── POS CONTAINER (Stunning Ambient Gradients) ── */
.pos-container {
    width: 100vw;
    height: calc(100vh - 48px);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Complex ambient background for depth */
    background:
        radial-gradient(circle at 10% 40%, var(--bg-crimson) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 5%, var(--bg-magenta) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 90%, var(--bg-secondary) 0%, transparent 60%),
        linear-gradient(145deg, #441444 0%, #29104f 40%, #150a30 80%, #0d061c 100%);
}

.pos-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* ── TOP BAR ── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}

/* View Toggle — styles in bottombar.css */

.logo-area {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-italic {
    font-style: italic;
    font-weight: 800;
    color: var(--accent);
    font-size: 28px;
    text-shadow: 0 0 15px var(--accent-glow);
}

.cafe-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 28px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--green);
}

.status-dot.glow {
    box-shadow: 0 0 10px var(--green-glow), 0 0 20px var(--green-glow);
}

.status-icon {
    width: 14px;
    height: 14px;
    color: var(--text-subtlest);
    flex-shrink: 0;
}

.status-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.status-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-value {
    font-size: 10px;
    font-weight: 600;
}

.status-value.online {
    color: var(--green);
}

.status-value.offline {
    color: var(--orange);
}

/* ── MAIN CONTENT ── */
.main-content {
    flex: 1;
    display: flex;
    min-height: 0;
    padding: 24px 24px 16px 24px;
    gap: 24px;
    z-index: 5;
}

/* ── LEFT PANEL ── */
.left-panel {
    width: 380px;
    background: var(--card-bg-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px 24px 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

/* Date / Time / Weather */
.datetime-section {
    flex-shrink: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dt-clock {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-display {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -2.5px;
    line-height: 1;
}

.date-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Weather Chip */
.weather-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}

.weather-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.wc-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(176, 190, 197, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wc-icon {
    width: 30px;
    height: 30px;
}

.wc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wc-temp-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.wc-temp {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.wc-condition {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.wc-location {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-dim);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Overview Carousel */
.carousel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.carousel-tabs {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: rgba(9, 8, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.carousel-tab {
    appearance: none;
    border: 0;
    border-radius: 9px;
    padding: 7px 14px;
    background: transparent;
    color: var(--text-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.carousel-tab:hover {
    color: #fff;
}

.carousel-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(237, 95, 127, 0.85), rgba(192, 64, 93, 0.85));
    box-shadow: 0 4px 14px rgba(237, 95, 127, 0.25);
}

.carousel-tab svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.carousel-tab.active svg {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 24px;
    background: linear-gradient(90deg, var(--accent), #ffbc57);
}

.overview-carousel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}


.panel-slider {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.panel-slider::-webkit-scrollbar {
    display: none;
}

.dashboard-page {
    min-width: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    overflow-x: hidden;
}

.dashboard-page::-webkit-scrollbar {
    display: none;
}

/* Currency page uses same base styles as dashboard-page */


.activity-list,
.currency-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.activity-list {
    flex: 1;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 16px;
    height: 16px;
}

.activity-item.alert .activity-icon {
    background: linear-gradient(135deg, #ff8f70, #ed5f7f);
}

.activity-item.order .activity-icon {
    background: linear-gradient(135deg, #7b8dff, #5c52d6);
}

.activity-item.payment .activity-icon {
    background: linear-gradient(135deg, #53dd8d, #1da86d);
}

.activity-item.note .activity-icon {
    background: linear-gradient(135deg, #ffcb55, #f08c2e);
}

.activity-item.package .activity-icon {
    background: linear-gradient(135deg, #4fd0f8, #2f8fd7);
}

.activity-item.kitchen .activity-icon {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.activity-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
}

.activity-time {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 14px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.currency-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.currency-symbol-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.usd {
    background: linear-gradient(135deg, var(--usd-g1), var(--usd-g2));
}

.eur {
    background: linear-gradient(135deg, var(--eur-g1), var(--eur-g2));
}

.gbp {
    background: linear-gradient(135deg, var(--gbp-g1), var(--gbp-g2));
}

.chf {
    background: linear-gradient(135deg, var(--chf-g1), var(--chf-g2));
}

.gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.currency-symbol {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.currency-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.currency-code {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
}

.currency-rate {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.currency-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
}

.currency-change.up {
    color: var(--green);
}

.currency-change.down {
    color: var(--orange);
}


/* ── RIGHT PANEL ── */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ── MENU GRID ── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 720px;
}

/* Premium Glass Cards */
.menu-card {
    background: var(--card-bg-solid);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 12px 18px;
    cursor: pointer;
    border: 1px solid var(--card-border);
    aspect-ratio: 1 / 1;
    transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.glass-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover {
    background: rgba(65, 38, 110, 0.85);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 16px rgba(237, 95, 127, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.menu-card:hover::before {
    opacity: 1;
}

.menu-card:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 50ms;
}

.card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.menu-card:hover .card-icon-wrap {
    transform: translateY(-4px);
}

.card-label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Badge */
.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    background: var(--accent);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 4px 10px var(--accent-glow);
    z-index: 2;
}

.badge.empty {
    background: transparent;
    color: var(--text-dim);
    box-shadow: none;
}

/* Float button — removed */
.float-btn {
    display: none;
}

.float-btn:hover,
.float-btn span {
    display: none;
}

/* Bottom bar styles: see bottombar.css */

/* ── UNIFIED BOTTOM NAV ── */
/* Bottom nav styles: see bottombar.css */

/* ── TEMASGO CORNER ── */
.temasgo-corner {
    position: fixed;
    bottom: 56px;
    right: 0;
    background: var(--accent-dark);
    padding: 12px 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.temasgo-corner:hover {
    background: var(--accent);
    padding-right: 12px;
}

/* Utility classes */
.interactive-hover {
    cursor: pointer;
}

@media (max-width: 1240px) {
    .main-content {
        flex-direction: column;
        overflow-y: auto;
    }

    .left-panel {
        width: 100%;
    }

    .right-panel {
        min-height: 520px;
    }

    .menu-grid {
        max-width: none;
    }
}

@media (max-width: 860px) {
    .top-bar {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 16px;
    }

    .status-bar {
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .main-content {
        padding: 16px 16px 12px;
        gap: 16px;
    }

    .left-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .dt-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .time-display {
        font-size: 44px;
    }

    .weather-chip {
        width: 100%;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .menu-card {
        aspect-ratio: 1.1 / 1;
    }

    .activity-item {
        grid-template-columns: auto 1fr;
    }

    .activity-time {
        grid-column: 2;
        justify-self: end;
    }

    .temasgo-corner {
        display: none;
    }
}

@media (max-width: 600px) {
    .top-bar {
        padding: 10px 12px;
    }

    .logo-area {
        gap: 8px;
    }

    .logo-area img, .logo-area svg {
        width: 28px;
        height: 28px;
    }

    .brand-text {
        font-size: 14px;
    }

    .main-content {
        padding: 10px 10px 8px;
        gap: 12px;
    }

    .left-panel {
        padding: 14px;
        border-radius: 16px;
    }

    .time-display {
        font-size: 32px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .menu-card {
        aspect-ratio: auto;
        padding: 16px;
    }

    .right-panel {
        padding: 14px;
        border-radius: 16px;
    }
}

/* Scrollbar hide */
::-webkit-scrollbar {
    display: none;
}
