/* static/style.css */

/* --- CSS Variables (Custom Properties) --- */
:root {
    --primary-color: #a760ff; /* Blue 600 */
    --primary-hover: #d2b0f0; /* Blue 700 */
    --primary-light: #dbeafe; /* Blue 100 */
    --primary-lighter: #eff6ff; /* Blue 50 */
    --primary-border: #93c5fd; /* Blue 300 */

    --secondary-color: #6b7280; /* Gray 500 */
    --secondary-light: #f3f4f6; /* Gray 100 */
    --secondary-dark: #4b5563; /* Gray 600 */


    --danger-color: #ef4444; /* Red 500 */
    --danger-hover: #dc2626; /* Red 600 */
    --danger-light: #fee2e2; /* Red 100 */
    --danger-border: #fca5a5; /* Red 300 */
    --danger-text: #b91c1c;  /* Red 700 */

    --success-color: #22c55e; /* Green 500 */
    --success-light: #dcfce7; /* Green 100 */
    --success-border: #86efac; /* Green 300 */
    --success-text: #15803d;  /* Green 700 */

    --warning-color: #f59e0b; /* Amber 500 */
    --warning-light: #fef3c7; /* Amber 100 */
    --warning-border: #fcd34d; /* Amber 300 */
    --warning-text: #b45309;  /* Amber 700 */

    --info-color: #60a5fa; /* Blue 400 */
    --info-light: var(--primary-light);
    --info-border: var(--primary-border);
    --info-text: #1e40af;  /* Blue 800 */

    --white: #ffffff;
    --text-dark: #1f2937; /* Gray 800 */
    --text-light: #f9fafb; /* Gray 50 */
    --text-muted: #6b7280; /* Gray 500 */
    --border-color: #e5e7eb; /* Gray 200 */
    --border-radius: 0.375rem; /* 6px */
    --box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* --- Global Styles & Resets --- */

/* --- Enhanced Store Page Styles --- */
.enhanced-store-hero {
    text-align: center;
    margin: 2rem 0 2.5rem 0;
    background: var(--primary-lighter);
    padding: 2rem 1rem 2rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.store-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 380px;
    max-height: 380px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 0;
    border: 3px solid var(--primary-color);
    background: var(--white);
    box-shadow: none;
    object-fit: contain;
    padding: 6px;
}
.store-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.store-description {
    font-size: 1.2rem;
    color: var(--secondary-dark);
    margin-bottom: 1.5rem;
}
.store-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.store-detail {
    background: var(--white);
    border: 1px solid var(--primary-border);
    border-radius: var(--border-radius);
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 0.04);
    margin-bottom: 0.5rem;
    width: fit-content;
}
.detail-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.3rem;
}
.detail-value {
    color: var(--text-dark);
}

.detail-item:not(:last-child) {
    margin-bottom: 0.5rem;
}

.enhanced-booking-form {
    margin-top: 2.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.booking-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

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

html {
    font-size: 16px; /* Base font size */
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--secondary-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
}

/* --- Font Loading --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Layout Containers --- */
.logo-image-login {text-align: center;
}
.logo-image-login {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}

.container {
    width: 100%;
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.main-content {
    flex-grow: 1;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* --- Basic Elements --- */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}
h1 { font-size: 1.875rem; } /* ~text-3xl */
h2 { font-size: 1.5rem; }   /* ~text-2xl */
h3 { font-size: 1.25rem; }  /* ~text-xl */

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* --- Utility Classes --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Navigation Bar --- */
.main-nav {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100; /* Ensure nav stays above other content, especially dropdown */
    padding: 0 1rem;
}

.nav-container {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Brand on left, menu area on right */
    height: 4rem; /* Standard nav height */
}

.nav-brand a {
    font-weight: 700; /* Bold brand name */
    font-size: 1.125rem; /* Slightly smaller for better balance */
    color: var(--text-light);
    display: inline-flex; /* For aligning icon and text */
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
    padding: 0.5rem 0; /* Vertical padding for click area */
}
.nav-brand a:hover {
    color: #dbeafe; /* Lighter blue on hover */
    text-decoration: none;
}

/* *** NEW: Container for User Pic and Menu Button *** */
.nav-user-menu-area {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Space between pic and menu button */
    margin-left: auto; /* Pushes the whole area to the right */
}

/* *** NEW: Style for User Picture in Nav *** */
.nav-user-pic {
    width: 32px; /* Small size */
    height: 32px;
    border-radius: 50%; /* Make it round */
    overflow: hidden; /* Clip image to circle */
    background-color: var(--primary-light); /* Fallback background */
    border: 1px solid var(--primary-border);
    display: flex; /* Center placeholder icon */
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent pic from shrinking */
}
.nav-user-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scale image nicely */
}
.nav-user-pic .default-user-pic-svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color); /* Color for the default icon */
}


