/* ================================================
   GLOBAL BRANDING (Chowman Theme)
================================================== */

:root {
    --primary: #C30010;
    --secondary: #000000;
    --accent: #D4AF37;
    --bg-light: #fafafa;
    --card-bg: #ffffff;
    --text-dark: #222;
    --radius: 10px;
    --shadow: 0 4px 14px rgba(0,0,0,0.08);
}

body.main-body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ================================================
   HEADER
================================================== */
.top-header {
    background: var(--secondary);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 34px;
}

.brand-title {
    font-size: 22px;
    font-weight: 600;
}

.top-nav .btn-ghost {
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
}

.nav-user-tag {
    margin-right: 12px;
    font-weight: 500;
}

/* ================================================
   LAYOUT
================================================== */
.content-area {
    padding: 20px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 18px;
}

/* ================================================
   CARDS
================================================== */
.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

/* ================================================
   FORMS
================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-row input,
.form-control,
select {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    padding: 10px 20px;
    color: white;
    border-radius: var(--radius);
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #a6000c;
}

.alert-error {
    background: #ffdddd;
    color: #b10000;
    padding: 12px;
    border-radius: var(--radius);
}

/* ================================================
   TABLES
================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.table th {
    background: var(--secondary);
    color: white;
    text-align: left;
}

/* ================================================
   FOOTER
================================================== */
.main-footer {
    text-align: center;
    padding: 14px;
    margin-top: 40px;
    background: var(--secondary);
    color: white;
    font-size: 14px;
}
/* ================================================
   LOGIN PAGE
================================================== */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.login-card {
    background: var(--secondary);
    color: white;
    padding: 30px;
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-icon {
    width: 60px;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.login-form .form-group label {
    float: left;
    font-weight: 500;
    margin-bottom: 6px;
}

.login-form input {
    background: #ffffff;
    border: none;
}

.login-btn {
    width: 100%;
    margin-top: 10px;
}

.login-note {
    font-size: 12px;
    margin-top: 20px;
    opacity: 0.7;
}
.section-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.card h3 {
    margin-top: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

/* ================================================
   RESTAURANT PROFILE + TABS
================================================== */

.restaurant-profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.restaurant-profile-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.restaurant-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.restaurant-logo-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 22px;
}

.restaurant-profile-right {
    display: flex;
    gap: 12px;
}

.stat-box {
    background: #111;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 110px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
}

/* TABS */

.tabs-container {
    margin-top: 24px;
}

.tabs-container input[type="radio"] {
    display: none;
}

.tabs-labels {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.tabs-labels label {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border-bottom: 3px solid transparent;
}

#tab-overview:checked ~ .tabs-labels label[for="tab-overview"],
#tab-outlets:checked ~ .tabs-labels label[for="tab-outlets"],
#tab-managers:checked ~ .tabs-labels label[for="tab-managers"],
#tab-loyalty:checked ~ .tabs-labels label[for="tab-loyalty"] {
    color: var(--primary);
    border-color: var(--primary);
}

.tabs-panels .tab-panel {
    display: none;
}

#tab-overview:checked ~ .tabs-panels #panel-overview,
#tab-outlets:checked ~ .tabs-panels #panel-outlets,
#tab-managers:checked ~ .tabs-panels #panel-managers,
#tab-loyalty:checked ~ .tabs-panels #panel-loyalty {
    display: block;
}

.overview-list {
    list-style: none;
    padding-left: 0;
}

.overview-list li {
    margin-bottom: 6px;
}

.manager-list {
    list-style: none;
    padding-left: 0;
}

.manager-list li {
    margin-bottom: 10px;
}
