:root {
    --espresso: #2d1b0d; /* Dark Brown Manager Bar */
    --beige-bg: #8f6f62;  /* Beige Listings Page Background */
    --white: #c3a4a4;     /* White Listings Color */
    --gold: #d4a373;
}

body { margin: 0; font-family: 'Segoe UI', sans-serif; overflow: hidden; }
.app-container { display: flex; height: 100vh; }

/* Sidebar - Dark Brown */
.sidebar { width: 250px; background: var(--espresso); color: white; padding: 20px 0; flex-shrink: 0; }
.sidebar-header { padding: 0 20px; border-bottom: 1px solid #4a2c15; margin-bottom: 20px; }
.nav-item { padding: 15px 20px; cursor: pointer; display: flex; align-items: center; gap: 10px; opacity: 0.8; }
.nav-item.active { background: #3d2512; opacity: 1; border-left: 5px solid var(--gold); }

/* Workspace - Beige */
.main-content { flex: 1; background: var(--beige-bg); padding: 30px; overflow-y: auto; }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 20px; margin-bottom: 25px; border-bottom: 1px solid #060606; }
.tab { background: none; border: none; padding: 10px 0; cursor: pointer; font-weight: 600; color: #100f0f; }
.tab.active { color: #000; border-bottom: 3px solid var(--espresso); }

/* Listing Cards - White with Black Border Hover */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; }

.product-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* Hover Effect: Sharp Black Border */
.product-card:hover {
    border-color: #000000;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Focused State for Navigation Arrows */
.product-card.focused {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.6);
}

.product-img { width: 100%; height: 180px; object-fit: cover; }
.product-info { padding: 15px; }
.status { color: #2e7d32; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; }
.title { display: block; font-weight: 700; margin: 5px 0; color: var(--espresso); }
.price { color: #555; font-size: 0.9rem; }
/* --- Header & Control Interface --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

/* 1. Search Bar Design */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a3030;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #512a2a;
    border-radius: 8px;
    background: var(--white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--espresso);
    box-shadow: 0 0 0 3px rgba(12, 11, 11, 0.1);
}

/* 2, 3, 4. Professional Buttons & Hover States */
.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-arrows {
    display: flex;
    background: #e9e9e9;
    padding: 4px;
    border-radius: 8px;
}

.btn-nav, .btn-add {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

/* Navigation Buttons (< >) */
.btn-nav {
    background: var(--white);
    border: 1px solid #ccc;
    color: var(--espresso);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.btn-nav:hover {
    background: var(--espresso);
    color: var(--white);
    border-color: var(--espresso);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Add Listing Button */
.btn-add {
    background: var(--espresso);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background: #3d2512;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(45, 27, 13, 0.2);
}

.btn-add:active, .btn-nav:active {
    transform: translateY(0);
}