/*--- RESET/NORMALIZE ---*/
/* http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

@font-face {
    font-family: 'JalnanGothic';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_231029@1.1/JalnanGothic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* 인터넷익스플로러 */
    user-select: none;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
pre,
dl,
dd,
blockquote,
input[type="radio"],
input[type="checkbox"] {
    margin: 0
}

legend {
    padding: 0
}

fieldset,
ul,
ol {
    padding: 0;
    margin: 0
}

ul,
ol {
    list-style: none
}

body {
    line-height: 1
}

main,
figure,
figcaption {
    display: block
}

/*--- <main> for IE 11 ---*/
img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

a {
    text-decoration: none
}

a:visited {
    color: #000;
}

fieldset {
    border: 0
}

input,
textarea,
select,
button {
    max-width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit
}

label {
    display: table
}

input {
    -webkit-appearance: none;
}

/* select { -webkit-appearance: none; } */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
    -webkit-appearance: none;
    outline: 0;
}


/*--- for Firefox ---*/
html {
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-size: 1.25em;
}

/*--- optional base font size ---*/
* {
    box-sizing: border-box;
    vertical-align: top;
}

html,
body {
    min-height: 100%;
    height: 100%;
    font-family: 'Pretendard', sans-serif;
    background-color: #fff;
}

/* clears the ‘X’ from Internet Explorer */
input[type=search]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

input[type=search]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

/* clears the ‘X’ from Chrome */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

input[type="date"]::-webkit-datetime-edit {}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {}

input[type="date"]::-webkit-datetime-edit-text {}

input[type="date"]::-webkit-datetime-edit-month-field {}

input[type="date"]::-webkit-datetime-edit-day-field {}

input[type="date"]::-webkit-datetime-edit-year-field {}

input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    padding: 0;
}

*,
*::before,
*::after {
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #d4af37;
    /* Gold/Premium */
    --primary-hover: #c49f27;
    --danger-color: #ff5252;
    --success-color: #4caf50;
    --border-radius: 12px;
    --spacing-unit: 24px;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: var(--spacing-unit);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reserve.container {
    max-width: 400px;
    max-height: 800px;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    background-color: #fff;
    -ms-overflow-style: none;
    /* 인터넷 익스플로러 */
    scrollbar-width: none;
    /* 파이어폭스 */
    scroll-behavior: smooth;
}

.reserve.container::-webkit-scrollbar {
    display: none;
}

.reserve.container .step-container {
    width: 100%;
}

#resStoreGrid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reserve .section_title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
}

#resStoreGrid .selection-btn {

    font-size: 16px;
    padding: 15px 16px;
}

.reserve .step-container h3 {
    color: #000;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-top: 14px;
}

.middle_tit {
    font-size: 16px;
    font-weight: 600;
    margin: 14px 0;
}

.inner_section {
    margin-top: 24px;
    padding-top: 14px;
}


/* 타이포그래피 */
h1,
h2,
h3 {
    margin-bottom: var(--spacing-unit);
    font-weight: 700;
}