/* Nav Menu Button and Dropdown */
.nav-menu-container { 
    position: relative; 
}

.nav-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.nav-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-menu-text {
    line-height: 1;
}

.nav-menu-chevron {
    width: 1.25em;
    height: 1.25em;
    transition: transform 0.2s ease-in-out;
}

.nav-menu-chevron.rotate-180 {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border: 1px solid var(--border-color);
    z-index: 110;
    min-width: 220px;
    padding: 0.5rem 0;
    list-style: none;
}

[x-cloak] { 
    display: none !important; 
}
.nav-dropdown-item { display: block; padding: 0.6rem 1.2rem; font-size: 0.9rem; color: var(--text-dark); text-decoration: none; transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out; white-space: nowrap; }
.nav-dropdown-item:hover, .nav-dropdown-item.active { background-color: var(--primary-lighter); color: var(--primary-color); text-decoration: none; }
.nav-dropdown-item.logout { color: var(--danger-color); }
.nav-dropdown-item.logout:hover { background-color: var(--danger-light); color: var(--danger-hover); }
.nav-dropdown-divider { height: 1px; background-color: var(--border-color); margin: 0.5rem 0; }
.nav-dropdown-user-info { padding: 0.6rem 1.2rem; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border-color); margin-top: 0.5rem; }

/* Notification styles */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border: 1px solid var(--border-color);
    z-index: 110;
    min-width: 280px;
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.notification-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.notification-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.mark-all-read-btn {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.1s ease-in-out;
}

.mark-all-read-btn:hover {
    background-color: var(--primary-lighter);
    text-decoration: none;
}

.notification-list {
    max-height: 250px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background-color 0.1s ease-in-out;
}

.notification-item:hover {
    background-color: var(--primary-lighter);
    text-decoration: none;
}

