.painting-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.painting-panel {
    flex: 1;
    min-width: 300px;
}

.svg-wrapper {
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
    max-width: 100%;
    height: auto;
}

.svg-wrapper svg, .svg-wrapper object {
    width: 100%;
    max-height: 400px;
    cursor: crosshair;
    display: block;
}

.svg-wrapper path, .svg-wrapper circle, .svg-wrapper polygon, .svg-wrapper rect {
    cursor: pointer;
    transition: fill 0.3s;
    stroke: #000;
    stroke-width: 2px;
    pointer-events: all;
}

.no-svg-message {
    color: #f00;
    text-align: center;
    padding: 20px;
}

.painting-tools {
    margin-top: 10px;
}

.tool-group {
    margin-bottom: 15px;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: none;
    cursor: pointer;
}

.color-mixer-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-mixer-inputs {
    display: flex;
    gap: 5px;
}

.mixer-color {
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
}

.color-mixer-preview {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.action-buttons button:hover {
    background: #005177;
}

.reference-image-container {
    margin-top: 10px;
}

.reference-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.no-reference-message {
    color: #f00;
    text-align: center;
    padding: 20px;
}

.painting-info {
    margin-top: 20px;
}
/* Additional Theme Styles */
.drawing-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

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

.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #88d8b0;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.pagination .page-numbers:hover {
    background-color: #6b5b95;
    color: white;
}

.pagination .current {
    background-color: #6b5b95;
    color: white;
}

.widget {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.widget h3 {
    color: #6b5b95;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #88d8b0;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.widget ul li a:hover {
    color: #6b5b95;
}

.sidebar {
    flex: 0 0 300px;
}

.painting-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.coloring-area {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.svg-container {
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
    max-width: 100%;
    height: auto;
}

.svg-container svg {
    width: 100%;
    height: auto;
    cursor: crosshair;
}

.svg-container path, .svg-container circle, .svg-container polygon, .svg-container rect {
    cursor: pointer;
    transition: fill 0.3s;
    stroke: #000;
    stroke-width: 2px;
}

.color-palette {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border: 2px solid #000;
}

.reset-btn {
    background: #f0f0f0;
    color: #333;
    font-size: 14px;
    padding: 0 20px;
    border-radius: 5px;
}

.reference-image {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.reference-img {
    width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.painting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.painting-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

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