:root {
    --primary-color: #000000;
    --secondary-color: #404040;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --sidebar-width: 280px;
    --header-height: 60px;
    --bottom-nav-height: 65px;
    --safe-area-inset-top: env(safe-area-inset-top, 0px); /* Status bar safe area */
    --safe-area-inset-bottom: max(env(safe-area-inset-bottom), 10px); /* Android WebView and iOS safe area */
       /* Adjust tap target sizes for mobile */
       --tap-target-size: 44px;
       --tap-target-padding: 12px;
}

/* Mobile-first media queries */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    /* Increase tap targets */
    button, 
    input[type="submit"],
    .nav-item {
        min-height: var(--tap-target-size);
        padding: var(--tap-target-padding);
    }

    /* Optimize forms for mobile */
    input, 
    select, 
    textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Improve readability */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden; /* Prevent body scroll, only zool-feed scrolls */
    scrollbar-gutter: stable;
    height: 100vh; /* Full viewport height */
}

/* Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: calc(var(--header-height) + var(--safe-area-inset-top));
    background: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    padding-top: var(--safe-area-inset-top); /* Add safe area padding at top */
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

.app-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--background-color);
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 0;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 0;
    padding-top: var(--safe-area-inset-top); /* Add safe area padding at top for status bar */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: rgba(98, 0, 234, 0.03);
}

.user-info {
    text-align: center;
}

.user-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #6200EA;
    padding: 2px;
    background: white;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.user-info h6 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.user-info small {
    color: #666;
    font-size: 0.9rem;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-menu li a:hover {
    background-color: rgba(98, 0, 234, 0.05);
}

.sidebar-menu li a i {
    margin-right: 1rem;
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    margin-top: calc(var(--header-height) + var(--safe-area-inset-top) + 75px);
    margin-bottom: calc(var(--bottom-nav-height) + var(--safe-area-inset-bottom));
    height: calc(100vh - var(--header-height) - var(--safe-area-inset-top) - var(--bottom-nav-height) - 75px - var(--safe-area-inset-bottom));
    display: flex !important; /* Ensure flexbox is always applied */
    flex-direction: column;
    overflow: hidden; /* Prevent main content from scrolling */
    position: relative; /* Keep relative positioning */
}

#map {
    height: calc(45vh * 0.49); /* Reduced by 30% from previous (45 * 0.7 * 0.7 = 22.05vh) */
    margin: 0.8rem 0;
    flex-shrink: 0; /* Don't shrink */
    min-height: 150px; /* Reduced min-height proportionally */
}

.zool-feed {
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Only zool-feed scrolls */
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 0.8rem;
    scroll-behavior: smooth;
    min-height: 0; /* Critical for flexbox scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    position: relative; /* Ensure proper stacking context */
    touch-action: pan-y; /* Enable vertical touch scrolling */
}

/* Zool Feed Loading Overlay */
.zool-feed-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.zool-feed-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Zool Cards */
.zool-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.zool-card:hover {
    transform: translateY(-2px);
}

.zool-card.highlighted {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-left: 3px solid var(--primary-color);
}

.zool-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.zool-card .title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.zool-card .description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.distance, .amount {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Bottom Navigation - with fixed alignment */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-height: var(--bottom-nav-height);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 900;
    padding: 0;
    padding-bottom: var(--safe-area-inset-bottom); /* Android WebView and iOS safe area support */
    transform: translateY(0) !important;
    transition: transform 0.3s ease !important;
}

/* Bottom nav items */
.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    padding: 0.5rem 0;
    transform: none !important;
    transition: color 0.2s !important;
    text-align: center;
    min-width: 60px;
}

/* Bottom nav icons */
.bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    display: block;
    position: relative; /* Allow badge to position relative to icon */
}

/* Bottom nav text */
.bottom-nav .nav-item span {
    font-size: 0.75rem;
    display: block;
    line-height: 1;
}

/* Active state for nav items */
.bottom-nav .nav-item.active {
    color: var(--primary-color);
}

/* Add notification dot if needed */
.bottom-nav .nav-item .bi-bell {
    position: relative;
}

