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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background: #111;
    border-right: 1px solid #333;
    padding: 15px 10px;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.categories {
    list-style: none;
    flex-grow: 1;
}

.category-item {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: background 0.2s;
}

.category-item:hover {
    background: #222;
}

.category-item.active {
    background: #fff;
    color: #000;
}

.dev-info {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #333;
    margin-top: 10px;
    color: #555;
    font-size: 11px;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px;
    color: #000;
    font-size: 16px;
    cursor: pointer;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #000;
}

.content-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.content-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.content-subtitle {
    color: #888;
    font-size: 13px;
}

.welcome-message {
    text-align: center;
    padding: 50px 20px;
    max-width: 600px;
    margin: auto;
    background-color: #111;
    border-radius: 8px;
    border: 1px solid #333;
}

.welcome-message h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.welcome-message p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
}

.welcome-message .loading-note {
    font-style: italic;
    color: #888;
    margin-top: 20px;
}

.interiors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.interior-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.interior-card:hover {
    border-color: #666;
}

.interior-info {
    padding: 12px;
    overflow: hidden;
    min-height: 120px;
}

.interior-info h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

.interior-info p {
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

.image-carousel-container {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #222;
}

.image-carousel {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-image {
    min-width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    cursor: pointer;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 5px;
    border-radius: 0 4px 4px 0;
}

.carousel-next {
    right: 5px;
    border-radius: 4px 0 0 4px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-lightbox:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-nav.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

@media(max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: 0.3s;
    }

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

    .main-content {
        padding: 50px 15px 15px;
    }

    .interiors-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media(max-width: 480px) {
    .sidebar {
        width: 100%;
    }

    .image-carousel-container,
    .carousel-image {
        height: 120px;
    }
}