body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #1c1e21;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1600px;
}
.header h1 { font-size: 2.5em; color: #333; }
.header p { font-size: 1.1em; color: #666; }
.container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.panel {
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}
.panel h2 {
    margin-top: 0;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    font-size: 1.4em;
    color: #444;
    text-align: center;
}
#designs-panel, #fabrics-panel, #styles-panel {
    flex: 1;
    min-width: 200px;
}
#result-panel {
    flex: 2;
    justify-content: center;
    align-items: center;
    background-color: #e9ebee;
    min-height: 600px;
}
.selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    overflow-y: auto;
    flex-grow: 1;
    padding: 5px;
}
.thumbnail {
    width: 100%;
    height: auto;
    border: 3px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    padding: 5px;
    box-sizing: border-box;
    object-fit: cover;
}
.thumbnail:hover {
    transform: scale(1.05);
    border-color: #ccc;
}
.thumbnail.selected {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transform: scale(1.05);
}
.selector-style {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.style-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    cursor: pointer;
    border: 2px solid #ccc;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.2s ease;
}
.style-button:hover {
    background-color: #f0f0f0;
    border-color: #999;
}
.style-button.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}
#result-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}
#placeholder-text {
    text-align: center;
    color: #888;
    font-size: 1.2em;
}