.bottom-nav .nav-item .bi-bell::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #6200EA;
    border-radius: 50%;
    display: none; /* Show when there are notifications */
}

/* Utility Classes */
.btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Category Carousel Styles */
.categories-wrapper {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-area-inset-top));
    left: 0;
    right: 0;
    background: white;
    padding: 0.7rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 900;
}

.categories-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1.2rem;
    padding: 0.3rem 1rem;
}

.categories-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.category-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    padding: 0.6rem;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.category-item span {
    font-size: 0.75rem;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
}

.category-item:hover i {
    background: var(--primary-color);
    color: white;
}

/* Add Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
}

/* Ensure all modals appear above slide menus */
.modal {
    z-index: 1400 !important;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal.fade:not(.show) {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal.show {
    display: block !important;
}

.modal.fade.show {
    opacity: 1;
    transition: opacity 0.15s linear;
}

.modal-dialog {
    z-index: 1401 !important;
    position: relative;
    width: auto;
    margin: 1.75rem 1rem; /* Add horizontal margins so modal doesn't touch edges */
    pointer-events: auto;
    max-width: calc(500px - 2rem); /* Account for left and right margins */
    transform: translate(0, 0);
    transition: transform 0.3s ease-out;
}

/* On larger screens, ensure modal doesn't get too narrow */
@media (min-width: 576px) {
    .modal-dialog {
        margin: 1.75rem auto;
        max-width: 500px;
    }
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.fade.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 3.5rem);
    content: "";
}

/* Message Modal Specific Styles - Handle keyboard properly */
#messageModal .modal-dialog {
    margin: 0.5rem 1rem !important; /* Reduced top margin, keep side margins */
    max-height: calc(100dvh - 2rem - var(--safe-area-inset-top) - var(--safe-area-inset-bottom)); /* Use dvh (dynamic viewport height) to account for keyboard */
    display: flex;
    flex-direction: column;
    overflow: hidden !important; /* Prevent modal-dialog-scrollable from making dialog scrollable */
}

/* Override modal-dialog-scrollable behavior for message modal */
#messageModal.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden !important; /* Prevent scrolling on modal-content */
}

#messageModal .modal-content {
    max-height: calc(100dvh - 2rem - var(--safe-area-inset-top) - var(--safe-area-inset-bottom)); /* Use dvh to limit height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: none; /* Disable touch scrolling on modal-content */
}

#messageModal .message-container {
    touch-action: pan-y; /* Re-enable touch scrolling only on message-container */
    overscroll-behavior: contain; /* Prevent scroll chaining to parent */
}

#messageModal .modal-header {
    flex-shrink: 0; /* Don't shrink header */
    padding-top: calc(0.25rem + var(--safe-area-inset-top)); /* Minimal padding, keep safe area */
    padding-bottom: 0.5rem; /* Minimal padding */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

#messageModal .modal-body {
    flex: 1;
    overflow: hidden; /* Don't scroll the body, let message-container scroll */
    min-height: 0; /* Important for flexbox scrolling */
    padding: 0; /* No padding on modal-body itself, padding is on message-container */
    display: flex;
    flex-direction: column;
}

#messageModal .modal-footer {
    flex-shrink: 0; /* Don't shrink footer */
    padding: 0.5rem 1.5rem; /* Minimal padding */
    padding-bottom: calc(0.5rem + var(--safe-area-inset-bottom)); /* Minimal padding, keep safe area */
    border-top: 1px solid rgba(0,0,0,0.1);
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
}

/* On mobile, when keyboard is visible, adjust modal positioning */
@media (max-width: 768px) {
    #messageModal.show .modal-dialog {
        margin-top: var(--safe-area-inset-top) !important; /* Start from safe area */
        max-height: calc(100dvh - var(--safe-area-inset-top) - var(--safe-area-inset-bottom)); /* Use dynamic viewport height */
        align-items: flex-start !important; /* Align to top instead of center */
    }
    
    #messageModal .modal-dialog-centered {
        min-height: auto !important; /* Remove min-height constraint */
    }
    
    #messageModal .modal-dialog-centered::before {
        display: none !important; /* Remove the spacer */
    }
    
    /* Ensure modal doesn't go behind status bar */
    #messageModal.show {
        padding-top: var(--safe-area-inset-top);
    }
}

