/* Color Mixer Styles */
#color-mixer {
    margin-top: 10px;
}

.color-mixer-container {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #ddd;
}

.color-mixer-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mixer-color {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.color-mixer-preview {
    width: 100%;
    height: 30px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

#apply-mixed-color {
    background-color: #88d8b0;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

#apply-mixed-color:hover {
    background-color: #6b5b95;
}

/* Painting Grid */
.painting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.painting-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.painting-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.painting-card .card-content {
    padding: 15px;
}

.painting-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #6b5b95;
}

.painting-card .view-painting {
    display: inline-block;
    background-color: #ffcc5c;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.painting-card .view-painting:hover {
    background-color: #ffb347;
}

/* Single Painting Layout */
.painting-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.painting-panel {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.painting-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #6b5b95;
    text-align: center;
}

#svg-container {
    width: 100%;
    height: 400px;
    border: 2px solid #88d8b0;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.svg-image {
    display: none;
}

.painting-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.painting-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.painting-info h3 {
    color: #6b5b95;
    margin-bottom: 10px;
}

/* Category Tabs */
.category-tabs {
    margin-bottom: 30px;
}

.category-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.category-item {
    margin: 0 10px 10px 0;
}

.category-item a {
    display: block;
    padding: 8px 15px;
    background-color: #88d8b0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.category-item.active a {
    background-color: #6b5b95;
    color: white;
}

.category-item a:hover {
    background-color: #6b5b95;
    color: white;
}

/* SVG Object Styling */
.svg-wrapper {
    width: 100%;
    height: 400px;
    border: 2px solid #88d8b0;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#svg-object {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
}

.no-svg-message, .no-reference-message {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 5px;
    color: #888;
    text-align: center;
    padding: 20px;
}

/* Reference Image Container */
.reference-image-container {
    width: 100%;
    height: 400px;
    border: 2px solid #ffcc5c;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .svg-wrapper, .reference-image-container {
        height: 300px;
    }
    
    .painting-container {
        flex-direction: column;
    }
    
    .painting-panel {
        width: 100%;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .painting-container {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .drawing-sub-menu li, .painting-sub-menu li {
        margin: 5px 10px;
    }
}