:root {
    --primary-color: #ff0000; /* Red */
    --primary-dark: #cc0000;
    --text-main: #212121;
    --text-light: #666666;
    --bg-color: #ffffff;
    --section-bg: #fdfdfd;
    --footer-bg: #212121;
    --border-color: #e5e5e5;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Red Pill Button */
.btn-red {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-red:hover {
    background: var(--primary-dark);
}

.section-padding {
    padding: 80px 0;
}

/* --- Header --- */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}
.main-nav a.active {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.header-controls {
    display: flex;
    gap: 25px;
    align-items: center;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
}
.control-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
    color: var(--text-main);
}
.cart-btn-wrapper {
    position: relative;
}
.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- Banner --- */
.banner {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('../../images/food_1.jpg') center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
}
.banner-content {
    max-width: 600px;
}
.banner h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- About Section --- */
.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-images {
    flex: 1;
    position: relative;
    height: 400px;
}
.about-images img {
    border-radius: 10px;
    position: absolute;
    box-shadow: var(--shadow-sm);
}
.about-img-1 {
    width: 80%;
    height: 80%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}
.about-img-2 {
    width: 50%;
    height: 50%;
    object-fit: cover;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 5px solid #fff;
}
.about-content {
    flex: 1;
}
.sub-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}
.about-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* --- Menu Section --- */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.menu-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    position: relative;
    background: #fff;
}
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.menu-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.menu-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}
.menu-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-right: 40px;
}
.add-to-cart {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.add-to-cart:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* --- Footer --- */
.main-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 70px 0 20px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.footer-logo i {
    color: var(--primary-color);
}
.footer-text {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials i {
    color: white;
    cursor: pointer;
}
.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.85rem;
}

/* Reuse cart sidebar from previous */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.4s;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; }
.close-btn { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-summary { padding: 20px; border-top: 1px solid var(--border-color); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; pointer-events: none; transition: 0.3s; }
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.cart-item-details { flex-grow: 1; }
.cart-item-title { font-weight: 600; margin-bottom: 5px; }
.cart-item-price { color: var(--primary-color); font-weight: 500; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-btn { background: #f5f5f5; border: none; width: 25px; height: 25px; border-radius: 50%; cursor: pointer; }

/* Floating Cart */
.floating-cart {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 30px 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: -2px 5px 15px rgba(255, 0, 0, 0.3);
    z-index: 900;
    transition: 0.3s;
}
.floating-cart:hover {
    width: 70px;
}
.floating-badge {
    position: absolute;
    top: 5px;
    right: 15px;
    background: white;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Us Boxes */
.contact-box {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.contact-box i {
    font-size: 2rem;
    color: var(--text-main);
}
.contact-box div {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Category Cards */
.category-card {
    min-width: 160px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.category-card.active {
    border-color: var(--primary-color);
}
.category-card.active .cat-title {
    color: var(--primary-color);
}
.cat-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}
.cat-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}
.cat-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Authentication Pages */
.auth-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    min-height: 600px;
}
.auth-image-box {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.auth-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth-image-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: white;
}
.auth-image-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.auth-image-text p {
    font-size: 1.1rem;
    line-height: 1.5;
}
.auth-form-box {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.input-with-icon {
    position: relative;
}
.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}
.input-with-icon input:focus {
    border-color: var(--primary-color);
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #aaa;
    font-size: 0.9rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}
.auth-divider span {
    padding: 0 10px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}
.social-btn:hover {
    background: #e2e6ea;
}

/* Header Dropdown */
.dropdown-wrapper {
    position: relative;
    cursor: pointer;
}
.dropdown-wrapper:hover .dropdown-menu {
    display: block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1000;
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
}
.dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* Admin Login Styles */
.admin-login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: -10px;
    z-index: 1;
}
.admin-login-tabs button {
    background: #e1e3e7;
    border: none;
    padding: 10px 20px;
    color: #666;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-weight: 500;
}
.admin-login-tabs button.active {
    background: #7367f0;
    color: white;
}
.admin-login-box {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid #7367f0;
    position: relative;
    z-index: 2;
}
.admin-title {
    color: #7367f0;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}
.admin-input-group {
    margin-bottom: 20px;
}
.admin-input-group label {
    display: block;
    color: #888;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.admin-input-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    font-size: 1.1rem;
    color: #333;
    outline: none;
}
.admin-input-group input:focus {
    border-bottom-color: #7367f0;
}
.btn-admin {
    background: #7367f0;
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}
.admin-roles {
    margin-top: 30px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.admin-roles button {
    background: #7367f0;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
}
.floating-questions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28c76f;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(40, 199, 111, 0.4);
}

/* PIN Login Styles */
.pin-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}
.pin-box {
    width: 60px;
    height: 60px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 2rem;
    text-align: center;
    color: #333;
    outline: none;
    transition: 0.2s;
}
.pin-box:focus {
    border-color: #7367f0;
    box-shadow: 0 0 8px rgba(115, 103, 240, 0.3);
}

/* Admin Dashboard Specific Styles */
.admin-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.metric-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.metric-card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}
.metric-card h5 {
    margin: 5px 0 0;
    font-size: 1.5rem;
    color: #333;
}
.metric-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.admin-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}
.admin-col-8 {
    flex: 0 0 calc(66.666% - 10px);
}
.admin-col-6 {
    flex: 0 0 calc(50% - 10px);
}
.admin-col-4 {
    flex: 0 0 calc(33.333% - 10px);
}
.mt-20 {
    margin-top: 20px;
}
.box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    overflow: hidden;
}
.box-info {
    border-top: 3px solid #7367f0;
}
.box-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f4f4f4;
}
.box-title {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}
.box-body {
    padding: 20px;
    overflow-x: auto;
}
.box-body.p-0 {
    padding: 0;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f4f4f4;
    text-align: left;
    font-size: 0.9rem;
}
.admin-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
}

