
/* Reset and base styles */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}

/* ---- Search row: compact, aligned, clean ---- */
.search-card {
    background: linear-gradient(135deg, #fbfdfb, #f4f8f4);
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    border: 1px solid #dfe7df;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.input-chip {
    display: contents;
}

.input-chip label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #475447;
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 0.15rem;
    width: 100%;
}

.location-chip {
    min-width: 260px;
}

.small-chip {
    min-width: 170px;
}

.action-chip {
    min-width: 150px;
}

.search-row .search-input,
.search-row .location-input,
.search-row .distance-select,
.search-row .category-search-input {
    width: 100%;
    height: 52px;
    padding: 0 0.85rem;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 1px solid #d6dfd4;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: all 0.12s ease;
}

.search-row .search-input:focus,
.search-row .location-input:focus,
.search-row .distance-select:focus {
    outline: none;
    border-color: #1f6a2b;
    box-shadow: 0 0 0 3px rgba(31,106,43,0.18);
}

.location-input-wrapper {
    position: relative;
}

.search-row .use-location-btn {
    width: 100%;
    height: 52px;
    justify-content: center;
    padding: 0 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #d0dbd0;
    background: linear-gradient(180deg, #f9fbf9 0%, #f2f6f2 100%);
    color: #2c3b2c;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    transition: all 0.12s ease;
}

.search-row .use-location-btn:hover {
    border-color: #b8c8b7;
    background: linear-gradient(180deg, #f4f8f4 0%, #e8f1e8 100%);
}

.search-row .distance-select {
    padding-right: 1.4rem;
}

.search-row .search-btn {
    width: 150px;
    height: 52px;
    justify-content: center;
    padding: 0 1.2rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 12px;
    border: 1px solid #164822;
    background: linear-gradient(145deg, #1f6a32 0%, #155027 100%);
    box-shadow: 0 12px 22px rgba(21,80,39,0.28);
    letter-spacing: 0.01em;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.search-row .search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(21,80,39,0.34);
    filter: brightness(1.03);
}

.search-row-primary {
    grid-template-columns: 2fr 1.5fr auto 1fr auto;
}

.search-row-secondary {
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
}

.wide-chip {
    grid-column: 1 / span 1;
}

.skinny-action {
    width: 180px;
    min-width: 180px;
}

.search-row .post-listing-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .search-card {
        padding: 1rem;
    }
    .search-row,
    .search-row-primary,
    .search-row-secondary {
        grid-template-columns: 1fr;
    }
    .search-row > * {
        height: 48px;
        min-height: 48px;
    }
    .skinny-action {
        width: 100%;
        min-width: 0;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 30%, #3d6b3d 70%, #4a7c4a 100%);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Sloth mascot removed from body::before - now in footer */

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1001;
}
header {
    padding: 8px 40px;            /* less vertical padding = thinner bar */
}

.header-content {
    display: flex;
    align-items: center;          /* center logo + nav vertically */
    justify-content: space-between;
}

.site-logo {
    margin: 0;                    /* remove extra h1 margin */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 72px;                 /* bigger logo */
    display: block;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;                  /* spacing between Login / Register */
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

header h1::after {
    content: '🌿';
    position: absolute;
    right: -40px;
    top: 0;
    font-size: 1.5rem;
    animation: leafSway 3s ease-in-out infinite;
}

@keyframes leafSway {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

/* Main content styles */
main {
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    width: 90%;
    max-width: 500px;
    min-width: 300px;
    overflow: hidden;
}

/* Register page - wider container */
main.register-page {
    max-width: 600px;
}

/* Auth page styles */
.auth-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250, 252, 250, 0.95));
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.auth-header h2 {
    color: #123412;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #123412;
    background-clip: unset;
}

.auth-header .subtitle {
    color: #606a60;
    font-size: 1rem;
    margin-bottom: 0;
}

.auth-form {
    margin-top: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-top: 0;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 0;
    border: 2px solid #d6dfd4;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1f6a2b;
    box-shadow: 0 0 0 3px rgba(31,106,43,0.18);
    background: #ffffff;
}

.form-group input::placeholder {
    color: #999;
}

.auth-btn {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(145deg, #1f6a32 0%, #155027 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 12px 22px rgba(21,80,39,0.28);
    letter-spacing: 0.01em;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(21,80,39,0.34);
    filter: brightness(1.03);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e6eee6;
}

.auth-footer p {
    color: #606a60;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #1f6a2b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #155027;
    text-decoration: underline;
}

.back-link {
    margin-top: 1rem;
}

.back-link a {
    color: #2d5a2d;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #1f6a2b;
    text-decoration: underline;
}

/* Typography */
h2 {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Form styles */
label {
    display: block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #2d5a2d;
    box-shadow: 0 0 0 3px rgba(45, 90, 45, 0.2);
    background: white;
}

input::placeholder {
    color: #999;
}

input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #2d5a2d;
    background: white;
}

input[type="file"]:focus {
    outline: none;
    border-color: #2d5a2d;
    box-shadow: 0 0 0 3px rgba(45, 90, 45, 0.2);
}

small {
    display: block;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

/* Button styles */
button {
    margin-top: 2rem;
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 77, 26, 0.3);
    position: relative;
    overflow: hidden;
}

/* Removed button::before emoji - no emojis on buttons */

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

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 26, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Link styles */
a {
    color: #1a4d1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #2d5a2d;
    text-decoration: underline;
}

/* Error message styles */
.error-message {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #c33;
    font-weight: 500;
}

/* Feature cards for home page */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


/* Marketplace specific styles */
.marketplace {
    max-width: 1200px;
    margin: 2.25rem auto 0;
    padding: 2rem;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(255,255,255,0.95), rgba(234, 245, 235, 0.9));
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(45,90,45,0.12), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(59, 147, 98, 0.12), transparent 35%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.25rem;
    align-items: center;
    z-index: 1;
}

.hero-copy .eyebrow {
    color: #2d5a2d;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.15;
    margin: 0.75rem 0 0.5rem;
    color: #123412;
}

.hero-subtitle {
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.btn.primary {
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(26,77,26,0.28);
}

.btn.ghost {
    background: white;
    color: #1a4d1a;
    border-color: #dbe4db;
    box-shadow: none;
}

.btn.ghost:hover {
    background: #f5f7f5;
    border-color: #1a4d1a;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat {
    background: white;
    border: 1px solid #e6eee6;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a4d1a;
}

.stat-label {
    color: #606a60;
    font-size: 0.95rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    border: 1px solid #e1e8e1;
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

.card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pill {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.pill.success {
    background: #e9f5ec;
    color: #1f6a2b;
    border-color: #cce6d4;
}

.pill.neutral {
    background: #f3f5f7;
    color: #3d4a3d;
    border-color: #dfe6df;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    color: #3f4a3f;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.card-list li strong {
    color: #1f3d1f;
}

.card-footer .footnote {
    color: #708070;
    font-size: 0.9rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.muted {
    color: #606a60;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f6faf6;
    color: #2d5a2d;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #dbe6db;
    font-weight: 600;
    white-space: nowrap;
}

.section-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2d5a2d;
    display: inline-block;
}

.results-section {
    background: linear-gradient(135deg, rgba(244, 250, 244, 0.95), rgba(249, 254, 249, 0.96));
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Header with navigation */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.user-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.welcome {
    color: #333;
    font-weight: 500;
}

.nav-link {
    color: #1a4d1a;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 999px; /* pill shape */
    border: 2px solid #1a4d1a;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(26, 77, 26, 0.3);
    text-decoration: none;
}

/* Search section */
.search-section {
    background: linear-gradient(135deg, rgba(244, 250, 244, 0.95), rgba(249, 254, 249, 0.96));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.filter-row > * {
    height: 100%;
}

.post-listing-btn {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-input, .location-input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.search-input:focus, .location-input:focus {
    outline: none;
    border-color: #2d5a2d;
    box-shadow: 0 0 0 3px rgba(45, 90, 45, 0.2);
}

.distance-select, .category-select {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    height: 100%;
    box-sizing: border-box;
}

/* Searchable category dropdown */
.searchable-select-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
}

.category-search-input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.category-search-input:focus {
    outline: none;
    border-color: #2d5a2d;
    box-shadow: 0 0 0 3px rgba(45, 90, 45, 0.2);
}

.category-search-input::placeholder {
    color: #999;
}

.category-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #2d5a2d;
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10001;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.category-dropdown.show {
    display: block;
}

.category-option {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.category-option:first-child {
    border-radius: 12px 12px 0 0;
}

.category-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.category-option:hover {
    background-color: #f0f7f0;
}

.category-option.selected {
    background-color: #2d5a2d;
    color: white;
}

.category-option.hidden {
    display: none;
}

/* Location autocomplete suggestions */
.location-input-wrapper {
    position: relative;
    flex: 1;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #2d5a2d;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10001;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.location-suggestions.show {
    display: block;
}

.location-suggestion {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.location-suggestion:first-child {
    border-radius: 12px 12px 0 0;
}

.location-suggestion:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.location-suggestion:hover {
    background-color: #f0f7f0;
}

.location-suggestion.selected {
    background-color: #2d5a2d;
    color: white;
}

/* Form wrapper for location input */
form {
    position: relative;
}

/* Location input wrapper */
label[for="location"] {
    position: relative;
}

#location {
    position: relative;
}

.search-btn {
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn::before {
    display: none;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 26, 0.4);
}

.post-listing-btn {
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-listing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 26, 0.4);
}

/* Results section */
.results-section {
    background: linear-gradient(135deg, rgba(244, 250, 244, 0.95), rgba(249, 254, 249, 0.96));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e6eee6;
}

.results-header h2 {
    color: #123412;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #123412;
    background-clip: unset;
}

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

.results-count {
    color: #606a60;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e6eee6;
}

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

.listing-card {
    background: linear-gradient(135deg, #fbfefb, #f4faf4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e3efe3;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.listing-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.placeholder-image {
    font-size: 3rem;
    color: #ccc;
}

.listing-content {
    padding: 1.5rem;
}

.listing-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.listing-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.listing-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.listing-details span {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category {
    background: #e3f2fd !important;
    color: #1976d2;
}

.size {
    background: #f3e5f5 !important;
    color: #7b1fa2;
}

.condition {
    background: #e8f5e8 !important;
    color: #2e7d32;
}

.listing-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.listing-distance {
    color: #2d5a2d;
    font-weight: 600;
    margin-left: 0.5rem;
}

.listing-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-btn {
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '💬';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 77, 26, 0.3);
}

.free-badge {
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.free-badge::before {
    content: '🆓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Flash messages */
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

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

/* Listing card link */
.listing-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-card-link:hover .listing-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* View details button */
.view-details-btn {
    color: #1a4d1a;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Listing detail page */
.listing-detail-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.detail-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250, 252, 250, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-content-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e6eee6;
}

.detail-back-link {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e6eee6;
}

.detail-back-link a {
    color: #2d5a2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.detail-back-link a:hover {
    color: #1f6a2b;
    text-decoration: underline;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-image-section {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.detail-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e6eee6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.detail-image .placeholder-image {
    font-size: 5rem;
    color: #ccc;
}

.detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #123412;
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-description h3,
.detail-location h3 {
    font-size: 1.3rem;
    color: #123412;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.detail-description p,
.detail-location p {
    color: #4a4a4a;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

.detail-actions {
    margin-top: 1rem;
}

.contact-btn-large {
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #3d6b3d 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(26, 77, 26, 0.3);
}

.contact-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 26, 0.4);
}

.detail-footer {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid #e6eee6;
    display: flex;
    justify-content: space-between;
    color: #606a60;
    font-size: 0.9rem;
}

.detail-posted,
.detail-date {
    margin: 0;
    color: #606a60;
}

/* Create listing page */
.create-listing-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.create-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250, 252, 250, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.create-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e6eee6;
}

.create-header h2 {
    color: #123412;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #123412;
    background-clip: unset;
}

.create-header .subtitle {
    color: #606a60;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.create-header .back-to-home {
    color: #2d5a2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.create-header .back-to-home:hover {
    color: #1f6a2b;
    text-decoration: underline;
}

.create-form {
    margin-top: 1.5rem;
}

.create-form .form-group {
    margin-bottom: 1.5rem;
}

.create-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-top: 0;
}

.create-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 0;
    border: 2px solid #d6dfd4;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    resize: vertical;
    box-sizing: border-box;
}

.create-form textarea:focus {
    outline: none;
    border-color: #1f6a2b;
    box-shadow: 0 0 0 3px rgba(31,106,43,0.18);
    background: white;
}

.create-form select {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 0;
    border: 2px solid #d6dfd4;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.create-form select:focus {
    outline: none;
    border-color: #1f6a2b;
    box-shadow: 0 0 0 3px rgba(31,106,43,0.18);
}

.create-form input[type="text"],
.create-form input[type="file"] {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 0;
    border: 2px solid #d6dfd4;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.create-form input[type="text"]:focus {
    outline: none;
    border-color: #1f6a2b;
    box-shadow: 0 0 0 3px rgba(31,106,43,0.18);
    background: white;
}

.create-form input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}

.create-form input[type="file"]:hover {
    border-color: #1f6a2b;
}

/* Custom Multi-Select Dropdown (Size field) */
.custom-multi-select-wrapper {
    position: relative;
    margin-top: 0.5rem;
}

.custom-multi-select {
    position: relative;
    width: 100%;
}

.custom-multi-select-display {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-multi-select-display:hover {
    border-color: #c1c5c9;
}

.custom-multi-select.active .custom-multi-select-display {
    border-color: #2d5a2d;
    box-shadow: 0 0 0 3px rgba(45, 90, 45, 0.2);
}

.custom-multi-select-placeholder {
    color: #999;
}

.custom-multi-select-selected {
    color: #333;
    font-weight: 500;
}

.custom-multi-select-arrow {
    color: #666;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-multi-select.active .custom-multi-select-arrow {
    transform: rotate(180deg);
}

.custom-multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.custom-multi-select.active .custom-multi-select-dropdown {
    display: block;
}

.custom-multi-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
}

.custom-multi-select-option:hover {
    background-color: #f5f5f5;
}

.custom-multi-select-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2d5a2d;
}

.custom-multi-select-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.custom-multi-select-option input[type="checkbox"]:checked + label {
    font-weight: 500;
    color: #2d5a2d;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-btn {
    flex: 1;
    margin: 0;
}

.cancel-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.cancel-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        width: calc(100% - 2rem);
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }
    
    .marketplace {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .detail-image-section {
        position: static;
    }
    
    .detail-image {
        height: 300px;
    }
    
    .form-actions {
        flex-direction: column;
    }

    .hero {
        padding: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-pill {
        white-space: normal;
    }

    .auth-container {
        padding: 1.5rem;
    }

    .auth-header h2 {
        font-size: 1.8rem;
    }

    .auth-header .subtitle {
        font-size: 0.9rem;
    }

    main.register-page {
        max-width: calc(100% - 2rem);
    }

    .create-listing-page {
        padding: 1rem;
    }

    .create-container {
        padding: 1.5rem;
    }

    .create-header h2 {
        font-size: 1.8rem;
    }

    .listing-detail-page {
        padding: 1rem;
    }

    .detail-container {
        padding: 1.5rem;
    }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-image-section {
        position: static;
    }

    .detail-image {
        height: 300px;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .results-section {
        padding: 1.5rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .results-header .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Messages page styles */
.messages-page {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
}

.messages-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250, 252, 250, 0.95));
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e6eee6;
}

.messages-header h2 {
    color: #123412;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #123412;
    background-clip: unset;
}

.back-to-home {
    color: #2d5a2d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-home:hover {
    color: #1f6a2b;
    text-decoration: underline;
}

.messages-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    height: 600px;
}

.conversations-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e6eee6;
    overflow-y: auto;
}

.conversations-sidebar h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e6eee6;
}

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conversation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
}

.conversation-item:hover {
    background: #f0f7f0;
    border-color: #dbe6db;
    transform: translateX(4px);
}

.conversation-item.active {
    background: linear-gradient(135deg, #e9f5ec, #f0f7f0);
    border-color: #1f6a2b;
    box-shadow: 0 4px 12px rgba(31,106,43,0.15);
}

.conversation-preview {
    flex: 1;
    min-width: 0;
}

.conversation-user {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.conversation-message {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.unread-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f6a2b;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.no-conversations {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-conversations p {
    margin-bottom: 0.5rem;
}

.conversation-view {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e6eee6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversation-header {
    padding: 1.5rem;
    border-bottom: 2px solid #e6eee6;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.conversation-header h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.listing-reference {
    margin-top: 0.5rem;
}

.listing-link {
    color: #1f6a2b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.listing-link:hover {
    color: #155027;
    text-decoration: underline;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8f9fa;
}

.message-item {
    display: flex;
    align-items: flex-start;
    max-width: 70%;
}

.message-item.sent {
    align-self: flex-end;
    margin-left: auto;
}

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

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message-item.sent .message-content {
    background: linear-gradient(135deg, #1f6a32 0%, #155027 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-item.received .message-content {
    background: white;
    color: #333;
    border: 1px solid #e6eee6;
    border-bottom-left-radius: 4px;
}

.message-text {
    margin-bottom: 0.25rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.message-input-container {
    padding: 1.5rem;
    border-top: 2px solid #e6eee6;
    background: white;
}

.message-form {
    display: flex;
    gap: 0.75rem;
}

.input-group {
    display: flex;
    flex: 1;
    gap: 0.75rem;
}

.input-group input {
    flex: 1;
    padding: 0.9rem 1rem;
    border: 2px solid #d6dfd4;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.input-group input:focus {
    outline: none;
    border-color: #1f6a2b;
    box-shadow: 0 0 0 3px rgba(31,106,43,0.18);
}

.send-btn {
    padding: 0.9rem 1.5rem;
    background: linear-gradient(145deg, #1f6a32 0%, #155027 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(21,80,39,0.25);
    white-space: nowrap;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(21,80,39,0.32);
    filter: brightness(1.03);
}

.send-btn:active {
    transform: translateY(0);
}

.no-conversation-selected {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.empty-state {
    text-align: center;
    color: #666;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.empty-state p {
    color: #999;
    font-size: 0.95rem;
}

/* Unread badge in navigation */
.messages-link {
    position: relative;
}

.unread-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    min-width: 20px;
    text-align: center;
}

/* Responsive design for messages */
@media (max-width: 992px) {
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .conversations-sidebar {
        max-height: 300px;
    }

    .conversation-view {
        min-height: 500px;
    }

    .message-item {
        max-width: 85%;
    }
}
