/* Amazing Modern Style */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --background-color: #f8f9fa; /* Light grey background */
    --surface-color: #ffffff;   /* White for cards/containers */
    --text-color: #212529;     /* Dark grey text */
    --primary-color: #007bff;   /* Vibrant blue */
    --primary-hover: #0056b3;
    --secondary-color: #6c757d; /* Medium grey */
    --border-color: #dee2e6;   /* Lighter border */
    --light-border-color: #e9ecef;
    --error-bg: #f8d7da;
    --error-border: #f5c6cb;
    --error-text: #721c24;
    --success-bg: #d4edda;
    --success-border: #c3e6cb;
    --success-text: #155724;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

    /* Data Explorer Colors */
    --data-key-color: #495057;
    --data-value-color: var(--text-color);
    --data-boolean-true: #28a745;
    --data-boolean-false: #dc3545;
    --data-number-color: #17a2b8;
    --data-link-color: var(--primary-color);
    --data-type-color: #adb5bd;
    --data-bg-hover: #f1f3f5;

    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --border-radius: 6px;
    --transition-speed: 0.2s;

    --table-header-bg: #f1f3f5;
    --table-border-color: #e9ecef;
    --table-row-hover-bg: #f8f9fa;
    --details-bg: #fdfdfd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 2000px;
    width: 100%;
    padding: 2.5rem;
    border: none; /* Remove border, rely on shadow */
    border-radius: var(--border-radius);
    background-color: var(--surface-color);
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease-out;
    margin: 0 auto;
}

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

header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease-out, transform 0.1s ease-out, box-shadow var(--transition-speed) ease-out;
    text-align: center;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.button:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.logout-button {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.logout-button:hover {
    background-color: #5a6268;
}

.login-section,
.discovery-section,
.results-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--surface-color);
    box-shadow: var(--shadow-md);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

input[type="text"] {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

h2, h3 {
    margin-top: 0;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
}

.results-section h2 {
    font-size: 1.7rem;
}

/* Profile Summary (existing styles adjusted slightly) */
.profile-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background-color: #fdfdfd;
    border-radius: var(--border-radius);
}

.profile-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.profile-summary li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
    font-size: 1rem;
    display: flex;
    gap: 0.5rem;
}

