/* RESTOM_GORUNUM_V1: yan menu, giris ekrani cilasi, sayfa gecisleri, Ayarlar > Gorunum */

/* ---------- Yan menu ---------- */
body.rg-side .sidebar { display: flex; flex-direction: column; background: #fff; border-right: 1px solid rgba(6, 53, 35, .08); box-shadow: 18px 0 50px rgba(6, 40, 26, .16); }
body.rg-side .sidebar .logo { position: relative; display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 18px 16px 14px !important;
    margin: 0 !important; border-bottom: 1px solid rgba(6, 53, 35, .07); text-align: left; }
body.rg-side .sidebar .logo .logo-icon { grid-column: 1; grid-row: 1; justify-self: start; max-width: 140px; height: auto; margin: 0 !important; }
body.rg-side .sidebar .logo .sidebar-close-btn { grid-column: 2; grid-row: 1 / span 2; position: static !important; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin: 0 !important; }
body.rg-side .sidebar .logo .restaurant-name-label { grid-column: 1; grid-row: 2; justify-self: start; text-align: left !important; margin: 4px 0 0 !important; padding: 3px 10px; border-radius: 999px;
    background: rgba(17, 175, 102, .1); color: #057449 !important; font-size: 11.5px !important; font-weight: 700 !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rg-side .sidebar .nav-menu { flex: 1 1 0 !important; height: auto !important; max-height: none !important; min-height: 0 !important; overflow-y: auto; padding: 8px 12px 12px !important; scrollbar-width: thin; }
body.rg-side .sidebar .nav-item { position: relative; display: flex; align-items: center; gap: 12px; margin: 2px 0 !important; padding: 10px 12px !important; border-radius: 12px !important;
    color: #2b4236; font-weight: 600; transition: background .15s, color .15s, transform .15s; }
body.rg-side .sidebar .nav-item svg, body.rg-side .sidebar .nav-item i { width: 19px; height: 19px; flex: none; }
body.rg-side .sidebar .nav-item:hover { background: rgba(17, 175, 102, .08); color: #057449; }
body.rg-side .sidebar .nav-item.active { background: linear-gradient(110deg, #16b96b, #078c52) !important; color: #fff !important; box-shadow: 0 8px 18px rgba(7, 140, 82, .28); }
body.rg-side .sidebar .nav-item.active svg { color: #fff !important; stroke: #fff; }
body.rg-side .sidebar .nav-item.rg-logout { margin-top: 10px !important; color: #b42318; }
body.rg-side .sidebar .nav-item.rg-logout:hover { background: rgba(217, 45, 32, .08); color: #b42318; }
.rg-nav-label { display: none; }
body.rg-groups .rg-nav-label { display: block; padding: 14px 12px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8aa095; }
body.rg-groups .nav-menu > .rg-nav-label:first-child { padding-top: 6px; }
body.rg-compact.rg-side .sidebar .nav-item { padding: 7px 12px !important; margin: 1px 0 !important; font-size: 13.5px; }
body.rg-compact .rg-nav-label { padding-top: 10px !important; padding-bottom: 4px !important; }

.rg-user { display: none; }
body.rg-side .rg-user { display: flex; flex: none; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 10px 12px; border-radius: 14px; background: #f2f7f4; border: 1px solid rgba(6, 53, 35, .07); }
.rg-av { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(140deg, #16b96b, #057449); }
.rg-ut { min-width: 0; display: flex; flex-direction: column; }
.rg-ut b { font-size: 13.5px; color: #10241a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-ut small { font-size: 11.5px; color: #6b8479; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.dark-mode.rg-side .sidebar { background: #121a16; border-right-color: #223029; box-shadow: 18px 0 50px rgba(0, 0, 0, .45); }
body.dark-mode.rg-side .sidebar .logo { border-bottom-color: #223029; }
body.dark-mode.rg-side .sidebar .logo .restaurant-name-label { background: rgba(126, 240, 178, .1); color: #7ef0b2 !important; }
body.dark-mode.rg-side .sidebar .nav-item { color: #c7d6cd; }
body.dark-mode.rg-side .sidebar .nav-item:hover { background: rgba(126, 240, 178, .08); color: #7ef0b2; }
body.dark-mode.rg-side .sidebar .nav-item.rg-logout { color: #ff8a80; }
body.dark-mode.rg-groups .rg-nav-label { color: #6d8579; }
body.dark-mode.rg-side .rg-user { background: #18221d; border-color: #223029; }
body.dark-mode .rg-ut b { color: #e8f3ed; }
body.dark-mode .rg-ut small { color: #8ea398; }

/* ---------- Sayfa gecisi ---------- */
body.rg-trans:not(.no-animations) .page-view.rg-enter { animation: rgEnter .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rgEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.rg-trans .page-view.rg-enter { animation: none; } }

/* ---------- Giris ekrani ---------- */
body.rg-login #loginOverlay .login-right { position: relative; overflow: hidden; }
body.rg-login #loginOverlay .login-right::before, body.rg-login #loginOverlay .login-right::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; z-index: 0; }
body.rg-login #loginOverlay .login-right::before { width: 340px; height: 340px; top: -90px; right: -80px; background: #9ff0c8; animation: rgFloat 14s ease-in-out infinite alternate; }
body.rg-login #loginOverlay .login-right::after { width: 280px; height: 280px; bottom: -80px; left: -60px; background: #cdeedd; animation: rgFloat 18s ease-in-out infinite alternate-reverse; }
body.rg-login #loginOverlay .login-card { position: relative; z-index: 1; }
@keyframes rgFloat { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }
.rg-clock { display: none; }
body.rg-login .rg-clock { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 7px 12px; width: fit-content; max-width: 100%; border-radius: 999px;
    background: rgba(17, 175, 102, .09); color: #057449; font-size: 12.5px; }
.rg-clock b { font-weight: 800; }
.rg-clock small { font-size: 12px; color: #4b6b5b; }
.rg-dot { width: 8px; height: 8px; border-radius: 50%; background: #11af66; box-shadow: 0 0 0 4px rgba(17, 175, 102, .18); animation: rgPulse 2s ease-in-out infinite; }
@keyframes rgPulse { 50% { box-shadow: 0 0 0 7px rgba(17, 175, 102, .05); } }
.rg-trust { display: none; }
body.rg-login .rg-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 4px; font-size: 12px; color: #5d7568; }
.rg-trust span { display: inline-flex; align-items: center; gap: 6px; }
.rg-trust svg { color: #11af66; }
@media (prefers-reduced-motion: reduce) { body.rg-login #loginOverlay .login-right::before, body.rg-login #loginOverlay .login-right::after, .rg-dot { animation: none; } }

/* ---------- Ayarlar > Gorunum ---------- */
.rg-prev { display: flex; gap: 10px; height: 132px; max-width: 420px; margin: 4px 0 18px; padding: 10px; border-radius: 16px; background: #eef5f1; border: 1px solid rgba(6, 53, 35, .07); }
.rg-prev-side { width: 86px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: #fff; }
.rg-prev-side i { height: 10px; border-radius: 5px; background: #e2ece6; }
.rg-prev-side i.on { background: linear-gradient(110deg, #16b96b, #078c52); }
.rg-prev-main { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.rg-prev-main > span { height: 16px; border-radius: 8px; background: #fff; }
.rg-prev-main > div:first-of-type { display: flex; gap: 6px; }
.rg-prev-main > div:first-of-type i { flex: 1; height: 22px; border-radius: 7px; background: #fff; }
.rg-prev-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rg-prev-grid i { border-radius: 7px; background: #fff; }
.rg-prev-grid i:nth-child(2), .rg-prev-grid i:nth-child(4) { background: #c7efd9; }
.rg-btn { flex: none; min-height: 38px; padding: 0 16px; border: 0; border-radius: 11px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; color: #fff;
    background: linear-gradient(110deg, #16b96b, #078c52); box-shadow: 0 6px 14px rgba(7, 140, 82, .2); }
.rg-btn.ghost { background: transparent; color: #b42318; box-shadow: none; border: 1.5px solid rgba(180, 35, 24, .3); }
body.dark-mode .rg-prev { background: #17201b; border-color: #26332c; }
body.dark-mode .rg-prev-side, body.dark-mode .rg-prev-main > span, body.dark-mode .rg-prev-main > div:first-of-type i, body.dark-mode .rg-prev-grid i { background: #222e28; }
body.dark-mode .rg-prev-side i { background: #2c3a33; }
body.dark-mode .rg-prev-grid i:nth-child(2), body.dark-mode .rg-prev-grid i:nth-child(4) { background: #1d4a33; }
body.dark-mode .rg-btn.ghost { color: #ff8a80; border-color: rgba(255, 138, 128, .35); }
/* Bazi ekran boyutlarinda menu icindeki span'ler gizleniyor; kullanici karti her zaman gorunur */
body.rg-side .sidebar .rg-user .rg-av { display: grid !important; }
body.rg-side .sidebar .rg-user .rg-ut { display: flex !important; }