.modal-content {
    z-index: 1402 !important;
    position: relative;
    display: flex !important;
    flex-direction: column;
    pointer-events: auto;
    background-color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
}

/* Ensure modal backdrop appears above slide menus but below modal and is clickable */
.modal-backdrop {
    z-index: 1399 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    cursor: pointer;
}

/* Ensure backdrop click closes modal */
.modal-backdrop.show {
    opacity: 0.5;
}

.modal-header {
    padding: 1rem 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.modal-body {
    padding: 1rem 1.5rem; /* Add padding on all sides including top */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.poster-info {
    display: flex;
    align-items: center;
}

.poster-info img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.zool-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.zool-meta span {
    color: #6200EA;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.additional-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.info-item i {
    color: #6200EA;
}

.info-item .date-needed,
.info-item .estimated-time {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.posted-time {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Update Send Offer Button Style */
.send-offer-btn {
    padding: 0.8rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #000000;
    transition: all 0.2s;
    border-radius: 8px;  /* Square corners but slightly rounded */
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-offer-btn:hover {
    background: #000000;
    color: white;
}

.send-offer-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Ensure button doesn't change color on focus */
.send-offer-btn:focus {
    box-shadow: none;
}

.send-offer-btn:active {
    transform: translateY(1px);
}
/* Add New Card Button Style */
.add-card-btn {
    padding: 0.8rem;
    font-weight: 500;
    background: rgba(98, 0, 234, 0.1);
    border: none;
    color: #6200EA;
    transition: all 0.2s;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1rem 0;
}

.add-card-btn:hover {
    background: rgba(98, 0, 234, 0.1);
    color: white;
}

.add-card-btn.active {
    background: #6200EA;
    color: white;
}

.add-card-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.add-card-btn:focus {
    box-shadow: none;
}

.add-card-btn:active {
    transform: translateY(1px);
}
/* Edit Card Button and Modal Styles */
.edit-card-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #6c757d;
    transition: all 0.2s;
    border-radius: 50%;
}

.edit-card-btn:hover {
    background: rgba(98, 0, 234, 0.1);
    color: #6200EA;
}

.edit-card-btn.active {
    background: rgba(98, 0, 234, 0.1);
    color: #6200EA;
}

.edit-card-btn i {
    font-size: 1.2rem;
}

/* Card Form Styles */
.card-form-group {
    margin-bottom: 1.2rem;
}

.card-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.card-form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.card-form-group input:focus {
    border-color: #6200EA;
    outline: none;
    box-shadow: 0 0 0 2px rgba(98, 0, 234, 0.1);
}

/* Save Changes Button */
.save-card-btn {
    padding: 0.8rem;
    font-weight: 500;
    background: rgba(98, 0, 234, 0.1);
    border: none;
    color: #6200EA;
    transition: all 0.2s;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.save-card-btn:hover {
    background: #6200EA;
    color: white;
}

.save-card-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}
/* Slide Menu Styles */
.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow: hidden; /* Prevent scrolling on the menu itself */
    display: flex;
    flex-direction: column;
}

.slide-menu.active {
    right: 0;
}

.slide-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    padding-top: calc(1rem + var(--safe-area-inset-top)); /* Add safe area padding at top */
    padding-left: 3.5rem; /* Add left padding to accommodate back button */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: sticky; /* Make header sticky so it doesn't scroll */
    top: 0;
    min-height: calc(60px + var(--safe-area-inset-top)); /* Ensure header has enough height including safe area */
    z-index: 10;
    background: #fff; /* Ensure header has solid background */
    flex-shrink: 0; /* Prevent header from shrinking */
}

.slide-menu-header h5 {
    margin: 0;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin-left: -2.5rem; /* Center the title by offsetting the back button space */
}

.close-menu {
    background: none;
    border: none;
    color: #666;
    padding: 0.5rem;
    position: relative;
    z-index: 10; /* Ensure close button is above other elements */
    /* Safe area padding is handled by slide-menu-header padding-top */
}

.slide-menu-content {
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Only content scrolls, not the header */
    padding: 1rem;
    min-height: 0; /* Important for flexbox scrolling */
}

.my-zool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.zool-info {
    flex: 1;
}

.zool-info h6 {
    margin: 0 0 0.3rem 0;
    font-weight: 600;
}

.zool-info .description {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.5rem 0;
}

.assigned-person {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.assigned-person img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

/* Action Buttons */
.action-btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.start-btn {
    background: rgba(98, 0, 234, 0.1);
    color: #6200EA;
}

.start-btn:hover {
    background: #6200EA;
    color: white;
}

.end-btn {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.end-btn:hover {
    background: #F44336;
    color: white;
}

.pay-btn {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.pay-btn:hover {
    background: #4CAF50;
    color: white;
}

/* Add to your existing slide menu styles */
.offer-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.offer-header h6 {
    margin: 0;
    font-weight: 600;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.status.accepted {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status.rejected {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.offer-info .description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.poster-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.poster-info img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.message-indicator {
    margin-left: auto;
    position: relative;
    color: #666;
}

.message-indicator.active {
    color: #6200EA;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #6200EA;
    border-radius: 50%;
    display: none;
}

.message-indicator.active .notification-dot {
    display: block;
}

/* Notification Styles */
.notification-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.notification-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-info {
    display: flex;
    gap: 1rem;
}

.user-info img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.offer-details h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.offer-details p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: #666;
}

.offer-details .time {
    font-size: 0.75rem;
    color: #999;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.accept-btn {
    background: rgba(98, 0, 234, 0.1);
    color: #6200EA;
}

.accept-btn:hover {
    background: #6200EA;
    color: white;
}

.decline-btn {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.decline-btn:hover {
    background: #F44336;
    color: white;
}

.message-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.message-btn:hover {
    background: rgba(98, 0, 234, 0.1);
    color: #6200EA;
}

.message-btn.active {
    color: #6200EA;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.accepted {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-badge.declined {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.notification-item.responded .action-btn {
    display: none;
}

/* Update Profile Section Styles */
.profile-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image {
    margin-bottom: 1rem;
}

.profile-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #6200EA;
    padding: 2px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.profile-name {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.zool-count {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.zool-count i {
    color: #6200EA;
    font-size: 1rem;
}

/* Profile Menu Styles */
.profile-edit-section {
    padding: 1rem;
}

.profile-picture-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-picture-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #6200EA;
    padding: 2px;
    background: white;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.picture-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(98, 0, 234, 0.8);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-picture-container:hover .picture-overlay {
    opacity: 1;
}

.picture-overlay i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.profile-fields {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #6200EA;
    outline: none;
    box-shadow: 0 0 0 2px rgba(98, 0, 234, 0.1);
}

.stats-section {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6200EA;
}

.stat-value i {
    font-size: 0.9rem;
    color: #FFC107;
}

.save-profile-btn {
    width: 100%;
    padding: 1rem;
    background: #6200EA;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.save-profile-btn:hover {
    background: #5000c7;
}

/* Left Sidebar Profile Section Styles - with strict vertical alignment */
.sidebar .profile-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem; /* Consistent spacing between all elements */
}

.sidebar .profile-image {
    width: 60px;
    height: 60px;
    margin: 0; /* Remove margin and use gap instead */
}

.sidebar .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #6200EA;
    padding: 2px;
    border-radius: 50%;
    background: white;
}

.sidebar .profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Space between name and zool count */
}

.sidebar .profile-name {
    width: 100%;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    text-align: center;
    display: block; /* Ensure block display */
}

.sidebar .zool-count {
    width: 100%;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the icon and text */
    gap: 0.4rem;
    text-align: center;
    display: block; /* Ensure block display */
}

.sidebar .zool-count i {
    color: #6200EA;
    font-size: 1rem;
    margin-right: 0.3rem; /* Space between icon and text */
}

/* Ensure other profile sections don't get affected */
.profile-section:not(.sidebar .profile-section) {
    display: flex;
    align-items: center;
}

/* Specific styles for sidebar profile only */
.sidebar-profile {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-profile-pic {
    width: 60px;
    height: 60px;
}

.sidebar-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #6200EA;
    padding: 2px;
    border-radius: 50%;
    background: white;
}

.sidebar-profile-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.sidebar-profile-zools {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-profile-zools i {
    color: #6200EA;
    font-size: 1rem;
}

/* New Zool Modal Styles */
.categories-select-wrapper {
    max-height: 200px;
    overflow-y: auto;
}

.categories-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 10px;
}

.category-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    margin: 2px;
    font-size: 0.9em;
    color: var(--primary-color);
}

.category-tag .remove-category {
    margin-left: 5px;
    cursor: pointer;
}

#zoolLocation {
    padding-right: 30px;
}

.form-switch .form-check-input {
    height: 20px;
    width: 40px;
}

/* Modal Categories Carousel Styles */
.modal-categories-wrapper {
    position: relative;
    margin: 0 -1.5rem;  /* Extend beyond modal padding */
    padding: 0.7rem 1.5rem;
    background: #f8f9fa;
}

.modal-categories-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1rem;
    padding: 0.3rem 0;
}

.modal-categories-carousel::-webkit-scrollbar {
    display: none;
}

.modal-categories-carousel .category-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0.5rem;
    border-radius: 12px;
    border: none;
}

.modal-categories-carousel .category-option i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.modal-categories-carousel .category-option span {
    font-size: 0.75rem;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
}

.modal-categories-carousel .category-option.selected {
    background: rgba(0, 0, 0, 0.1);
}

.modal-categories-carousel .category-option.selected i {
    background: var(--primary-color);
    color: white;
}

.selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tag .remove-category {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.category-tag .remove-category:hover {
    opacity: 1;
} 
.brand-banner {
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    background: linear-gradient(
        135deg,
        #000000 0%,
        #404040 100%
    );
    width: 100%;
    margin: 0;
}

.brand-banner .logo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 2;
}

.icon-scatter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.scatter-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.2rem;
    animation: float 6s infinite;
}

.scatter-icon:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
.scatter-icon:nth-child(2) { top: 25%; right: 20%; animation-delay: 1s; }
.scatter-icon:nth-child(3) { bottom: 30%; left: 25%; animation-delay: 2s; }
.scatter-icon:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 3s; }
.scatter-icon:nth-child(5) { top: 40%; left: 30%; animation-delay: 4s; }
.scatter-icon:nth-child(6) { bottom: 35%; right: 15%; animation-delay: 5s; }
.scatter-icon:nth-child(7) { top: 20%; left: 40%; animation-delay: 2.5s; }
.scatter-icon:nth-child(8) { bottom: 40%; right: 35%; animation-delay: 3.5s; }
.scatter-icon:nth-child(9) { top: 45%; right: 40%; animation-delay: 1.5s; }
.scatter-icon:nth-child(10) { bottom: 25%; left: 20%; animation-delay: 4.5s; }
.scatter-icon:nth-child(11) { top: 30%; right: 30%; animation-delay: 2.8s; }
.scatter-icon:nth-child(12) { bottom: 15%; left: 35%; animation-delay: 3.8s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
        opacity: 0.8;
    }
}

