/* PatiPus Pet Services Platform - Two Color Modern Theme */
/* Elegant Two-Color Palette:
 * Main Color: #EE4949 (Red) - for banners, bars, menus, and primary elements
 * Secondary Color: #2D465B (Dark Blue-Gray) - for text, buttons, icons
 * Background: #FFFFFF (Pure White)
 * Light tones derived from main colors for subtle backgrounds
 */

:root {
    --main-color: #FF6B6B;
    --secondary-color: #3A6EA5;
    --main-light: rgba(238, 73, 73, 0.1);
    --main-hover: rgba(238, 73, 73, 0.8);
    --secondary-light: rgba(45, 70, 91, 0.1);
    --secondary-hover: rgba(45, 70, 91, 0.8);
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-color: rgba(45, 70, 91, 0.15);
    --shadow: rgba(45, 70, 91, 0.08);
    --hover-shadow: rgba(238, 73, 73, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--secondary-color);
    line-height: 1.6;
    width: 100vw;
    max-width: 100vw;
}

/* Layout Structure */
.main-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    background: var(--white);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08),
                4px 0 35px rgba(0, 0, 0, 0.04),
                6px 0 50px rgba(0, 0, 0, 0.02);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-sizing: border-box;
}

/* Logo Styles */
.logo-link {
    display: block;
    text-decoration: none;
    padding: 0.5rem;
}

.sidebar-logo {
    height: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
    /* Ensure SVG displays in original colors */
    filter: none !important;
    color: initial !important;
    fill: initial !important;
}

/* Override any color inheritance for the logo */
.sidebar-header .logo-link,
.sidebar-header .logo-link *,
.sidebar-header .logo-link svg,
.sidebar-header .logo-link svg * {
    color: initial !important;
    fill: initial !important;
}

/* Ensure SVG classes maintain their original colors */
.sidebar-logo .st0,
.logo-link .st0,
svg .st0 {
    fill: #2D465B !important;
}

.sidebar-logo .st1,
.logo-link .st1, 
svg .st1 {
    fill: #EE4949 !important;
}

/* Remove any potential color filters or effects */
.sidebar-header img,
.sidebar-header svg {
    filter: none !important;
    -webkit-filter: none !important;
    color: unset !important;
}

.sidebar-header {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    box-shadow: 0 2px 12px var(--shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.category-list {
    padding: 1rem 0;
}

.category-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    width: 100%;
}

.category-item:hover {
    background: var(--main-light);
    border-left-color: var(--main-color);
    padding-left: 2rem;
}

.category-item.active {
    background: var(--main-color);
    border-left-color: var(--main-color);
    color: var(--white);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08),
                0 4px 30px rgba(0, 0, 0, 0.04),
                0 0 20px var(--shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-left {
    flex: 1;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--main-color);
}

.header-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 70, 91, 0.25),
                0 3px 12px rgba(45, 70, 91, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--hover-shadow),
                0 3px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-outline:hover {
    background: var(--main-color);
    color: var(--white);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Content Area */
.content {
    padding: 2rem;
}

/* Showcase/Vitrin */
.showcase {
    margin-bottom: 2rem;
}

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

.showcase-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* Listing Card */
.listing-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
                0 2px 8px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(213, 219, 219, 0.4);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10),
                0 8px 25px rgba(0, 0, 0, 0.06),
                0 0 20px var(--hover-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--main-light);
}

.listing-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
}

.listing-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.listing-description {
    color: var(--secondary-color);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.listing-city {
    margin-top: auto;
    margin-bottom: 0.5rem;
}
}

.listing-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--main-color);
}

