:root {
    --primary-blue: #1a73e8;
    --primary-red: #e84234;
    --dark-blue: #0d47a1;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Ensure header stays above everything */
    z-index: 1200;
    transition: transform 0.3s ease;
}

/* Hide header on scroll down, show on scroll up */
header.header-hidden {
    transform: translateY(-100%);
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover span {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Header Button Styles */
.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background-color 0.3s;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn .btn-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    /* Hidden by default */
}

.notification-badge[style*="display: flex"] {
    display: flex !important;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 0 0 15px 15px;
    box-shadow: var(--shadow);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 10px;
    width: 100%;
}

.slide h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.slide p {
    font-size: 0.9rem;
}

.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background-color: var(--white);
}

/* Main Content Styles */
.main-content {
    padding: 20px;
    min-height: calc(100vh - 140px);
    padding-bottom: 80px;
}

.section-title {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--dark-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.action-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.action-card.send {
    border-top: 4px solid var(--primary-blue);
}

.action-card.shop {
    border-top: 4px solid var(--primary-red);
}

.action-card.track {
    border-top: 4px solid #34a853;
}

.action-card.history {
    border-top: 4px solid #f9a825;
}

.recent-deliveries {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.delivery-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.delivery-item:last-child {
    border-bottom: none;
}

.delivery-info h4 {
    margin-bottom: 5px;
}

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

.status-pending {
    background-color: #fff8e1;
    color: #f9a825;
}

.status-in-progress {
    background-color: #e8f5e9;
    color: #34a853;
}

.status-delivered {
    background-color: #e3f2fd;
    color: var(--primary-blue);
}

/* Footer Navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 8px;
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    position: relative;
    transition: transform 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    background-color: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-item:hover i {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-item.active {
    transform: translateY(-2px);
}

.nav-item.active::after {
    transform: translateX(-50%) scale(1);
}

.nav-item.active i {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Add padding to main content for footer */
#main-content {
    padding-bottom: 70px;
}

/* Account Menu - FIXED */
.account-menu {
    position: fixed;
    bottom: 70px;
    /* Position above footer */
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--white);
    width: 95%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    /* Higher than footer */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70vh;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

.account-menu.active {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    opacity: 1;
}

.account-menu::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.account-header {
    display: flex;
    align-items: center;
    padding: 25px 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border-radius: 20px 20px 0 0;
}

.account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 15px;
    backdrop-filter: blur(10px);
}