/* Sidebar Layout Overhaul */
.admin-body {
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.admin-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

/* Custom Scrollbar for Sidebar */
.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}
.admin-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* Collapsed State & Hover Reveal */
.admin-sidebar.collapsed {
    width: 75px;
}
.admin-sidebar.collapsed:hover {
    width: 240px;
    position: absolute;
    height: 100vh;
    box-shadow: 5px 0 15px rgba(0,0,0,0.05);
}
.admin-sidebar.collapsed .logo-text,
.admin-sidebar.collapsed .sidebar-section,
.admin-sidebar.collapsed .sidebar-menu li a span,
.admin-sidebar.collapsed .sidebar-menu li a .right-icon {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    width: 0;
}
.admin-sidebar.collapsed:hover .logo-text,
.admin-sidebar.collapsed:hover .sidebar-section,
.admin-sidebar.collapsed:hover .sidebar-menu li a span,
.admin-sidebar.collapsed:hover .sidebar-menu li a .right-icon {
    opacity: 1;
    visibility: visible;
    width: auto;
}
.admin-sidebar.collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 12px 0;
}
.admin-sidebar.collapsed:hover .sidebar-menu li a {
    justify-content: flex-start;
    padding: 12px 20px;
}
.admin-sidebar .sidebar-menu li a i:first-child {
    min-width: 25px; /* Keeps icons aligned */
}
.admin-sidebar.collapsed .sidebar-menu li a i:first-child {
    min-width: auto;
    font-size: 1.2rem;
}
.admin-sidebar.collapsed:hover .sidebar-menu li a i:first-child {
    min-width: 25px;
    font-size: 1rem;
}
.sidebar-logo {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-toggle {
    color: #7367f0;
    cursor: pointer;
    font-size: 1.2rem;
}
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}
.sidebar-section {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.sidebar-menu li a:hover {
    color: #7367f0;
    background: #f8f9fa;
}
.sidebar-menu li a.active {
    color: #7367f0;
    font-weight: 600;
    background: rgba(115, 103, 240, 0.05);
    border-right: 3px solid #7367f0;
}
.sidebar-menu li a i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
}
.sidebar-menu li a .right-icon {
    margin-left: auto;
    font-size: 0.8rem;
    color: #ccc;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.admin-top-header {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.header-left-actions, .header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.quick-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    border: none;
    background: rgba(115, 103, 240, 0.1);
    color: #7367f0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-btn {
    border: none;
    background: rgba(115, 103, 240, 0.1);
    color: #7367f0;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}
.admin-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee;
}
.admin-name-role {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.admin-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}
.admin-role {
    font-size: 0.8rem;
    color: #888;
}
.admin-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Content Body */
.content-body {
    padding: 20px;
    flex: 1;
    overflow-x: hidden;
}
.admin-top-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.admin-top-tabs button {
    flex: 1;
    padding: 12px;
    background: #f3f2fa;
    border: none;
    border-radius: 6px;
    color: #7367f0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-top-tabs button.active, .admin-top-tabs button:hover {
    background: #e6e4f7;
}