.brand-banner h4 {
    color: white;
    position: relative;
    z-index: 2;
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.brand-banner small {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
}

.version-info {
    padding: 1rem 1.5rem;
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    position: absolute;
    bottom: 100px;  /* Adjusted to be above the bottom links */
    left: 0;
    right: 0;
}

.sidebar-bottom-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    background: rgba(98, 0, 234, 0.03);
}

.sidebar-bottom-links a {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-bottom-links a:hover {
    color: #6200EA;
}

.sidebar-bottom-links i {
    margin-right: 1rem;
    color: #6200EA;
}

.help-link {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* History Menu Specific Styles */

#myZoolsMenu.slide-menu,
#myOffersMenu.slide-menu,
#notificationsMenu.slide-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: 65vh;
    background: #fff;
    z-index: 1001;
    transition: top 0.3s ease;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}


#myZoolsMenu.slide-menu.active,
#myOffersMenu.slide-menu.active,
#notificationsMenu.slide-menu.active {
    top: 35vh;
}

/* History Content Styles */
.history-summary {
    padding: 1rem;
    background: rgba(98, 0, 234, 0.05);
    border-radius: 8px;
    margin: 1rem;
}

.total-earnings {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-earnings .label {
    color: #666;
    font-size: 0.9rem;
}

.total-earnings .amount {
    color: #6200EA;
    font-size: 1.2rem;
    font-weight: 600;
}

.history-item {
    padding: 1rem;
    margin: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* Ensure bottom nav stays above content but below modals */
.bottom-nav {
    z-index: 900 !important;
}

/* Ensure slide menus stay above bottom nav */
.slide-menu {
    z-index: 1001 !important;
}

.sidebar {
    z-index: 1100; /* Higher than slide-up panels (1001) */
}

/* Notification badge for nav items */
.nav-item {
    position: relative;
}

/* Notification badge positioned relative to icon in bottom nav - simple dot */
.bottom-nav .nav-item .notification-badge {
    position: absolute;
    top: 2px; /* Position at top of icon */
    left: calc(50% + 10px); /* Center of icon + offset to right */
    transform: translateX(-50%); /* Center the badge */
    background-color: #e74c3c;
    width: 8px !important; /* Small dot - force width */
    height: 8px !important; /* Small dot - force height */
    min-width: 8px !important; /* Prevent stretching */
    max-width: 8px !important; /* Prevent stretching */
    min-height: 8px !important; /* Prevent stretching */
    max-height: 8px !important; /* Prevent stretching */
    border-radius: 50% !important; /* Perfect circle */
    display: block;
    z-index: 10;
    animation: pulse 0.5s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0 !important; /* Remove any padding */
    margin: 0 !important; /* Remove any margin */
    line-height: 0 !important; /* Remove line height */
    box-sizing: border-box; /* Include border in size calculation */
}

/* General notification badge (for other uses) */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-badge:empty {
    display: none;
}

/* Back button in slide menu header */
.back-button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c5ce7;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
}

.back-button:hover {
    color: #5348b8;
    transform: translateY(-50%) translateX(-2px);
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
}

.back-button:active {
    transform: translateY(-50%) translateX(-4px);
}

/* Offer actions in My Offers view */
.offer-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.offer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.offer-actions .action-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

.offer-actions .payfast-btn.action-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    white-space: nowrap;
}