.notification-item.unread {
    background-color: rgba(59, 130, 246, 0.05);
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notification-title {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-notifications {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.notification-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.see-all-link {
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.see-all-link:hover {
    background-color: var(--primary-lighter);
    text-decoration: none;
}

/* Notification page styles */
.notification-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.notification-page-header h1 {
    margin: 0;
}

.notification-list-page {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
}


/* --- Buttons --- */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.2rem; border: 1px solid transparent; border-radius: var(--border-radius); font-size: 0.9rem; font-weight: 500; line-height: 1.25; text-align: center; cursor: pointer; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; white-space: nowrap; }
.button:focus { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4); }
.button:disabled { opacity: 0.6; cursor: not-allowed; }
.button-primary { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.button-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); text-decoration: none; color: var(--white); }


/* --- Flash Messages --- */
.flash-messages { margin-top: 1rem; margin-bottom: 0; }
.flash-message { padding: 0.8rem 1rem; border-radius: var(--border-radius); margin-bottom: 0.75rem; border: 1px solid transparent; font-weight: 500; font-size: 0.9rem; position: relative; padding-right: 2.5rem; }
.flash-danger { background-color: var(--danger-light); border-color: var(--danger-border); color: var(--danger-text); }
.flash-success { background-color: var(--success-light); border-color: var(--success-border); color: var(--success-text); }
.flash-warning { background-color: var(--warning-light); border-color: var(--warning-border); color: var(--warning-text); }
.flash-info { background-color: var(--info-light); border-color: var(--info-border); color: var(--info-text); }
.flash-message p { margin: 0; }
.flash-close { position: absolute; top: 50%; right: 0.5rem; transform: translateY(-50%); background: transparent; border: none; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: 0.6; padding: 0.25rem; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; transition: opacity 0.2s, background-color 0.2s; }
.flash-close:hover { opacity: 1; background-color: rgba(0,0,0,0.05); }

/* --- Forms --- */
.form-wrapper { display: flex; justify-content: center; align-items: flex-start; padding: 1rem; flex-grow: 1; }
.form-container { background-color: var(--white); padding: 1.5rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); border: 1px solid var(--border-color); width: 100%; max-width: 448px; }
.form-container-sm { max-width: 384px; }
.form-title { text-align: center; margin-bottom: 1.25rem; color: var(--text-dark); font-size: 1.5rem; font-weight: 600; }
.form-description { text-align: center; color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--secondary-dark); margin-bottom: 0.3rem; }
.form-input, select.form-input, textarea.form-input { display: block; width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #d1d5db; border-radius: var(--border-radius); background-color: var(--white); color: var(--text-dark); font-size: 1rem; line-height: 1.5; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
.form-input:focus, select.form-input:focus, textarea.form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); }
textarea.form-input { min-height: 80px; }
.form-button-wrapper { margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: flex-end; }
.form-button-wrapper .button { width: auto; }
.form-link { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.form-link a { font-weight: 500; color: var(--primary-color); }
.form-link a:hover { color: var(--primary-hover); }

/* --- Content Card --- */
.content-card { background-color: var(--white); padding: 1.5rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); border: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.content-card h1, .content-card h2 { margin-bottom: 1rem; color: var(--text-dark); }
.content-card p { color: var(--text-muted); font-size: 0.95rem; }
.content-card p.highlight { color: var(--text-dark); font-size: 1.1rem; font-weight: 500; }

/* --- Dashboard Quick Links --- */
.quick-links-grid { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.quick-link-card { display: block; padding: 1rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.1s ease-in-out; text-decoration: none; }
.quick-link-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.quick-link-card h3 { font-weight: 600; margin-bottom: 0.25rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.quick-link-card p { font-size: 0.875rem; margin-bottom: 0; color: var(--text-muted); }
.quick-link-card.blue { background-color: var(--primary-lighter); border-color: var(--primary-border); } .quick-link-card.blue:hover { background-color: var(--primary-light); } .quick-link-card.blue h3 { color: #1d4ed8; } .quick-link-card.blue p { color: #2563eb; }
.quick-link-card.green { background-color: #f0fdf4; border-color: #bbf7d0; } .quick-link-card.green:hover { background-color: #dcfce7; } .quick-link-card.green h3 { color: #15803d; } .quick-link-card.green p { color: #16a34a; }
.quick-link-card.yellow { background-color: #fefce8; border-color: #fde68a; } .quick-link-card.yellow:hover { background-color: #fef3c7; } .quick-link-card.yellow h3 { color: #a16207; } .quick-link-card.yellow p { color: #ca8a04; }
.quick-link-card.gray { background-color: var(--secondary-light); border-color: #d1d5db; } .quick-link-card.gray:hover { background-color: #e5e7eb; } .quick-link-card.gray h3 { color: #374151; } .quick-link-card.gray p { color: var(--secondary-color); }
.quick-link-card.red { background-color: var(--danger-light); border-color: var(--danger-border); } .quick-link-card.red:hover { background-color: #fee2e2; } .quick-link-card.red h3 { color: var(--danger-text); } .quick-link-card.red p { color: var(--danger-color); }
.quick-link-card.pink { background-color: #fdf2f8; border-color: #fbcfe8; } .quick-link-card.pink:hover { background-color: #fce7f3; } .quick-link-card.pink h3 { color: #be185d; } .quick-link-card.pink p { color: #db2777; }
.quick-link-card.purple { background-color: #faf5ff; border-color: #e9d5ff; } .quick-link-card.purple:hover { background-color: #f3e8ff; } .quick-link-card.purple h3 { color: #7e22ce; } .quick-link-card.purple p { color: #9333ea; }
.quick-link-card.orange { background-color: #fff7ed; border-color: #fed7aa; } .quick-link-card.orange:hover { background-color: #ffedd5; } .quick-link-card.orange h3 { color: #c2410c; } .quick-link-card.orange p { color: #ea580c; }
.quick-link-card.teal { background-color: #f0fdfa; border-color: #99f6e4; } .quick-link-card.teal:hover { background-color: #ccfbf1; } .quick-link-card.teal h3 { color: #0f766e; } .quick-link-card.teal p { color: #0d9488; }


/* --- Tables --- */
.table-container { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow); margin-top: 1rem; background-color: var(--white); }
.data-table { width: 100%; min-width: 600px; font-size: 0.875rem; text-align: left; color: var(--text-muted); border-collapse: collapse; }
.data-table thead { font-size: 0.75rem; color: var(--secondary-dark); text-transform: uppercase; background-color: var(--secondary-light); border-bottom: 2px solid var(--border-color); }
.data-table th, .data-table td { padding: 0.75rem 1rem; vertical-align: middle; white-space: nowrap; }
.data-table td.wrap-text { white-space: normal; }
.data-table tbody tr { border-bottom: 1px solid var(--border-color); transition: background-color 0.1s ease-in-out; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background-color: #f9fafb; }
.table-placeholder td { text-align: center; padding: 1.5rem 1rem; color: var(--text-muted); font-style: italic; }

/* --- Placeholder Page --- */
.placeholder-content { text-align: center; padding: 2rem 0; }
.placeholder-content .button { margin-top: 1.5rem; }

/* --- Footer --- */
.main-footer { background-color: #e5e7eb; color: var(--text-muted); text-align: center; font-size: 0.875rem; padding: 1rem 0; margin-top: auto; border-top: 1px solid var(--border-color); }
.main-footer p { margin: 0; }

/* --- Checkout Page Styles --- */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.checkout-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.checkout-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.checkout-form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.checkout-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.checkout-form-section h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1.5rem 0 1rem;
    color: var(--secondary-dark);
}

.item-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    background-color: var(--white);
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--primary-light);
}

.item-list::-webkit-scrollbar {
    width: 6px;
}

.item-list::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 3px;
}

.item-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.item-list li {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.item-list li:hover {
    background-color: var(--primary-lighter);
}

.item-list li input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.5rem;
    cursor: pointer;
}

.item-list li label {
    flex-grow: 1;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    color: var(--text-dark);
}

.item-list li .item-price-display {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    background: var(--primary-lighter);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.results-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, #f8f9ff 100%);
    border: 1px solid var(--primary-border);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.results-section h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.results-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.results-table {
    width: 100%;
    max-width: 500px;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.results-table td {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.results-table .total-row td {
    font-size: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 2px solid var(--primary-border);
    color: var(--primary-color);
    font-weight: 700;
}

.results-dog-service-info {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.results-dog-service-info strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.results-dog-service-info ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 0 0;
}

.results-dog-service-info ul li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.results-dog-service-info ul li::before {
    content: '✓';
    color: var(--success-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.checkout-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.checkout-buttons .button {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-buttons .button i {
    font-size: 1.2em;
}

.checkout-buttons .button-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.checkout-buttons .button-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.checkout-buttons .button-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.checkout-buttons .button-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 2rem;
    background: var(--primary-lighter);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkout-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .checkout-buttons .button {
        width: 100%;
    }
    
    .results-section {
        padding: 1.5rem;
    }
}

/* --- Responsive Design --- */
/* Medium screens (tablets, small laptops) - 768px and up */
@media (min-width: 768px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .main-content { padding-top: 2rem; padding-bottom: 2.5rem; }
    .form-wrapper { padding: 2rem; }
    .form-container { padding: 2rem; }
    .form-button-wrapper .button { width: auto; }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .data-table th, .data-table td { white-space: normal; }
}
/* Large screens (desktops) - 1024px and up */
@media (min-width: 1024px) {
     .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-brand a { font-size: 1.25rem; }
}
/* Extra large screens - 1280px and up (optional) */
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* Simple scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #aab; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #889; }

/* --- Notification Popup & Reminder Modal --- */
.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 9000;
    overflow: hidden;
}

.notification-popup-content {
    display: flex;
    flex-direction: column;
}

.notification-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--primary-lighter);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.notification-popup-body {
    padding: 15px;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
}

.notification-popup-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    background-color: #f9fafb;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
}

.btn-small {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    transition: all 0.2s;
}

.btn-small:hover {
    background-color: var(--primary-lighter);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Reminder Modal */
.reminder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reminder-modal-content {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.reminder-modal-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
}

.btn-primary {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Responsive Table Styles & Mobile Fixes */
@media (max-width: 768px) {
    /* Responsive Table Transformation */
    .data-table, .store-table, .appointments-table, .table, .log-table, .receipt-table, .user-table, .system-info-table, .report-table, .permissions-table, .history-table, .result-table {
        display: block;
        width: 100%;
        min-width: 0 !important; /* Override fixed min-widths */
    }

    .data-table thead, .store-table thead, .appointments-table thead, .table thead, .log-table thead, .receipt-table thead, .user-table thead, .system-info-table thead, .report-table thead, .permissions-table thead, .history-table thead, .result-table thead {
        display: none;
    }

    .data-table tbody, .store-table tbody, .appointments-table tbody, .table tbody, .log-table tbody, .receipt-table tbody, .user-table tbody, .system-info-table tbody, .report-table tbody, .permissions-table tbody, .history-table tbody, .result-table tbody {
        display: block;
        width: 100%;
    }

    .data-table tr, .store-table tr, .appointments-table tr, .table tr, .log-table tr, .receipt-table tr, .user-table tr, .system-info-table tr, .report-table tr, .permissions-table tr, .history-table tr, .result-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        background: var(--white);
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        padding: 0;
        overflow: hidden;
    }

    .data-table td, .store-table td, .appointments-table td, .table td, .log-table td, .receipt-table td, .user-table td, .system-info-table td, .report-table td, .permissions-table td, .history-table td, .result-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--border-color);
        min-height: 3rem;
        font-size: 0.95rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .data-table td:last-child, .store-table td:last-child, .appointments-table td:last-child, .table td:last-child, .log-table td:last-child, .receipt-table td:last-child, .user-table td:last-child, .system-info-table td:last-child, .report-table td:last-child, .permissions-table td:last-child, .history-table td:last-child, .result-table td:last-child {
        border-bottom: none;
    }

    .data-table td::before, .store-table td::before, .appointments-table td::before, .table td::before, .log-table td::before, .receipt-table td::before, .user-table td::before, .system-info-table td::before, .report-table td::before, .permissions-table td::before, .history-table td::before, .result-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: auto;
        color: var(--secondary-dark);
        flex-shrink: 0;
        max-width: 40%;
        word-break: break-word;
    }

    /* Specific fix for Actions column */
    td[data-label="Actions"] {
        display: block;
        text-align: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
        background-color: var(--primary-lighter);
    }
    td[data-label="Actions"]::before {
        display: none;
    }
    td[data-label="Actions"] > div {
        justify-content: center !important;
        flex-wrap: wrap;
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    /* Directory Action Links fix */
    .action-links {
        justify-content: flex-start !important;
        flex-shrink: 1 !important;
        flex-wrap: wrap !important;
        width: 100%;
        margin-top: 0.5rem;
    }

    .action-links a, .action-links form, .action-links .button {
        margin-bottom: 0.5rem;
    }

    /* Ensure forms in tables don't break layout */
    td form {
        display: inline-block;
        margin: 0;
    }
}

/* --- Notification Icon Styles --- */
.nav-notification {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-notification-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.nav-notification-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.1rem 0.35rem;
    border-radius: 9999px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* --- Estimated Total --- */
.estimated-total {
    width: 100%;
    text-align: right;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Mobile Nav Brand Fix --- */
@media (max-width: 768px) {
    .nav-brand a {
        font-size: 0.75rem;
        line-height: 1.1;
        gap: 0.25rem;
    }
    .nav-menu-text {
        display: none;
    }
    .nav-menu-button {
        padding: 0.5rem;
    }
}