.profile-summary li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-summary strong {
    display: inline-block;
    min-width: 110px;
    font-weight: 600;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.profile-summary span {
    flex-grow: 1;
    word-break: break-word;
}

.profile-summary a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.profile-summary a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.profile-pic {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--surface-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    align-self: flex-start;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* Message Boxes (Errors, Status, Warnings) */
.message-box {
    border: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.8rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    animation: slideUp 0.4s ease-out;
}

.error-message {
    background-color: var(--error-bg);
    color: var(--error-text);
    border-color: var(--error-border);
}

.error-message strong {
    font-weight: 700;
}

.status-message {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.status-message strong {
    font-weight: 700;
}

.warning-message {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}
.warning-message strong {
    font-weight: 700;
}

/* --- User-Friendly Data Explorer Styles --- */

.data-explorer-container {
    margin-top: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0; /* Padding applied internally */
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
}

.data-explorer-container h3 {
    padding: 1.2rem 1.8rem;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.data-explorer {
    padding: 0.5rem 1.8rem 1.8rem 1.8rem; /* Top padding smaller */
}

.data-item {
    margin-left: 1.5em; /* Default indentation */
    padding: 0.3rem 0;
}

/* Remove margin for top-level items */
.data-explorer > .data-item {
    margin-left: 0;
}

.data-pair {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}
.data-pair:hover {
    background-color: var(--data-bg-hover);
}

.data-key {
    font-weight: 600;
    color: var(--data-key-color);
    flex-shrink: 0;
    font-size: 0.95rem;
}

.data-value {
    color: var(--data-value-color);
    word-break: break-word;
    font-size: 0.95rem;
}

.data-value a {
    color: var(--data-link-color);
    text-decoration: none;
}
.data-value a:hover {
    text-decoration: underline;
}

.value-boolean-true {
    color: var(--data-boolean-true);
    font-weight: 500;
}
.value-boolean-false {
    color: var(--data-boolean-false);
    font-weight: 500;
}
.value-number {
    color: var(--data-number-color);
}

.data-inline-image {
    max-height: 30px;
    max-width: 50px;
    vertical-align: middle;
    margin-right: 0.5em;
    border-radius: 3px;
    border: 1px solid var(--light-border-color);
}
.image-url {
    font-size: 0.8em;
    color: var(--secondary-color);
}

/* Styling for <details> and <summary> */
details.data-group {
    border: 1px solid var(--light-border-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background-color: #fdfdfd;
    transition: box-shadow var(--transition-speed);
}

details.data-group[open] {
   box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

summary.data-key {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    font-weight: 600;
    background-color: #f8f9fa;
    border-radius: 4px 4px 0 0;
    transition: background-color var(--transition-speed);
}
details[open] > summary.data-key {
    border-bottom: 1px solid var(--light-border-color);
    border-radius: 4px 4px 0 0;
}

summary.data-key:hover {
    background-color: var(--data-bg-hover);
}

summary.data-key::-webkit-details-marker {
    display: none; /* Hide default marker for WebKit */
}

/* Custom toggle indicator */
summary.data-key::before {
    content: '\25B6'; /* Right-pointing triangle */
    display: inline-block;
    margin-right: 0.6em;
    font-size: 0.8em;
    transition: transform 0.2s ease-in-out;
    color: var(--secondary-color);
}

details[open] > summary.data-key::before {
    transform: rotate(90deg);
}

.data-type-indicator {
    font-size: 0.8em;
    font-weight: 400;
    color: var(--data-type-color);
    margin-left: 0.5em;
}

.data-content {
    padding: 0.5rem 1rem 1rem 1rem;
}

.data-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.data-list li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--light-border-color);
}
.data-list li:last-child {
    border-bottom: none;
}

.empty-list {
    font-style: italic;
    color: var(--secondary-color);
}

.nested-list-item {
     margin: 0.5rem 0;
}
.nested-list-item > summary {
     font-size: 0.9em;
     padding: 0.4rem 0.8rem;
}
.nested-list-item > .data-content {
     padding: 0.4rem 0.8rem 0.8rem 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1.5rem 0.5rem;
    }
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .profile-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .profile-pic {
        align-self: center;
        width: 100px;
        height: 100px;
    }

    .profile-summary li {
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
    }

    .profile-summary strong {
        min-width: auto;
        text-align: center;
    }
}

/* --- Input Hint --- */
.input-hint {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: -0.8rem;
    margin-bottom: 1.2rem;
}

textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem; /* Slightly smaller for code */
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; /* Monospace for JSON */
    min-height: 150px;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* --- Results Table Styles --- */
.table-container {
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    border: 1px solid var(--table-border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden; /* Ensures border-radius applies to table */
}

thead {
    background-color: var(--table-header-bg);
}

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

th {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr.business-row:hover {
    background-color: var(--table-row-hover-bg);
}

.table-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.toggle-cell {
    width: 40px;
    text-align: center;
    padding-right: 0.5rem;
}

.details-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
    color: var(--secondary-color);
    transition: color var(--transition-speed), transform 0.2s ease-in-out;
}

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

tr.details-expanded .details-toggle {
    transform: rotate(180deg);
}

/* --- Details Row Styles --- */
.details-row td {
    padding: 0;
    border-bottom: 1px solid var(--table-border-color);
}

/* Remove hover effect from details row */
.details-row:hover {
    background-color: transparent;
}

.details-content-wrapper {
    padding: 1.5rem 2rem;
    background-color: var(--details-bg);
}

/* --- Data Explorer Styles (adjusted for table context) --- */

.details-content-wrapper .data-explorer-container {
    margin-top: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.details-content-wrapper .data-explorer-container h3 {
     /* Hide the nested h3 */
     display: none;
}

.details-content-wrapper .data-explorer {
    padding: 0;
}

/* Adjust indentation within the table details */
.details-content-wrapper .data-item {
    margin-left: 1em;
}
.details-content-wrapper .data-explorer > .data-item {
    margin-left: 0;
}

/* Keep other data-item, data-pair, data-group, etc. styles */
/* ... (existing .data-item, .data-pair, .data-key, .data-value styles) ... */
/* ... (existing .value-boolean, .value-number, .data-inline-image styles) ... */
/* ... (existing details.data-group, summary.data-key styles) ... */
/* ... (existing .data-type-indicator, .data-content, .data-list styles) ... */

/* Minor adjustments for nested items within table */
.details-content-wrapper details.data-group {
    border-color: #f1f3f5;
}
.details-content-wrapper summary.data-key {
    background-color: #f8f9fa;
    padding: 0.5rem 0.8rem;
}
.details-content-wrapper .data-content {
    padding: 0.5rem 0.8rem 0.8rem 0.8rem;
}

/* Warning message style */
.warning-message {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}
.warning-message strong {
    font-weight: 700;
}

/* ... (existing Responsive Adjustments) ... */

@media (max-width: 768px) {
    /* Adjust table display on smaller screens if needed */
    th, td {
        padding: 0.7rem 0.8rem;
    }
    .profile-summary li {
        font-size: 0.95rem;
    }
    .profile-summary strong {
        min-width: 90px;
    }
}

@media (max-width: 600px) {
    /* Further adjustments for mobile */
    th, td {
        font-size: 0.9rem;
        padding: 0.6rem 0.5rem;
    }
    .table-profile-pic {
        width: 35px;
        height: 35px;
    }
    .details-content-wrapper {
        padding: 1rem;
    }
     .details-content-wrapper .data-item {
        margin-left: 0.5em;
    }
}

/* --- Results Table Specific Styles --- */

.potential-customer-cell {
    text-align: center;
    font-weight: 600;
}

.potential-customer-row {
    /* Optional: Add subtle highlight to potential customer rows */
    /* background-color: #eaf6ff; */
}

.ai-error-indicator {
    color: var(--error-text);
    font-weight: 500;
    font-size: 0.9em;
    cursor: help; /* Indicate title attribute on hover */
    border-bottom: 1px dotted var(--error-border);
}

.ai-pending {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 0.9em;
}

/* --- AI Analysis Section Styling within Details --- */
.ai-analysis-group,
.raw-data-group {
    margin-bottom: 1.5rem;
}

.ai-analysis-group {
     border-color: var(--primary-color); /* Highlight AI section border */
}

.ai-summary,
.raw-summary {
    font-weight: 700 !important; /* Ensure summary stands out */
    font-size: 1.1em !important;
}

.ai-summary {
    background-color: #e7f3ff !important; /* Light blue background for AI summary */
    color: var(--primary-hover);
}
.ai-summary::before {
    color: var(--primary-hover) !important;
}

.raw-summary {
    background-color: #f1f3f5 !important;
}

.ai-not-potential,
.ai-error {
    font-style: italic;
    color: var(--secondary-color);
    padding: 0.5rem 0;
}
.ai-error {
    color: var(--error-text);
}

pre.ai-message-text {
    white-space: pre-wrap;       /* CSS3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--light-border-color);
    font-family: var(--font-family); /* Use main font for readability */
    font-size: 0.95em;
    color: var(--text-color);
    line-height: 1.6;
}

/* Ensure nested AI details have appropriate styling */
.ai-analysis-group .data-group {
    border-color: var(--light-border-color);
}
.ai-analysis-group summary.data-key {
    background-color: #f8f9fa;
}

/* ... (Keep existing Data Explorer styles: .data-item, .data-pair, etc.) ... */
/* ... (Keep existing Responsive Adjustments) ... */

@media (max-width: 768px) {
    /* Adjust table display on smaller screens if needed */
    th, td {
        padding: 0.7rem 0.8rem;
    }
    .profile-summary li {
        font-size: 0.95rem;
    }
    .profile-summary strong {
        min-width: 90px;
    }
}

@media (max-width: 600px) {
    /* Further adjustments for mobile */
    th, td {
        font-size: 0.9rem;
        padding: 0.6rem 0.5rem;
    }
    .table-profile-pic {
        width: 35px;
        height: 35px;
    }
    .details-content-wrapper {
        padding: 1rem;
    }
     .details-content-wrapper .data-item {
        margin-left: 0.5em;
    }
}

/* --- Navigation / Hamburger Menu --- */
.main-nav {
    position: relative; /* Needed for absolute positioning of menu items */
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.menu-items li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed);
}

.menu-items li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-hover);
    transition: width var(--transition-speed) ease-out;
}

.menu-items li a:hover {
    color: var(--primary-hover);
}

.menu-items li a:hover::after {
    width: 100%;
}

/* --- Filter Controls --- */
.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls input[type="text"],
.filter-controls select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0; /* Remove default margin */
    flex-grow: 1;
    min-width: 180px;
}

.filter-controls input[type="text"]:focus,
.filter-controls select:focus {
     outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.filter-controls button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.secondary-button {
    background-color: var(--secondary-color);
}
.secondary-button:hover {
    background-color: #5a6268;
}

/* --- Form Options (e.g., Force Refresh Checkbox) --- */
.form-options {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--secondary-color);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}


/* --- Responsive Adjustments for Menu & Filters --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show toggle button */
    }
    .menu-items {
        display: none; /* Hide items by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--surface-color);
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        width: 100%;
        z-index: 10;
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        gap: 0;
    }
    .menu-items.active {
        display: flex; /* Show when active */
    }
    .menu-items li {
        width: 100%;
    }
    .menu-items li a {
        display: block;
        padding: 0.8rem 1.5rem;
        width: 100%;
    }
    .menu-items li a::after {
        display: none; /* Don't show underline on mobile menu */
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ... (Keep rest of existing styles) ... */ 