/* Loading state for action buttons */
.offer-actions .action-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.offer-actions .action-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.offer-actions .accept-btn {
    background: #28a745;
    color: white;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.offer-actions .accept-btn:hover {
    background: #218838;
    transform: scale(1.1);
}

.offer-actions .decline-btn {
    background: #dc3545;
    color: white;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.offer-actions .decline-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.offer-actions .message-btn {
    background: none;
    color: #6c5ce7;
    position: relative;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.offer-actions .message-btn:hover {
    color: #5348b8;
    transform: scale(1.1);
}

.offer-actions .start-btn {
    background: #28a745;
    color: white;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.offer-actions .start-btn:hover {
    background: #218838;
    transform: scale(1.1);
}

.offer-actions .complete-btn {
    background: #17a2b8;
    color: white;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.offer-actions .complete-btn:hover {
    background: #138496;
    transform: scale(1.1);
}

.offer-actions .payfast-btn {
    font-size: 0.9rem;
    width: auto;
    min-width: auto;
    height: 36px;
    background: #007bff;
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-actions .payfast-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
    opacity: 0.9;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: white;
    position: relative;
}

.splash-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.splash-content small {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.splash-screen .icon-scatter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.splash-screen .scatter-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.2rem;
    animation: float 6s infinite;
}

/* Scatter icon positions */
.splash-screen .scatter-icon:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
.splash-screen .scatter-icon:nth-child(2) { top: 25%; right: 20%; animation-delay: 1s; }
.splash-screen .scatter-icon:nth-child(3) { bottom: 30%; left: 25%; animation-delay: 2s; }
.splash-screen .scatter-icon:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 3s; }
.splash-screen .scatter-icon:nth-child(5) { top: 40%; left: 30%; animation-delay: 4s; }
.splash-screen .scatter-icon:nth-child(6) { bottom: 35%; right: 15%; animation-delay: 5s; }
.splash-screen .scatter-icon:nth-child(7) { top: 20%; left: 40%; animation-delay: 2.5s; }
.splash-screen .scatter-icon:nth-child(8) { bottom: 40%; right: 35%; animation-delay: 3.5s; }
.splash-screen .scatter-icon:nth-child(9) { top: 45%; right: 40%; animation-delay: 1.5s; }
.splash-screen .scatter-icon:nth-child(10) { bottom: 25%; left: 20%; animation-delay: 4.5s; }
.splash-screen .scatter-icon:nth-child(11) { top: 30%; right: 30%; animation-delay: 2.8s; }
.splash-screen .scatter-icon:nth-child(12) { bottom: 15%; left: 35%; animation-delay: 3.8s; }
.splash-screen .scatter-icon:nth-child(13) { top: 10%; left: 45%; animation-delay: 1.2s; }
.splash-screen .scatter-icon:nth-child(14) { bottom: 45%; right: 10%; animation-delay: 3.2s; }
.splash-screen .scatter-icon:nth-child(15) { top: 35%; left: 10%; animation-delay: 2.3s; }
.splash-screen .scatter-icon:nth-child(16) { bottom: 10%; right: 45%; animation-delay: 4.2s; }
.splash-screen .scatter-icon:nth-child(17) { top: 50%; left: 50%; animation-delay: 1.8s; }
.splash-screen .scatter-icon:nth-child(18) { bottom: 50%; right: 50%; animation-delay: 3.7s; }
.splash-screen .scatter-icon:nth-child(19) { top: 15%; right: 15%; animation-delay: 2.7s; }
.splash-screen .scatter-icon:nth-child(20) { bottom: 15%; left: 50%; animation-delay: 4.7s; }
.splash-screen .scatter-icon:nth-child(21) { top: 25%; left: 25%; animation-delay: 1.3s; }
.splash-screen .scatter-icon:nth-child(22) { bottom: 35%; right: 45%; animation-delay: 3.3s; }
.splash-screen .scatter-icon:nth-child(23) { top: 45%; right: 15%; animation-delay: 2.2s; }
.splash-screen .scatter-icon:nth-child(24) { bottom: 25%; left: 45%; animation-delay: 4.1s; }

/* Cards Menu Styles */
#cardsMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1300 !important; /* Higher than all other menus */
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

#cardsMenu.activated {
    right: 0;
}

/* History Menu Specific Styles */
#historyMenu.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1300 !important; /* Higher than all other menus */
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

#historyMenu.slide-menu.activated {
    right: 0;  /* Slide to left edge when activated */
}
/* Improved Earnings Summary Styles */
.earnings-summary {
    background: linear-gradient(135deg, var(--primary-color), #404040);
    color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.earnings-header {
    margin-bottom: 1.5rem;
}

.date-filter {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.date-filter i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.date-filter select {
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.date-filter select option {
    background: white;
    color: var(--text-color);
}

.total-earnings {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.earnings-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.earnings-label i {
    font-size: 1.1rem;
}

.total-earnings .amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Settings Menu Specific Styles */
#settingsMenu.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1300 !important; /* Higher than all other menus */
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

#settingsMenu.slide-menu.activated {
    right: 0;  /* Slide to left edge when activated */
}

/* Terms Menu Specific Styles */
#termsMenu.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1300 !important; /* Higher than all other menus */
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

#termsMenu.slide-menu.activated {
    right: 0;  /* Slide to left edge when activated */
}
#helpMenu.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1300 !important; /* Higher than all other menus */
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

#helpMenu.slide-menu.activated {
    right: 0;  /* Slide to left edge when activated */
}
#privacyMenu.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1300 !important; /* Higher than all other menus */
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

#privacyMenu.slide-menu.activated {
    right: 0;  /* Slide to left edge when activated */
}

/* Profile Menu Specific Styles - Slide in from right like history/settings */
#profileMenu.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1100 !important; /* Higher than main slide menus (1001) and sidebar */
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

#profileMenu.slide-menu.activated {
    right: 0;  /* Slide to left edge when activated */
}

/* Card Item Styles */
.cards-list {
    padding: 15px;
}

.card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-info i {
    font-size: 24px;
    color: #000000;
}

.card-details h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.card-details span {
    font-size: 12px;
    color: #6c757d;
}

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

.card-actions .action-btn {
    border: none;
    background: none;
    padding: 5px;
    color: #6c757d;
    transition: color 0.2s;
}

.card-actions .edit-btn:hover {
    color: #6200EA;
}

.card- .delete-btn:hover {
    color: #dc3545;
}
.card-item .default-badge {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    display: none;
}

.card-item .default-badge.active {
    display: block;
}

.card-actions .default-btn {
    color: #aaa;
}

.card-actions .default-btn.active {
    color: var(--primary-color);
}

.card-actions .action-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    transition: color 0.2s ease;
}

.card-actions .action-btn:hover {
    color: var(--primary-color);
}

/* History Menu Styles */
#historyMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    transition: right 0.3s ease-in-out;
    z-index: 1100;
    overflow-y: auto;
}