p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* 버튼 */
.btn {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    /* Removed transform transition */
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid #333;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

/* 입력 필드 */
.input-display {
    font-size: 2.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    outline: none;
}

/* 키패드 그리드 */
.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.key-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: none;
    padding: 24px;
    font-size: 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.key-btn:active {
    background-color: #333;
}

/* 랜딩 페이지 카드 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.menu-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid #333;
    transition: transform 0.2s, border-color 0.2s;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* 관리자 대시보드 테이블 */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.dashboard-table th {
    color: var(--text-muted);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-WAITING {
    background-color: #333;
    color: #fff;
}

.status-CALLED {
    background-color: var(--primary-color);
    color: #000;
    animation: pulse 2s infinite;
}

.status-COMPLETED {
    background-color: var(--success-color);
    color: #fff;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* --- Admin Dashboard Styles --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.tab-menu {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0;
}

/* Dark theme specific for border */
body:not(.light-theme) .tab-menu {
    border-bottom-color: #333;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 12px 4px;
    font-weight: 500;
    position: relative;
    border-bottom: 2px solid transparent;
    /* Reserve space */
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
    /* Align with container text */
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: #000;
    border-bottom: 3px solid #000;
    /* Matches text (Black/White) */
    font-weight: 800;
}

/* New Badge Style for Tabs (Neutral/Count) */
.tab-count {
    background-color: #f1f3f5;
    color: #495057;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    vertical-align: middle;
}

body:not(.light-theme) .tab-count {
    background-color: #333;
    color: #ccc;
}

/* Pill Style Tabs (Secondary) */
.tab-menu-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    width: 100%;
    border-bottom: none;
}

.tab-menu-pills .tab-btn {
    background-color: #f1f3f5;
    color: #666;
    border: 1px solid transparent;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    transition: all 0.2s;
}

.tab-menu-pills .tab-btn:hover {
    background-color: #e9ecef;
    color: #333;
}

.tab-menu-pills .tab-btn.active {
    background-color: #222;
    color: #fff;
    border-bottom: 1px solid transparent;
    /* Override underline */
    font-weight: 600;
}

/* Adjust badge color inside active pill */
.tab-menu-pills .tab-btn.active .tab-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.section-content {
    display: none;
    width: 100%;
}

.section-content.active {
    display: block;
}

/* Badge for Tabs */
.tab-badge {
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Platform Labels */
.badge-platform {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    display: inline-block;
}

.plat-CASOL {
    background-color: #7B1FA2;
}

/* Purple */
.plat-NAVER {
    background-color: #03C75A;
}

/* Green */
.plat-KAKAO {
    background-color: #FEE500;
    color: #000;
}

/* Yellow */
.plat-PHONE {
    background-color: #757575;
}

/* Gray */



/* --- Reservation Styles --- */
.step-container {
    display: none;
    animation: fadeIn 0.3s;
}

.step-container.active {
    display: block;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.selection-btn {
    background-color: var(--card-bg);
    border: 1px solid #444;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.selection-btn.selected {
    border-color: var(--primary-color);
    background-color: #332b00;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Tablet Register Styles --- */
.counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #555;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.counter-val {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.total-badge {
    background-color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
}

/* --- POS Dashboard Styles --- */
.pos-container {
    max-width: 100%;
    padding: 0;
}

.action-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-right: 5px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
}

.btn-call {
    background-color: var(--primary-color);
    color: #000;
}

.btn-enter {
    background-color: var(--success-color);
    color: #fff;
}

.btn-cancel {
    background-color: #555;
    color: #fff;
}

.tab-btn-main {
    padding: 15px 40px;
    border: none;
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn-main.active {
    background: #000;
    color: #fff;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.btn-black {
    background: #000;
    color: #fff;
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
}

.nav-btn {
    background: #555;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid #ccc;
    background: #fff;
    padding: 5px 15px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
}

.date-cell {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-right: 1px solid #ccc;
    cursor: pointer;
    user-select: none;
}

.date-cell:last-child {
    border-right: none;
}

.date-cell:hover {
    background: #f5f5f5;
}

.date-cell.active {
    background: #000;
    color: #fff;
    font-weight: bold;
}

.date-badge {
    position: absolute;
    top: 2px;
    right: 5px;
    background: #d9534f;
    color: #fff;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 0.7rem;
}

.date-cell.disabled {
    color: #ccc;
    cursor: default;
    background: #e0e0e0;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

.list-table th,
.list-table td {
    padding: 12px;
    border-bottom: 1px solid #ccc;
    text-align: center;
    font-size: 0.9rem;
}

.list-table th {
    background: #f9f9f9;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
}

.manage-link {
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    margin: 0 3px;
    color: #333;
}

.calendar-header-cell {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-right: 1px solid #eee;
}

.calendar-header-cell:last-child {
    border-right: none;
}

.full-date-cell {
    width: 14.28%;
    height: 80px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    padding: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.full-date-cell:nth-child(7n) {
    border-right: none;
}

.full-date-cell:hover {
    background: #f9f9f9;
}

.full-date-cell.active {
    background: #000;
    color: #fff;
}

.full-date-cell.disabled {
    color: #ccc;
    background: #f0f0f0;
    cursor: default;
}

.team-count {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #555;
}

.full-date-cell.active .team-count {
    color: #fff;
}

.edit-mode-active {
    border: 2px solid #e74c3c;
}

/* Light Theme Overrides (POS) */
body.light-theme {
    background: #f0f0f0;
    color: #000;
    overflow: auto;
}

body.light-theme .container {
    max-width: 100%;
    padding: 0;
}

/* --- Admin Redesign Styles (Light Theme) --- */
.admin-body {
    background-color: #f4f6f8;
    color: #333;
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    display: block;
    /* Override global body flex/center */
}

.admin-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    /* Ensure full width */
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    min-width: 250px;
    /* Prevent shrinking */
    flex-shrink: 0;
    /* Prevent shrinking */
    background-color: #fff;
    border-right: 1px solid #ebebeb;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* ... (skip logo/nav items) ... */

/* Main Content */
.admin-main {
    width: calc(100% - 250px);
    /* Explicit width calculation per user request */
    flex: none;
    /* Disable flex-grow/shrink to enforce width */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Hide main scrollbar */
    padding: 0;
    background-color: #f4f6f8;
    min-width: 0;
    height: 100vh;
    /* Ensure full height */
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 32px 0 32px;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-gutter: stable;
    /* Reserve space for scrollbar to prevent layout shift */
    padding: 0 32px 32px 32px;
}

.admin-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 12px 16px;
    border-radius: 12px;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #f9f9f9;
    color: #000;
}

.nav-item.active {
    background-color: #000;
    color: #fff;
}



/* Dashboard Widgets */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.admin-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #fff;
}

.admin-card-large {
    grid-column: span 2;
}

.card-title {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #222;
}

.card-trend {
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.trend-up {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

.trend-down {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

/* Table/List Styles */
.admin-table-container {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 16px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #f9f9f9;
    color: #333;
    font-size: 0.95rem;
}

.btn-sm-primary {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* Store Grid in Admin */
.store-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.store-card-admin {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 120px;
}

.store-card-admin:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.store-name-admin {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
}

.store-status-active {
    align-self: flex-start;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* View Switching Logic */
.section-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Calendar Widget Styles --- */
.calendar-widget {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.calendar-header button {
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 5px 10px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.calendar-day {
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 0.95rem;
    color: white;
    position: relative;
    margin: 2px;
}

.calendar-day:hover:not(.disabled) {
    background-color: #333;
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: black;
    font-weight: bold;
}

.calendar-day.today {
    border: 1px solid var(--primary-color);
}

.calendar-day.disabled {
    color: #444;
    cursor: default;
}

.calendar-day.sunday {
    color: #ff5252;
}

.calendar-day.disabled.sunday {
    color: #522;
}

.calendar-day.saturday {
    color: #448aff;
}

.calendar-day.disabled.saturday {
    color: #224;
}

.reserve.container {
    --text-color: #333;
    color: var(--text-color);
}


.reserve.container .selection-btn {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
    color: #333;
}

.reserve.container .selection-btn:hover {
    background-color: #f5f5f5;
}

.reserve.container .selection-btn.selected {
    border-color: var(--primary-color);
    background-color: #fff9e6;
}


/* Override for Reservation Page Visibility */
.reserve.container .calendar-widget {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.reserve.container .calendar-header h4 {
    color: #333333;
}

.reserve.container .calendar-header button {
    color: #555555;
}

.reserve.container .calendar-weekdays {
    color: #777777;
}

.reserve.container .calendar-day {
    color: #333333;
}

.reserve.container .calendar-day:hover:not(.disabled) {
    background-color: #f1f3f5;
}

.reserve.container .calendar-day.selected {
    background-color: var(--primary-color);
    color: #ffffff;
}

.reserve.container .calendar-day.disabled {
    color: #e0e0e0;
}

.reserve.container .selection-btn {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
}

.reserve.container .selection-btn:hover {
    background-color: #f8f9fa;
    border-color: #999;
}

.reserve.container .selection-btn.selected {
    background-color: #333333;
    color: #ffffff;
    border-color: #333333;
}

/* Day Selector (Toggle Buttons) */
.day-check {
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.day-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.day-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f1f3f5;
    color: #495057;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.day-check:hover .day-btn {
    background-color: #e9ecef;
}

.day-check input:checked+.day-btn {
    background-color: #333;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced Checkbox */
.custom-checkbox {
    width: 24px !important;
    height: 24px !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    display: inline-block !important;
    opacity: 1 !important;
    position: static !important;
    accent-color: #222;
    cursor: pointer;
    vertical-align: middle;
    margin: 0;
}

/* Room Selection Grid */
#roomSelectionGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.room-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    position: relative;
}

.room-card:hover {
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.room-card.selected {
    border-color: #333;
    background-color: #f8f9fa;
    box-shadow: 0 0 0 1px #333;
}

.room-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f1f1;
    border-color: #eee;
    transform: none;
    box-shadow: none;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.room-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.3;
}

.room-badges {
    display: flex;
    gap: 5px;
}

.badge-capacity {
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.room-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.check-icon {
    display: none;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
}

.room-card.selected .check-icon {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
}


/* Admin Product Card Redesign */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    /* Light border */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product-header-strip {
    height: 6px;
    width: 100%;
    background-color: #ddd;
    /* Default inactive */
}

.product-header-strip.active {
    background-color: #2ecc71;
    /* Green for active */
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* align-items: center;  Center alignment removed to match user preference if needed, but text-align center kept */
    text-align: left;
    /* Left align for cleaner read of description */
}

.product-title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.product-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit logic lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.6em;
    /* Reserve space for 3 lines */
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-badge {
    background: #f1f3f5;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
}

.product-meta {
    margin-top: auto;
    width: 100%;
    padding-top: 15px;
    border-top: 1px dotted #f1f1f1;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-actions {
    /* Side panel style in reference? Or bottom buttons */
    /* Reference has vertical buttons on the right? No, standard cards usually bottom. */
    /* Wait, the user's specific reference image 2 has buttons? Not explicitly visible, but typical card pattern. */
    /* I'll put buttons on the right side if using row layout? */
    /* No, I'll stick to bottom actions for vertical card */
    display: flex;
    /* vertical stack on the right? */
    /* Let's try standard bottom actions for now */
    padding: 0;
}

.product-action-btn-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    padding: 10px;
    border-left: 1px solid #eee;
    background: #fcfcfc;
}

/* Redefine card layout to be Row-based to match "Uploaded Image 1" style if that was the "Bad" one?
   Wait, Uploaded Image 1 was the "Bad" one (List style).
   Uploaded Image 2 was "Good" one (Card style).
   So I want Card style. Vertical stack.
*/

.form-group small {
    font-size: 12px;
}

.product-actions-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eee;
}

.product-action-btn {
    padding: 12px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s;
}

.product-action-btn:first-child {
    border-right: 1px solid #eee;
    color: #f39c12;
    /* Edit */
}

.product-action-btn:last-child {
    color: #e74c3c;
    /* Delete */
}

.product-action-btn:hover {
    background: #f9f9f9;
}
/* Sub Tab Buttons (Waiting / History) */
.tab-btn-sub {
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn-sub.active {
    background: #fff;
    color: #000;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* POS Dashboard Container - Full Width */
.pos-container {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f0f0f0;
}
