/* =========================================
   Root Variables
========================================= */
:root {
    --bg-light: #f4f6f9;
    --bg-dark: #121212;
    --text-light: #222;
    --text-dark: #f5f5f5;
    --card-light: #ffffff;
    --card-dark: #1e1e1e;

    --primary: #2563eb;
    --primary-dark: #1e40af;
    --gray-100: #f9fafb;
    --gray-200: #f3f4f6;
    --gray-300: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
}

/* =========================================
   Global Reset & Base
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    padding: 40px 20px;
}

/* =========================================
   Header
========================================= */
header {
    background-color: #1e293b;
    color: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.4rem;
    font-weight: 700;
}

header nav a {
    color: #cbd5f5;
    margin-left: 1.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

header nav a:hover {
    color: #fff;
}

/* =========================================
   Layout
========================================= */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

/* =========================================
   Notification Badge
========================================= */
.notif-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-badge .notif-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
}

.notif-badge.unread .notif-icon {
    color: red;
}

/* =========================================
   Typography
========================================= */
h2, h3 {
    margin-bottom: 12px;
    color: #1f2937;
}

h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.3rem;
    margin-top: 30px;
}

p {
    margin-bottom: 16px;
    color: #4b5563;
}

.welcome {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

hr {
    border: none;
    border-top: 1px solid var(--gray-300);
    margin: 32px 0;
}

/* =========================================
   Links
========================================= */
a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* =========================================
   Forms & Tables Containers
========================================= */
form,
table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    margin-top: 16px;
}

/* =========================================
   Forms
========================================= */
label {
    display: block;
    font-weight: 600;
    margin: 14px 0 6px;
    color: var(--gray-700);
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
    resize: vertical;
}

input[type="submit"],
button[type="submit"] {
    margin-top: 18px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

input[type="submit"]:active,
button[type="submit"]:active {
    transform: translateY(1px);
}

/* =========================================
   Tables
========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table th,
table td {
    padding: 12px 14px;
    text-align: left;
}

table th {
    background-color: var(--gray-200);
    font-weight: 700;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
}

table tr:not(:last-child) td {
    border-bottom: 1px solid var(--gray-300);
}

table tr:hover {
    background-color: var(--gray-100);
}

/* =========================================
   Status / Utility
========================================= */
.status-open { color: #059669; font-weight: 600; }
.status-closed { color: #dc2626; font-weight: 600; }
.priority-high { color: #dc2626; font-weight: 700; }
.priority-medium { color: #d97706; font-weight: 600; }
.priority-low { color: #059669; }

/* =========================================
   Services Grid
========================================= */
.services-grid,
.admindashboard {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admindashboard {
    grid-template-columns: repeat(auto-fit, minmax(280px, 3fr));
}

.service-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.service-box h3 {
    margin-top: 0;
    font-size: 22px;
    color: #222;
}

.service-box p {
    color: #555;
    line-height: 1.5;
}

/* =========================================
   Tabs
========================================= */
.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab {
    padding: 10px 20px;
    background: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    background: var(--primary);
    color: white;
}

.services-grid.active {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

/* =========================================
   Images / Cards
========================================= */
.menu-card {
    text-align: center;
    margin: 30px auto;
    max-width: 400px;
}

.owner3-img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.owner-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 10px;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 2fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    table {
        font-size: 0.85rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}