:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html, body {
    min-height: 100%;
    overflow: auto;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
    width: auto;
}

h1, h2, h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.model-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.model-thumbnail {
    height: 200px;
    overflow: hidden;
}

.model-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-info {
    padding: 1rem;
}

.model-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

.view-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: #2980b9;
}

.no-models, .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.error-message {
    color: #e74c3c;
}
.control-toggle { position: fixed; top: 20px; right: 20px; padding: 10px; background: #333; color: white; border: none; border-radius: 50%; cursor: pointer; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.render-button { position: fixed; top: 20px; left: 20px; z-index: 1000; flex: none; padding: 8px 16px; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; font-size: 14px; }


@media (max-width: 768px) {
    .model-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 1rem;
    }
}