#historyMenu.activated {
    right: 0;
}

/* History Item Styles */
.history-list {
    padding: 15px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.history-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.history-info i {
    font-size: 24px;
    color: #000000;
}

.history-details h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.history-details span {
    font-size: 12px;
    color: #6c757d;
    display: block;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.history-meta .amount {
    color: #000000;
    font-weight: 500;
}

.history-meta .status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

.history-meta .status.completed {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}
/* Action Buttons Container */
.my-zool-item .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* Main Actions Row (Accept/Decline) */
.my-zool-item .main-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Individual Action Buttons */
.my-zool-item .action-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.my-zool-item .action-btn i {
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: 0.6rem;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

/* Decline button specific style */
.my-zool-item .decline-btn i {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Message Button */
.my-zool-item .message-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.my-zool-item .message-btn i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.2s;
}

/* Edit Zool Button */
.my-zool-item .edit-zool-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.my-zool-item .edit-zool-btn i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.2s;
}

.my-zool-item .edit-zool-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.my-zool-item .edit-zool-btn:hover i {
    color: #5348b8;
}

/* Zool Actions Container */
.my-zool-item .zool-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hover States */
.my-zool-item .action-btn:hover i {
    opacity: 0.8;
}

.my-zool-item .message-btn:hover i {
    opacity: 0.7;
}
.message-container {
    height: 300px;
    overflow-y: auto;
    touch-action: pan-y; /* Enable vertical scrolling on touch devices */
    overscroll-behavior: contain; /* Prevent scroll chaining to parent */
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 70%;
    margin-bottom: 10px;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 10px 15px;
    border-radius: 20px;
    position: relative;
}

.message.sent .message-content {
    background-color: #000;
    color: white;
}

.message.received .message-content {
    background-color: #f0f0f0;
    color: black;
}

.message-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
    display: block;
}

.message-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}