.account-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.account-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.menu-items {
    display: flex;
    flex-direction: column;
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item i {
    margin-right: 15px;
    color: var(--primary-blue);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.menu-item.logout i {
    color: var(--primary-red);
}

.menu-item.logout {
    color: var(--primary-red);
}

.menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

/* Menu Overlay - REMOVED - No longer needed */
/* We'll handle clicks outside differently */

/* Auth Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark-blue);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group input.invalid {
    border-color: var(--primary-red);
}

.validation-feedback {
    font-size: 0.8rem;
    color: var(--primary-red);
    margin-top: 5px;
    min-height: 1em;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 8px;
}

.strength-meter {
    height: 4px;
    border-radius: 2px;
    background: #eee;
    margin-bottom: 5px;
    overflow: hidden;
}

.strength-meter::before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: #f44336;
    transition: all 0.3s;
}

.strength-meter[data-strength="weak"]::before {
    width: 33%;
    background: #f44336;
}

.strength-meter[data-strength="medium"]::before {
    width: 66%;
    background: #ffa726;
}

.strength-meter[data-strength="strong"]::before {
    width: 100%;
    background: #66bb6a;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
}

/* Shop Management Styles */
.coordinates-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.coordinates-group .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Shop Detail Page */
.shop-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.shop-header {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.shop-hero {
    position: relative;
    padding: 20px;
}

.shop-hero img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.shop-info {
    padding: 20px 0;
}

.shop-info h1 {
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.shop-location {
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-description {
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
}

.products-section {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions button {
    flex: 1;
}

/* Shop Management */
.management-product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    background: var(--white);
}

.management-product-item .product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.management-product-item .product-details {
    flex: 1;
}

.management-product-item h4 {
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    color: #666;
    font-size: 0.9rem;
}

.management-product-item .product-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* Delivery Form Styles */
.delivery-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delivery-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.delivery-section h4 {
    margin-bottom: 15px;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-input-group {
    display: flex;
    gap: 10px;
}

.location-input-group input {
    flex: 1;
}

.location-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0 10px;
    font-size: 1.2rem;
}

.location-btn:hover {
    color: var(--dark-blue);
}

.pricing-section {
    background: #fff;
    border: 2px solid var(--primary-blue);
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.price-item.total {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

/* Delivery History Styles */
.deliveries-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-item {
    background: var(--white);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.delivery-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.delivery-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.delivery-status {
    text-align: right;
}

.status-text {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.track-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Tracking Modal Styles */
.tracking-info {
    padding: 20px 0;
}

.tracking-status {
    text-align: center;
    margin-bottom: 30px;
}

.current-status {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.current-status i {
    margin-right: 8px;
}

.status-time {
    font-size: 0.9rem;
    color: #666;
}

.tracking-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eee;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: #666;
}

.timeline-item.completed .timeline-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.timeline-item.active .timeline-icon {
    background: #fff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    animation: pulse 2s infinite;
}

.timeline-content {
    flex: 1;
    padding-bottom: 15px;
}

.timeline-content h4 {
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

.auth-required {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-blue);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn-secondary {
    margin-top: 0;
}

/* Shops Grid */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.shop-card {
    background: var(--white);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
}

.shop-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.shop-card h3 {
    margin: 15px 15px 5px;
    color: var(--dark-gray);
}

.shop-card p {
    margin: 0 15px 15px;
    color: #666;
    font-size: 0.9rem;
}

.shop-card .btn-primary {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

/* Search Bar */
.search-bar-container {
    position: relative;
    margin-bottom: 20px;
}

.search-bar-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-bar-container input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-bar-container input::placeholder {
    color: #a0a0a0;
}

.search-bar-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.search-bar-container input:focus+i {
    color: var(--primary-blue);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 150px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-amp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

/* Management Styles */
.management-tabs {
    margin-top: 20px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.management-product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    background: var(--white);
}

.management-product-item .product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.management-product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.management-product-item .product-details {
    flex: 1;
}

.management-product-item .product-details h4 {
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.management-product-item .product-details p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.product-meta .price {
    font-weight: bold;
    color: var(--primary-blue);
}

.product-meta .category {
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* Availability Toggle Switch */
.availability-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.availability-toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.availability-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.availability-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.availability-toggle-checkbox:checked+.availability-toggle-slider {
    background-color: #34a853;
    /* Green for active */
}

.availability-toggle-checkbox:checked+.availability-toggle-slider:before {
    transform: translateX(20px);
}

/* Large Modal */
.large-modal {
    max-width: 800px;
}

/* Tracking Timeline */
.tracking-timeline {
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 28px;
    bottom: -20px;
    width: 2px;
    background: #eee;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eee;
    margin-right: 15px;
    position: relative;
    z-index: 1;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-blue);
}

.timeline-content h4 {
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-time {
    font-size: 0.8rem;
    color: #999;
}

.tracking-map {
    height: 200px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.map-placeholder {
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

/* Delivery Summary */
.delivery-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.delivery-summary h4 {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #666;
}

.summary-item.total {
    border-top: 1px solid #ddd;
    padding-top: 8px;
    font-weight: bold;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Admin Dashboard Styles */
.admin-dashboard,
.rider-dashboard,
.my-shops {
    padding: 20px;
    padding-bottom: 80px;
}

.stats-grid,
.rider-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.admin-actions .btn-primary,
.admin-actions .btn-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    height: 120px;
    gap: 10px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-actions .btn-primary:hover,
.admin-actions .btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}


/* Rider Dashboard Styles */
.deliveries-section {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.deliveries-section h3 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.delivery-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.delivery-info {
    flex: 1;
}

.delivery-info h4 {
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.delivery-info p {
    margin-bottom: 4px;
    color: #666;
    font-size: 0.9rem;
}

.delivery-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--white);
}

/* My Shops Styles */
#shops-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.shop-management-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.shop-management-card h3 {
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.shop-management-card p {
    color: #666;
    margin-bottom: 15px;
}

.shop-management-actions {
    display: flex;
    gap: 10px;
}

/* Users Management Styles */
.users-list {
    max-height: 400px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.user-info h4 {
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.user-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.user-info small {
    color: #999;
}

.role-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--white);
}

/* Error and Loading States */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1rem;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 20px;
}

.error-message {
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 400px;
}

.error-message i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.error-message h3 {
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.error-message p {
    color: #666;
    margin-bottom: 20px;
}

.auth-required {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: var(--white);
    margin: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (min-width: 768px) {
    .slideshow-container {
        height: 350px;
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .icon-btn .btn-text {
        display: inline;
    }
}

@media (max-width: 768px) {

    .stats-grid,
    .rider-stats {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        grid-template-columns: 1fr;
    }

    .delivery-card {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .user-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .user-actions {
        align-self: flex-start;
    }

    .icon-btn .btn-text {
        display: none;
    }

    .icon-btn {
        padding: 8px;
    }

    .account-menu {
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
        bottom: 60px;
    }

    .nav-item {
        min-width: 50px;
        font-size: 0.7rem;
    }

    .nav-item i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-icons {
        gap: 10px;
    }

    .account-header {
        padding: 20px 15px 10px;
    }

    .menu-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .auth-card {
        padding: 20px;
    }

    .modal {
        width: 95%;
        margin: 10px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .action-card {
        padding: 15px;
    }

    .action-card i {
        font-size: 1.5rem;
    }
}


/* Cart Panel Styles */
.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 2100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    color: var(--dark-blue);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--primary-red);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-footer .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #333;
}

.cart-footer .summary-item.total {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--dark-blue);
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.cart-footer .btn-primary,
.cart-footer .btn-secondary {
    width: 100%;
    text-decoration: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

/* Scrollbar Styling */
.menu-items::-webkit-scrollbar {
    width: 4px;
}

.menu-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.menu-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.menu-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Revenue Dashboard Styles */
.revenue-dashboard {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.filters-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filters-container .form-group {
    margin-bottom: 0;
}

.filters-container button {
    width: auto;
    padding: 12px 25px;
}

.chart-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
}

.bar-chart {
    display: flex;
    gap: 2px;
    width: 100%;
    height: 250px;
    align-items: flex-end;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-blue), #64b5f6);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: background-color 0.3s;
    cursor: pointer;
}

.bar:hover {
    background: linear-gradient(to top, var(--dark-blue), var(--primary-blue));
}

.bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
}

.table-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

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

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

.table-container th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-blue);
}

.table-container th a.sort-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-container th a.sort-link:hover {
    color: var(--primary-blue);
}

.table-container tbody tr:hover {
    background-color: #f5f5f5;
}

.table-container td:nth-child(2),
.table-container td:nth-child(3),
.table-container td:nth-child(4) {
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
}

/* Admin Management Page Styles */
.management-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.management-page .section-title button {
    width: auto;
    font-size: 0.9rem;
}

.management-page .table-container {
    margin-top: 20px;
}

.management-page .btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    width: auto;
}

.management-page .role-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--white);
}

.management-page .status-text {
    font-weight: 500;
}

.management-page .delivery-status {
    font-size: 0.8rem;
}

.management-page .action-cell {
    display: flex;
    gap: 5px;
}

.management-page .btn-success {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 0.8rem;
    width: auto;
    cursor: pointer;
    border-radius: 6px;
}

.management-page .status-approved {
    color: #28a745;
}

.management-page .status-pending {
    color: #ffc107;
}

/* Slide Management Styles */
.slide-form-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.slide-form-container .form-actions {
    justify-content: flex-start;
}

.slide-form-container .btn-secondary {
    margin-top: 0;
    width: auto;
}

.slide-management-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.slide-preview {
    width: 120px;
    height: 67px;
    /* 16:9 aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.slide-details {
    flex-grow: 1;
}

.slide-details h4 {
    margin: 0 0 5px;
}

.slide-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.slide-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--primary-blue);
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.2s;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

#profile-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-avatar-section .btn-secondary {
    width: auto;
}

/* Address Manager Styles */
.address-manager {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .address-manager {
        grid-template-columns: 1fr 1.5fr;
    }
}

.address-form-container,
.address-list-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.address-form-container h4,
.address-list-container h4 {
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid transparent;
    transition: border-color 0.3s;
}

.address-item.default {
    border-left-color: var(--primary-blue);
}

.address-details strong {
    display: inline-block;
    margin-right: 8px;
}

.address-details p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.address-actions {
    display: flex;
    gap: 8px;
}

.default-badge {
    background: var(--primary-blue);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* Account Page Styles */
.account-page-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.account-page-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.account-page-content h4 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

#profile-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Toast Notifications Styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allows clicks to pass through the container area */
}

.toast-notification {
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    /* Start off-screen to the right */
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
    border-left: 5px solid #333;
    pointer-events: auto;
    /* Re-enable clicks for the notifications themselves */
    opacity: 0;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left-color: #2ecc71;
}

.toast-notification.success i {
    color: #2ecc71;
    font-size: 1.2rem;
}

.toast-notification.error {
    border-left-color: #e74c3c;
}

.toast-notification.error i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.toast-notification.warning {
    border-left-color: #f1c40f;
}

.toast-notification.warning i {
    color: #f1c40f;
    font-size: 1.2rem;
}

.toast-notification.info {
    border-left-color: #3498db;
}

.toast-notification.info i {
    color: #3498db;
    font-size: 1.2rem;
}

.toast-notification p {
    margin: 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

.toast-notification .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #aaa;
    padding: 0;
    margin-left: 8px;
    transition: color 0.2s;
}

.toast-notification .close-btn:hover {
    color: #555;
}


.profile-avatar-section .btn-secondary {
    width: auto;
}

/* Saved address select in delivery modal */
.saved-address-select {
    margin-bottom: 8px;
}

/* Notification List (Bell Icon) Styles */
.notification-list {
    position: fixed;
    top: 70px;
    /* Just below the header */
    right: 20px;
    width: 350px;
    max-width: 90vw;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    /* Below cart panel but above most content */
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    animation: fadeInDown 0.3s ease-out;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item p {
    margin: 0 0 5px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.notification-item small {
    font-size: 0.8rem;
    color: #999;
}

.notification-item.empty {
    text-align: center;
    color: #999;
    padding: 25px;
    cursor: default;
}

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

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

/* Sliding Button Styles */
.slide-button-container {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: #f1f1f1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    user-select: none;
    margin-top: 10px;
}

.slide-button-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.slide-button-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary-blue);
    /* or green based on context */
    transition: background 0.2s;
    z-index: 1;
}

.slide-button-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: grab;
    z-index: 3;
    margin: 0;
}

.slide-button-input:active {
    cursor: grabbing;
}

/* Slider Thumb Styles */
.slide-button-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 4;
    /* Chevron Right Icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a73e8' width='24px' height='24px'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.slide-button-input::-moz-range-thumb {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Chevron Right Icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a73e8' width='24px' height='24px'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.status-badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.delivery-details-brief p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.delivery-details-brief i {
    width: 20px;
}

.new-badge {
    background-color: var(--primary-red);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    vertical-align: middle;
    margin-right: 5px;
    display: inline-block;
    animation: pulse 2s infinite;
}