/* Profile Card & Table Layout */
.admin-col-profile {
    flex: 0 0 230px;
}
.admin-col-sales {
    flex: 1;
    min-width: 0; /* Prevents flex children from overflowing */
}
.profile-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    padding: 20px;
}
.profile-card-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.profile-card-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.profile-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}
.profile-card-header p {
    margin: 5px 0 0;
    color: #777;
    font-size: 0.9rem;
}
.profile-links {
    list-style: none;
    padding: 20px 0 0;
    margin: 0;
}
.profile-links li {
    margin-bottom: 15px;
}
.profile-links li:last-child {
    margin-bottom: 0;
}
.profile-links a {
    display: flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
}
.profile-links a i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.03);
    padding: 8px;
    border-radius: 50%;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    flex-wrap: wrap;
    gap: 10px;
}
.entries-select select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.export-buttons {
    display: flex;
    gap: 5px;
}
.export-buttons button {
    background: #fff;
    border: 1px solid #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}
.export-buttons button:hover {
    background: #f4f4f4;
}
.recent-sales-table {
    margin: 0;
}
.recent-sales-table th {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
}
.recent-sales-table td {
    padding: 12px 10px;
    vertical-align: middle;
}
.text-purple { color: #7367f0; font-weight: 500; }
.text-gray { color: #777; font-size: 0.9rem; }

/* Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #777;
}
.pagination-controls {
    display: flex;
    gap: 5px;
}
.btn-page {
    padding: 5px 12px;
    border: none;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
}
.btn-page.active {
    background: #7367f0;
    color: #fff;
}
.btn-page.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer & Floating */
.admin-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.9rem;
}
.floating-questions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28c76f;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(40,199,111,0.3);
    cursor: pointer;
    z-index: 1000;
}

/* New Dashboard Styles */
.dash-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.dash-metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-bottom: 20px; }
.dash-metric-card { background: #fff; border-radius: 12px; padding: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.metric-icon-small { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.dash-chart-tabs button { padding: 6px 15px; border: none; background: #f3f2fa; color: #7367f0; cursor: pointer; border-radius: 4px; margin-left: 5px; font-weight: 500; }
.dash-chart-tabs button.active { background: #7367f0; color: #fff; }
.dash-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quick-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ql-btn { background: #f8f7fa; border: none; padding: 12px 10px; border-radius: 8px; color: #7367f0; font-weight: 500; display: flex; align-items: center; justify-content: flex-start; gap: 10px; cursor: pointer; font-size: 0.85rem; text-align: left; transition: background 0.2s; }
.ql-btn:hover { background: #e6e4f7; }
.ql-btn i { font-size: 1rem; width: 20px; text-align: center; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { padding: 12px 10px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 0.85rem; }
.dash-table th { background: #f3f3f9; color: #333; font-weight: 600; border-bottom: none; border-radius: 4px; }
.dash-date-input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #555; }
.dash-search-btn { padding: 8px 15px; background: #e6e4f7; border: none; border-radius: 6px; color: #7367f0; cursor: pointer; transition: background 0.2s; }
.dash-search-btn:hover { background: #d4d1f2; }


/* Attendance Styles */
.tooltip-container { position: relative; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.tooltip-text { visibility: hidden; width: max-content; background-color: #333; color: #fff; text-align: center; border-radius: 4px; padding: 5px 10px; position: absolute; z-index: 1; top: 120%; left: 50%; transform: translateX(-50%); font-size: 0.8rem; font-weight: 500; }
.tooltip-text::after { content: ''; position: absolute; bottom: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: transparent transparent #333 transparent; }
.tooltip-container:hover .tooltip-text { visibility: visible; }
.attendance-action-btn { background: #8e54e9; border: none; color: white; padding: 15px 40px; font-size: 1.1rem; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; transition: background 0.3s; }
.attendance-action-btn:hover { background: #7b44cc; }


/* Add Purchase Layout Styles */
.purchase-card { border: 1px solid #eee; border-radius: 8px; padding: 25px; background: #fff; }
.purchase-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.purchase-form-group { display: flex; flex-direction: column; margin-bottom: 15px; }
.purchase-form-group label { color: #555; font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.purchase-input { padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.95rem; color: #333; outline: none; width: 100%; box-sizing: border-box; }
.purchase-input:focus { border-color: #7367f0; }
.purchase-input[readonly] { background-color: #f8f9fa; }
.add-supplier-btn { background: transparent; border: none; font-size: 1.5rem; color: #333; cursor: pointer; padding: 0 5px; }
.readme-btn { background: #ea5455; color: white; border: none; padding: 12px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; cursor: pointer; width: 100%; transition: background 0.3s; }
.readme-btn:hover { background: #d94142; }
.purchase-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.purchase-table th { font-weight: 600; color: #555; text-align: left; padding: 15px 10px; border-bottom: 1px solid #eee; border-top: 1px solid #eee; font-size: 0.9rem; }
.purchase-table td { padding: 15px 10px; border-bottom: 1px solid #f9f9f9; }
.purchase-totals .purchase-form-group { margin-bottom: 10px; }
.purchase-submit-btn { background: #8e54e9; color: white; border: none; padding: 12px 25px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; cursor: pointer; margin-right: 10px; }
.purchase-submit-btn:hover { background: #7b44cc; }
.purchase-back-btn { background: #8e54e9; color: white; border: none; padding: 12px 25px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.purchase-back-btn:hover { background: #7b44cc; }


/* Supplier Modal Styles */
.supplier-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); }
.supplier-modal-content { background-color: #fefefe; margin: 5% auto; border: 1px solid #888; width: 800px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); display: flex; flex-direction: column; }
.supplier-modal-header { padding: 20px; background-color: #f8f9fa; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; border-radius: 8px 8px 0 0; }
.supplier-modal-header h3 { margin: 0; color: #514b6e; font-size: 1.5rem; font-weight: 600; }
.supplier-modal-close { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.supplier-modal-close:hover, .supplier-modal-close:focus { color: #000; text-decoration: none; cursor: pointer; }
.supplier-modal-body { padding: 30px; }
.supplier-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.supplier-modal-footer { padding: 20px 30px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; background-color: #fefefe; border-radius: 0 0 8px 8px; }


/* POS Specific Styles */
.pos-body { margin: 0; padding: 0; background: #fff; font-family: 'Inter', sans-serif; overflow: hidden; height: 100vh; }
.pos-wrapper { display: flex; flex-direction: column; height: 100vh; }
.pos-top-bar { display: flex; gap: 8px; padding: 8px; background: #f8f9fa; border-bottom: 1px solid #ddd; }
.pos-top-btn { padding: 10px 15px; border: none; border-radius: 4px; color: white; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.pos-top-btn.icon-only { padding: 10px; }
.btn-red { background: #e74c3c; } .btn-purple { background: #9b59b6; } .btn-pink { background: #e83e8c; } .btn-blue { background: #3498db; } .btn-yellow { background: #f1c40f; } .btn-purple-dark { background: #8e44ad; } .btn-grey { background: #6c757d; } .btn-green { background: #8bc34a; }
.pos-content { display: flex; flex: 1; overflow: hidden; background: #eaedf1; padding: 10px; gap: 10px; }
.pos-left { flex: 0 0 450px; background: #fff; display: flex; flex-direction: column; border-radius: 4px; border: 1px solid #ddd; overflow: hidden; position: relative; z-index: 1; }
.pos-tabs { display: flex; gap: 5px; padding: 10px; background: #f8f9fa; }
.pos-tab { flex: 1; padding: 8px; border: 1px solid #ddd; background: #eee; border-radius: 4px; cursor: pointer; font-size: 0.85rem; font-weight: 500; }
.pos-tab.active { background: #d0d3d4; font-weight: 600; }
.pos-customer-select { display: flex; gap: 5px; padding: 0 10px 10px 10px; border-bottom: 1px solid #ddd; }
.pos-select { padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.pos-icon-btn { background: #f8f9fa; border: 1px solid #ddd; padding: 8px 12px; border-radius: 4px; cursor: pointer; color: #555; }
.pos-cart-container { flex: 1; overflow-y: auto; }
.pos-cart-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pos-cart-table th { padding: 10px; border-bottom: 1px solid #ddd; text-align: left; background: #f8f9fa; font-weight: 600; }
.pos-cart-table td { padding: 10px; border-bottom: 1px solid #eee; }
.pos-qty-input { width: 40px; padding: 4px; text-align: center; border: 1px solid #ddd; }
.pos-footer { padding: 10px; background: #f8f9fa; border-top: 1px solid #ddd; }
.pos-total-payable { background: #e2e6ea; padding: 12px; text-align: center; font-size: 1.2rem; font-weight: 600; color: #555; border-radius: 4px; margin-bottom: 10px; }
.pos-action-buttons { display: flex; gap: 5px; }
.pos-btn { flex: 1; padding: 12px 5px; border: none; border-radius: 4px; color: white; font-weight: 600; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-cancel { background: #e74c3c; } .btn-draft { background: #9b59b6; } .btn-quick-invoice { background: #2196f3; } .btn-place-order { background: #8bc34a; }
.pos-right { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.pos-search-bar { display: flex; gap: 10px; }
.search-input-wrapper { flex: 1; position: relative; }
.search-input-wrapper i { position: absolute; left: 10px; top: 12px; color: #aaa; }
.search-input-wrapper input { width: 100%; padding: 10px 10px 10px 35px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.category-dropdown { padding: 10px; background: #9b59b6; color: white; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; outline: none; }
.pos-product-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; align-content: start; }
.pos-product-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s; }
.pos-product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.product-image { height: 90px; background-size: cover; background-position: center; }
.product-info { padding: 8px; text-align: center; border-top: 1px solid #eee; }
.product-name { font-size: 0.8rem; color: #333; margin-bottom: 3px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; height: 1.92rem; }
.product-price { font-size: 0.75rem; color: #666; font-weight: 600; }
/* Sliding Panel */
.running-orders-panel { position: absolute; top: calc(100% + 5px); left: 0; width: 450px; height: 600px; max-height: calc(100vh - 90px); background: #f8f9fa; z-index: 1000; transition: opacity 0.2s ease, transform 0.2s ease; display: flex; flex-direction: column; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transform: translateY(-10px); }
.running-orders-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.running-orders-header { padding: 15px; background: #fff; border-bottom: 1px solid #ddd; }
.running-orders-header h3 { margin: 0 0 10px 0; color: #333; font-size: 1.2rem; }
.ro-search { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.ro-list { flex: 1; overflow-y: auto; padding: 10px; }
.ro-item { background: #fff; border: 1px solid #ddd; padding: 12px; border-radius: 4px; margin-bottom: 10px; cursor: pointer; }
.ro-item:hover { background: #f1f1f1; }
.ro-item.active { 
    background-color: #eaf6ff;
    outline: 2px solid #3498db;
    box-shadow: 0 4px 10px rgba(52,152,219,0.3);
}
.ro-actions { padding: 15px; background: #fff; border-top: 1px solid #ddd; display: flex; flex-direction: column; gap: 10px; }
.ro-btn { padding: 10px; border: 1px solid #ddd; background: #f8f9fa; border-radius: 4px; cursor: pointer; color: #333; font-weight: 500; }
.ro-btn:hover { background: #e9ecef; }

/* Payment Modal Specifics */
.pm-tab {
    padding: 15px 20px;
    background: #f0f0f0;
    border: none;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    color: #555;
    transition: background 0.2s, color 0.2s;
}
.pm-tab:hover {
    background: #e4e4e4;
}
.pm-tab.active {
    background: #ccc;
    font-weight: bold;
    color: #333;
}
.quick-amt-btn {
    padding: 15px 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    color: #555;
}
.quick-amt-btn:hover {
    background: #e4e4e4;
}

/* Others Menu Dropdown */
.others-dropdown-panel { position: absolute; top: calc(100% + 5px); left: 0; width: auto; min-width: max-content; white-space: nowrap; background: #fff; z-index: 1000; display: flex; flex-direction: column; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; }
.others-dropdown-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.others-menu-item { display: block; padding: 12px 15px; color: #35c0d6; text-decoration: none; font-size: 14px; border-bottom: 1px solid #eee; }
.others-menu-item:last-child { border-bottom: none; }
.others-menu-item:hover { background: #f8f9fa; }
.others-menu-item.active-bg { background: #f5f5f5; }
.text-blue { color: #35c0d6; margin-right: 10px; width: 16px; text-align: center; }


.others-dropdown-panel { max-height: calc(100vh - 80px); overflow-y: auto; }