#messageInput {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 20px;
    background: #f0f0f0;
    resize: none;
}

.send-message-btn {
    background: none;
    border: none;
    color: #000;
    padding: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.send-message-btn:hover:not(:disabled) {
    color: #666;
}

.send-message-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.send-message-btn i.bi-hourglass-split {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.report-zool-link {
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.report-zool-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Skeleton Loading Styles */
.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.zool-card.skeleton {
    background: #f5f5f5;
    border: none;
}

.skeleton-distance,
.skeleton-amount {
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    width: 60px;
}

.skeleton-title {
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 12px 0;
    width: 80%;
}

.skeleton-description {
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 8px 0;
    width: 90%;
}

.skeleton-categories {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.skeleton-badge {
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    width: 80px;
}

.skeleton-poster {
    height: 32px;
    background: #e0e0e0;
    border-radius: 16px;
    width: 120px;
    margin-top: 12px;
}

/* Error and Empty States */
.no-zools,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-zools i,
.error-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.error-state {
    color: #dc3545;
}

/* Toast Notification Styles */
.profile-toast {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: auto;
}

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

.profile-toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.profile-toast-success {
    background-color: #6c5ce7;
    color: white;
}

.profile-toast-error {
    background-color: #e74c3c;
    color: white;
}

.profile-toast-info {
    background-color: #3498db;
    color: white;
}

@media (min-width: 768px) {
    .profile-toast {
        left: auto;
        right: 20px;
        max-width: 400px;
    }
}