.listing-category {
    background: var(--secondary-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05),
                0 0 0 3px var(--main-light),
                0 2px 8px var(--hover-shadow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Search Bar */
.search-form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    border: 1px solid rgba(189, 195, 199, 0.3);
}

.search-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.search-col {
    flex: 1;
}

/* Messages */
.messages {
    margin: 1rem 1rem 1rem 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--main-light);
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

.alert-warning {
    background: var(--secondary-light);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.alert-error {
    background: var(--main-light);
    color: var(--main-hover);
    border: 1px solid var(--main-color);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
                0 2px 8px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    border: 1px solid rgba(213, 219, 219, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10),
                0 6px 18px rgba(0, 0, 0, 0.05),
                0 0 15px var(--shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.dashboard-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-color);
}

.dashboard-label {
    color: var(--secondary-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Table */
.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

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

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-gray);
    font-weight: 600;
}

.table tbody tr:hover {
    background: var(--main-light);
}

/* Authentication Forms */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
}

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

.auth-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--secondary-color);
    opacity: 0.7;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--main-color);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--main-hover);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.page-link.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .search-row {
        flex-direction: column;
    }
}

/* Status badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    line-height: 1;
}

.status-badge i {
    vertical-align: middle;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.status-active {
    background: var(--main-light);
    color: var(--main-color);
}

.status-inactive {
    background: var(--secondary-light);
    color: var(--secondary-color);
}

.status-pending {
    background: var(--secondary-light);
    color: var(--secondary-hover);
}

.status-approved {
    background: var(--main-light);
    color: var(--main-hover);
}

.status-featured {
    background: var(--main-color);
    color: var(--white);
    box-shadow: 0 2px 6px var(--hover-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.status-featured i {
    vertical-align: middle;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* SPECIFIC ICON COLOR RULES */

/* Primary button icons - white */
.btn-primary .bi {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}

/* Secondary button icons - white by default */
.btn-secondary .bi {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}

/* EXCEPTION: Account icon should be secondary color */
.btn-secondary .bi-person-circle {
    color: var(--secondary-color) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

/* EXCEPTION: Login icon should be secondary color - HIGHEST PRIORITY */
a.btn-secondary .bi-box-arrow-in-right,
.btn.btn-secondary .bi-box-arrow-in-right {
    color: var(--secondary-color) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

/* Outline button icons - default to button text color */
.btn-outline .bi {
    color: var(--main-color) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    transition: color 0.3s ease !important;
}

/* Outline button icons on hover - white */
.btn-outline:hover .bi {
    color: white !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}

/* SPECIFIC: Logout icon behavior - HIGHEST PRIORITY */
.btn-outline.logout-btn .logout-icon,
.logout-btn .bi.logout-icon {
    color: var(--main-color) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    transition: color 0.3s ease !important;
}

.btn-outline.logout-btn:hover .logout-icon,
.logout-btn:hover .bi.logout-icon {
    color: white !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}

/* Alert/message icons */
.alert .bi {
    color: inherit !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle .bi {
    color: var(--secondary-color) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

/* Left menu icons - keep them darker for contrast on white sidebar */
.category-item .bi {
    color: var(--secondary-color) !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    text-shadow: none !important;
}

.category-item.active .bi {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 0 0 2px rgba(0,0,0,0.3) !important;
}

.category-item:hover .bi {
    color: var(--main-color) !important;
    font-weight: 900 !important;
}

/* Elegant focus states for better accessibility */
*:focus {
    outline: 2px solid var(--main-light) !important;
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Refined text selection */
::selection {
    background: var(--main-light);
    color: var(--main-color);
}

::-moz-selection {
    background: var(--main-light);
    color: var(--main-color);
}

/* Comments Section */
.comments-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
                0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
    border: 1px solid rgba(213, 219, 219, 0.5);
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.comments-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.comments-count {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Comment Form */
.comment-form {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.comment-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04),
                0 0 0 3px var(--main-light),
                0 2px 8px var(--hover-shadow);
}

.comment-textarea::placeholder {
    color: var(--secondary-color);
    opacity: 0.5;
    font-style: italic;
}

.comment-submit {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 70, 91, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.comment-submit:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 70, 91, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.comment-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(45, 70, 91, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Comments Section */
.comments-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
                0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(213, 219, 219, 0.4);
    padding: 0;
    margin-top: 2rem;
    overflow: hidden;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 2rem;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.comments-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.comments-count {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 6px var(--hover-shadow);
}

/* Comment Form */
.comment-form {
    padding: 1.5rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    opacity: 0.7;
    font-size: 0.95rem;
}

.comment-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    background: var(--light-gray);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--main-color);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--main-light);
}

.comment-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(45, 70, 91, 0.2);
}

.comment-submit:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 70, 91, 0.3);
}

/* Comment Items */
.comment-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
}

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

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(45, 70, 91, 0.15);
}

.comment-author-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--secondary-color);
    opacity: 0.6;
    font-size: 0.9rem;
}

.comment-content {
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-left: 3rem;
}

.comment-actions {
    padding-left: 3rem;
}

.comment-reply-btn {
    background: transparent;
    border: none;
    color: var(--main-color);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.comment-reply-btn:hover {
    background: var(--main-light);
    color: var(--main-hover);
}

/* Reply Form */
.reply-form {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-left: 3rem;
    border: 1px solid var(--border-color);
}

.reply-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    background: var(--white);
    transition: all 0.3s ease;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px var(--main-light);
}

.reply-submit {
    margin-top: 0.8rem;
    padding: 0.6rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.reply-submit:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(45, 70, 91, 0.2);
}

/* Replies */
.comment-replies {
    margin-top: 1.5rem;
    padding-left: 3rem;
    border-left: 3px solid var(--light-gray);
    position: relative;
}

.comment-replies::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--main-light);
    border-radius: 2px;
    box-shadow: 0 0 2px var(--hover-shadow);
}

.reply-item {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.reply-item:last-child {
    margin-bottom: 0;
}

/* No comments state */
.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-comments-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.no-comments-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.no-comments-subtext {
    font-size: 0.9rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

/* Login to comment */
.login-to-comment {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 1.5rem 2rem;
}

.login-to-comment-icon {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.login-to-comment-text {
    color: var(--secondary-color);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.login-to-comment-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    background: var(--white);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--main-color);
}

.login-to-comment-link:hover {
    background: var(--main-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--hover-shadow);
}

/* Sidebar header icons */
.sidebar-header .bi {
    color: var(--white) !important;
    font-weight: 900 !important;
}

/* Button icons - ensure they're bright and visible */
.btn .bi {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

.btn-secondary .bi {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}

.btn-outline .bi {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}

/* Search and form icons */
.search-btn .bi,
.comment-submit .bi,
.reply-submit .bi {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

/* Status badge icons should inherit from parent but be bold */
.status-badge .bi,
.alert .bi {
    color: inherit !important;
    font-weight: 900 !important;
}

/* Header and navigation icons - ALL WHITE */
.header .bi {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}

/* ULTRA-SPECIFIC: Force header button icons to be 100% bright white */
.header-right .btn .bi,
.header-right .btn-primary .bi,
.header-right .btn-secondary .bi,
.header-right .btn-outline .bi,
.user-menu .btn .bi,
a.btn .bi,
button.btn .bi {
    color: #FFFFFF !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
    opacity: 1 !important;
    filter: brightness(1) !important;
}

/* Specific icons by class name to override any other styling */
.bi-chat-left-text,
.bi-person-circle,
.bi-plus-circle,
.bi-box-arrow-right,
.bi-box-arrow-in-right,
.bi-person-plus {
    color: #FFFFFF !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}
.bi-search-heart {
    color:#EE4949 !important;
    font-weight:900 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle .bi {
    color: white !important;
    font-weight: 900 !important;
}

/* Comment and chat icons */
.comment-avatar,
.conversation-avatar {
    color: white !important;
    font-weight: 900 !important;
}

.comment-reply-btn .bi,
.comment-date .bi {
    color: var(--secondary-color) !important;
    font-weight: 900 !important;
}

/* Rating and review icons */
.rating-stars .bi {
    font-weight: 900 !important;
}

/* Dashboard and listing icons */
.dashboard-card .bi,
.listing-card .bi {
    font-weight: 900 !important;
}

/* Ensure all icons have consistent bold weight */
i[class*="bi-"],
.bi {
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override for specific contexts where we want normal icons */
.logo-link .bi,
.sidebar-logo .bi {
    font-weight: normal !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Complete Mobile Layout Overhaul - Centered & Aligned */
@media (max-width: 768px) {
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Complete layout restructure */
    .main-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        transition: left 0.3s ease;
        z-index: 1001;
        height: 100vh;
        top: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Completely centered header */
    .header {
        width: 100%;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: var(--white);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
        border-radius: 0 0 20px 20px;
        margin-bottom: 1rem;
    }
    
    .header-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .mobile-menu-toggle {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 10;
        background: var(--main-color);
        color: white;
        border-radius: 8px;
        padding: 0.5rem;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-title {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--main-color);
        text-align: center;
    }
    
    .header-subtitle {
        font-size: 1rem;
        color: var(--secondary-color);
        opacity: 0.7;
        text-align: center;
        max-width: 300px;
    }
    
    /* Centered user menu */
    .header-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    
    .user-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 350px;
    }
    
    .user-menu > span {
        font-size: 1rem;
        margin-bottom: 1rem;
        color: var(--secondary-color);
        font-weight: 500;
    }
    
    .user-menu div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem !important;
        width: 100%;
        margin-top: 0 !important;
    }
    
    /* Completely redesigned buttons for mobile */
    .btn {
        font-size: 0.9rem;
        padding: 0.8rem 2rem;
        min-height: 48px;
        border-radius: 25px;
        font-weight: 600;
        text-align: center;
        justify-content: center;
        width: 100%;
        max-width: 250px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    /* Mobile button icons - FORCE WHITE */
    .btn .bi {
        color: #FFFFFF !important;
        font-weight: 900 !important;
        text-shadow: 0 0 1px rgba(0,0,0,0.3) !important;
    }
    
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    }
    
    .btn-sm {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
        min-height: 42px;
        max-width: 200px;
    }
    
    /* Completely centered content */
    .content {
        width: 100%;
        max-width: 400px;
        padding: 2rem 1.5rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: transparent;
        min-height: auto;
    }
    
    /* Centered grid layouts */
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .listings-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Centered cards */
    .listing-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 1.5rem auto;
        padding: 2rem;
        border-radius: 20px;
        background: var(--white);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1.5rem auto;
        padding: 2.5rem 2rem;
        border-radius: 20px;
        background: var(--white);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Centered table container */
    .table-container {
        width: 100%;
        max-width: 380px;
        margin: 1.5rem auto;
        padding: 1rem;
        background: var(--white);
        border-radius: 15px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        overflow-x: auto;
    }
    
    .table {
        width: 100%;
        min-width: 300px;
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 1rem 0.5rem;
        text-align: center;
        white-space: nowrap;
    }
    
    /* Centered forms */
    .form-group {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 1.5rem auto;
        text-align: left;
    }
    
    .form-control {
        width: 100%;
        font-size: 1rem;
        padding: 1rem 1.2rem;
        border-radius: 12px;
        min-height: 52px;
        text-align: left;
        border: 2px solid var(--border-color);
        transition: all 0.3s ease;
    }
    
    .form-control:focus {
        border-color: var(--main-color);
        box-shadow: 0 0 0 4px var(--main-light);
        transform: translateY(-2px);
    }
    
    .form-label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.8rem;
        color: var(--secondary-color);
        text-align: center;
        display: block;
    }
    
    /* Centered statistics */
    .dashboard-number {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--main-color);
    }
    
    .dashboard-label {
        font-size: 1rem;
        font-weight: 500;
        color: var(--secondary-color);
        opacity: 0.7;
        line-height: 1.4;
    }
    
    /* Centered search section */
    .quick-search-section {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 2rem auto;
        padding: 2.5rem 2rem;
        background: var(--white);
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    /* Completely centered search container */
    .search-container {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        text-align: center;
    }
    
    .search-container h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-align: center;
        color: var(--main-color);
        font-weight: 700;
    }
    
    /* Completely centered comments section */
    .comment-section {
        width: 100%;
        max-width: 380px;
        margin: 2rem auto;
        background: var(--white);
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        text-align: center;
    }
    
    .comment-item {
        padding: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .comment-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .comment-author {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .comment-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .comment-author-name {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .comment-date {
        justify-content: center;
        text-align: center;
    }
    
    .comment-content {
        padding: 0;
        margin-bottom: 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
        text-align: center;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .comment-actions {
        padding: 0;
        display: flex;
        justify-content: center;
    }
    
    .reply-form {
        width: 100%;
        max-width: 320px;
        margin: 1.5rem auto;
        padding: 1.5rem;
        border-radius: 15px;
        text-align: center;
    }
    
    .comment-replies {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }
    
    .comment-textarea,
    .reply-textarea {
        width: 100%;
        min-height: 120px;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
        border: 2px solid var(--border-color);
        text-align: left;
    }
    
    .comment-submit,
    .reply-submit {
        width: 100%;
        max-width: 200px;
        margin: 1rem auto 0 auto;
        display: flex;
        justify-content: center;
        border-radius: 25px;
    }
    
    /* Centered listing detail layout */
    .listing-detail-container,
    .content > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }
    
    .content > div:first-child > div {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Centered messages */
    .messages {
        width: 100%;
        max-width: 350px;
        margin: 1.5rem auto;
        text-align: center;
    }
    
    .alert {
        padding: 1.2rem;
        border-radius: 15px;
        margin-bottom: 1rem;
        font-size: 1rem;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Completely centered auth forms */
    .auth-container {
        width: 100%;
        max-width: 350px;
        margin: 2rem auto;
        padding: 3rem 2rem;
        border-radius: 20px;
        background: var(--white);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .auth-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2.5rem;
        color: var(--main-color);
        font-weight: 700;
    }
    
    /* Centered status badges */
    .status-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-weight: 600;
        margin: 0 auto;
        display: inline-block;
    }
    
    /* Completely centered conversations list */
    .conversation-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 1.5rem auto;
        padding: 2rem;
        background: var(--white);
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .conversation-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }
    
    .conversation-meta {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .conversation-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        text-align: center;
        font-weight: 600;
    }
    
    .conversation-snippet {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        color: var(--text-light);
    }
    
    /* Centered chat interface */
    .chat-container {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        background: var(--white);
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    .chat-messages {
        padding: 1.5rem;
        max-height: 50vh;
        text-align: center;
    }
    
    .message-item {
        margin-bottom: 1.5rem;
        padding: 1rem 1.2rem;
        border-radius: 20px;
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .message-input {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.2rem;
        font-size: 1rem;
        border-radius: 25px;
        border: 2px solid var(--border-color);
        margin: 0 auto;
    }
    
    .message-send-btn {
        width: 100%;
        max-width: 150px;
        padding: 1rem 1.5rem;
        min-height: 48px;
        border-radius: 25px;
        margin: 1rem auto 0 auto;
        display: flex;
        justify-content: center;
    }
    
    /* Perfectly centered empty states */
    .empty-inbox,
    .no-comments,
    .no-listings {
        width: 100%;
        max-width: 350px;
        margin: 2rem auto;
        padding: 3rem 2rem;
        text-align: center;
        background: var(--white);
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .empty-inbox-icon,
    .no-comments-icon,
    .no-listings-icon {
        font-size: 4rem;
        margin-bottom: 2rem;
        color: var(--secondary-color);
        opacity: 0.3;
    }
    
    .empty-inbox-text,
    .no-comments-text,
    .no-listings-text {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        font-weight: 700;
        color: var(--secondary-color);
        text-align: center;
    }
    
    .empty-inbox-subtext,
    .no-comments-subtext,
    .no-listings-subtext {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--secondary-color);
        opacity: 0.7;
        text-align: center;
        max-width: 280px;
    }
    
    /* Perfectly centered search section */
    .search-input-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 0;
        width: 100%;
    }
    
    .search-input,
    .search-category,
    .search-btn {
        width: 100%;
        max-width: 280px;
        border-radius: 25px !important;
        margin-bottom: 0;
        min-height: 52px;
        text-align: center;
    }
    
    .search-btn {
        padding: 1rem 2rem;
        font-weight: 700;
        font-size: 1.1rem;
        box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    }
    
    .search-input {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border: 2px solid var(--border-color);
    }
    
    .search-category {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border: 2px solid var(--border-color);
    }
    
    /* Centered pagination */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 3rem auto;
        flex-wrap: wrap;
        gap: 0.8rem;
        width: 100%;
        max-width: 350px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Additional centered page elements */
    .page-title {
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: 2rem;
        color: var(--main-color);
        font-weight: 700;
    }
    
    .section-title {
        text-align: center;
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        color: var(--secondary-color);
        font-weight: 600;
    }
    
    /* Center all headings */
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        color: var(--main-color) !important;
    }
    
    /* MOBILE SPECIFIC: Fresher main menu - more spacious sidebar */
    .sidebar {
        background: linear-gradient(135deg, var(--white) 0%, #fefefe 100%);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.12);
        border-right: 1px solid rgba(39, 174, 96, 0.1);
    }
    
    .sidebar-header {
        padding: 0.5rem;
        background: var(--white);
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    
    /* Remove platform tagline since we only have logo now */
    .sidebar-header::after {
        display: none;
    }
    
    /* Mobile logo styles */
    .sidebar-logo {
        height: 50px !important;
        width: auto;
        display: block;
        margin: 0 auto;
    }
    
    /* Ensure mobile logo colors are preserved */
    .sidebar-header .logo-link svg .st0 {
        fill: #2D465B !important;
    }
    
    .sidebar-header .logo-link svg .st1 {
        fill: #EE4949 !important;
    }
    
    .category-list {
        padding: 1.5rem 0;
    }
    
    .category-item {
        padding: 1.2rem 2rem;
        margin: 0.3rem 1rem;
        border-radius: 12px;
        border: none;
        border-left: 4px solid transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .category-item i {
        font-size: 1.2rem !important;
        color: var(--secondary-color) !important;
        font-weight: 900 !important;
        width: 20px;
        text-align: center;
    }
    
    .category-item:hover {
        background: var(--main-light);
        border-left-color: var(--main-color);
        transform: translateX(8px) translateY(-2px);
        box-shadow: 0 6px 20px var(--hover-shadow);
        color: var(--main-hover);
    }
    
    .category-item.active {
        background: var(--main-color);
        color: white;
        border-left-color: var(--main-color);
        font-weight: 600;
        box-shadow: 0 8px 25px var(--hover-shadow);
    }
    
    .category-item.active i {
        color: white;
    }
    
    /* MOBILE SPECIFIC: Hide chat sidebar completely on mobile */
    .chat-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        height: calc(100vh - 120px);
        max-width: 100%;
    }
    
    .chat-sidebar {
        display: none !important; /* Completely hide on mobile */
    }
    
    .chat-main {
        width: 100%;
        border-radius: 15px;
        margin: 0 auto;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    /* Enhanced chat header for mobile */
    .chat-header {
        padding: 1.5rem;
        background: var(--main-color);
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .chat-participant {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .participant-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.25);
        border: 3px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .participant-info {
        align-items: center;
        text-align: center;
    }
    
    .participant-name {
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .participant-role {
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.4rem 1rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        margin-top: 0.5rem;
    }
    
    .chat-actions {
        display: none; /* Hide toggle button on mobile */
    }
    
    /* Enhanced chat messages for mobile */
    .chat-messages {
        padding: 1.5rem 1rem;
        background: var(--light-gray);
        min-height: 300px;
    }
    
    .message-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .message-bubble {
        border-radius: 20px;
        padding: 1.2rem 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        max-width: 85%;
        min-width: 180px;
    }
    
    .sent .message-bubble {
        background: var(--secondary-color);
        color: var(--white);
        border-bottom-right-radius: 8px;
    }
    
    .received .message-bubble {
        background: white;
        border-bottom-left-radius: 8px;
        border: 1px solid rgba(213, 219, 219, 0.3);
    }
    
    /* Enhanced chat input for mobile */
    .chat-input {
        padding: 1.5rem;
        background: white;
        border-top: 1px solid var(--border-color);
    }
    
    .input-group {
        background: var(--light-gray);
        padding: 1rem 1.2rem;
        border-radius: 25px;
        border: 2px solid var(--border-color);
    }
    
    .input-group:focus-within {
        border-color: var(--main-color);
        background: white;
        box-shadow: 0 0 0 4px var(--main-light);
        transform: translateY(-2px);
    }
    
    .input-avatar {
        width: 40px;
        height: 40px;
        background: var(--secondary-color);
        color: white;
        font-size: 1rem;
    }
    
    .message-input {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .send-button {
        padding: 0.8rem 1.5rem;
        border-radius: 20px;
        font-weight: 600;
        background: var(--secondary-color);
        color: var(--white);
        box-shadow: 0 4px 15px rgba(45, 70, 91, 0.2);
    }
    
    .send-button:hover {
        background: var(--secondary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(45, 70, 91, 0.3);
    }
    
    /* MOBILE SPECIFIC: Enhanced conversations list */
    .conversations-list {
        gap: 1.5rem;
        padding: 0;
    }
    
    .conversation-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        border-radius: 20px;
        background: white;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(213, 219, 219, 0.2);
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .conversation-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
        border-color: rgba(39, 174, 96, 0.3);
    }
    
    .conversation-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
        background: var(--secondary-color);
        color: var(--white);
        margin: 0 auto 1rem auto;
        box-shadow: 0 6px 20px rgba(45, 70, 91, 0.2);
    }
    
    .conversation-content {
        text-align: center;
    }
    
    .conversation-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .conversation-participant {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--secondary-color);
    }
    
    .conversation-date {
        justify-content: center;
        padding: 0.3rem 1rem;
        background: var(--light-gray);
        border-radius: 15px;
        font-size: 0.85rem;
    }
    
    .conversation-listing {
        justify-content: center;
        font-size: 1rem;
        font-weight: 600;
        color: var(--main-color);
        margin-bottom: 1rem;
    }
    
    .conversation-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .listing-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--main-color);
        padding: 0.5rem 1.2rem;
        background: var(--main-light);
        border-radius: 20px;
    }
    
    .listing-category {
        padding: 0.5rem 1.2rem;
        background: var(--secondary-light);
        border-radius: 20px;
        font-size: 0.9rem;
        color: var(--secondary-color);
    }
    
    .conversation-actions {
        align-items: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .open-chat-btn {
        padding: 0.8rem 2rem;
        border-radius: 25px;
        background: var(--secondary-color);
        color: white;
        font-weight: 600;
        font-size: 1rem;
        box-shadow: 0 4px 15px rgba(45, 70, 91, 0.3);
        transition: all 0.3s ease;
        border: none;
    }
    
    .conversation-card:hover .open-chat-btn {
        background: var(--secondary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(45, 70, 91, 0.4);
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .content {
        padding: 1.5rem;
    }
    
    .header {
        padding: 1rem 1.5rem;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile devices - Extra centered layout */
@media (max-width: 480px) {
    /* Tighter header for small screens */
    .header {
        padding: 1.2rem 1rem;
    }
    
    .header-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    /* Smaller content max-width for tiny screens */
    .content {
        max-width: 320px;
        padding: 1.5rem 1rem;
    }
    
    /* Compact buttons for small screens */
    .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.5rem;
        min-height: 44px;
        max-width: 220px;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
        min-height: 40px;
        max-width: 180px;
    }
    
    /* Compact search section */
    .quick-search-section {
        max-width: 300px;
        padding: 2rem 1.5rem;
    }
    
    /* Smaller statistics */
    .dashboard-number {
        font-size: 2.4rem;
    }
    
    .dashboard-label {
        font-size: 0.9rem;
    }
    
    /* Compact table */
    .table-container {
        max-width: 320px;
    }
    
    .table {
        font-size: 0.8rem;
        min-width: 280px;
    }
    
    .table th,
    .table td {
        padding: 0.8rem 0.3rem;
    }
    
    /* Smaller cards */
    .listing-card {
        max-width: 300px;
        padding: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .dashboard-card {
        max-width: 280px;
        padding: 2rem 1.5rem;
    }
    
    .conversation-card {
        max-width: 300px;
        padding: 1.5rem;
    }
    
    /* Compact auth forms */
    .auth-container {
        max-width: 300px;
        margin: 1.5rem auto;
        padding: 2.5rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }
    
    /* Smaller form controls */
    .form-group {
        max-width: 280px;
    }
    
    .form-control {
        min-height: 50px;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Compact comments */
    .comment-section {
        max-width: 320px;
    }
    
    .comment-item {
        padding: 1.2rem;
    }
    
    .comment-content {
        font-size: 0.95rem;
        max-width: 260px;
    }
    
    .comment-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Compact chat */
    .chat-container {
        max-width: 320px;
    }
    
    .message-item {
        padding: 0.8rem 1rem;
    }
    
    .message-input {
        max-width: 280px;
    }
    
    /* Compact empty states */
    .empty-inbox,
    .no-comments,
    .no-listings {
        max-width: 300px;
        padding: 2.5rem 1.5rem;
    }
    
    .empty-inbox-icon,
    .no-comments-icon,
    .no-listings-icon {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .empty-inbox-text,
    .no-comments-text,
    .no-listings-text {
        font-size: 1.2rem;
    }
    
    .empty-inbox-subtext,
    .no-comments-subtext,
    .no-listings-subtext {
        font-size: 0.95rem;
        max-width: 240px;
    }
    
    /* Compact search inputs */
    .search-input,
    .search-category,
    .search-btn {
        max-width: 250px;
        min-height: 50px;
    }
    
    .search-container {
        max-width: 300px;
    }
    
    /* Compact pagination */
    .pagination {
        max-width: 300px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
}
/* FORCE visible mobile style for "Tüm Kategoriler" dropdown */
@media (max-width: 768px) {
    select.search-category {
        background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
        color: #fff !important;
        font-weight: 700 !important;
        border: 2px solid #1e8449 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(39, 174, 96, 0.5) !important;
        text-align: center !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        appearance: none !important;
        padding: 1rem !important;
        font-size: 1.05rem !important;
    }

    select.search-category:focus {
        outline: none !important;
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(39, 174, 96, 0.6) !important;
    }
}

/* FINAL CLEAN MOBILE STYLE for "Tüm Kategoriler" dropdown */
@media (max-width: 768px) {
    .quick-search-section select.search-category {
        background: #ffffff !important;
        color: var(--text-color) !important;
        font-weight: 600 !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        text-align-last: center !important;
        appearance: none !important;
        transition: all 0.3s ease;
    }

    .quick-search-section select.search-category:focus,
    .quick-search-section select.search-category:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
        transform: translateY(-2px);
    }
}
.sidebar-header img {
    color: initial;
    fill: initial;
}
.sidebar-logo svg { display: block; } /* sometimes helps */

/* Reset any inherited text color that could affect SVGs using currentColor */
.sidebar-header,
.sidebar-header * {
  color: unset !important;
}

/* If logo is used as <img>, prevent CSS from blending or filtering it */
.sidebar-header img,
.sidebar-header .sidebar-logo,
.sidebar-logo img {
  -webkit-filter: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  color: unset !important;  /* try to stop currentColor inheritance */
  background: transparent !important;
  display: block;
  height: 80px;        /* adjust size as you like */
  width: auto;
  margin: 0 auto;
}

/* If you use <object> or inline <svg>, make sure the svg displays as block */
.sidebar-header object,
.sidebar-header svg {
  display: block;
  height: 80px;        /* adjust */
  width: auto;
  margin: 0 auto;
}

#toggleIcon {
        color: var(--main-color);
    }

.phone-icon {
    color: var(--main-color) !important;
}

.listing-actions-chat .btn.btn-secondary i.bi-telephone {
    color: var(--main-color) !important; /*çalış artık amk */
    fill: var(--main-color) !important;
}
