* {
    box-sizing: border-box;
}
.colormix-physical-container {
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    direction: rtl;
    background: transparent;
    border-radius: 20px;
}
.colormix-physical-parallax {
    position: relative;
    background: transparent;
}
.colormix-physical-result-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(52,152,219,0.2);
}
.colormix-physical-color-display {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 4px solid #e0e0e0;
    transition: background-color 0.2s;
}
.colormix-physical-color-codes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}
.color-code-item {
    background: linear-gradient(145deg, #f5f7fa, #e6e9f0);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.color-code-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}
.color-code-item.copied {
    border-color: #2ecc71;
    background: #e8f5e9;
}
.code-label {
    font-size: 12px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 5px;
}
.code-value {
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.colormix-physical-color-name {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #2c3e50;
    margin-top: 10px;
    padding: 8px;
    background: #f0f7ff;
    border-radius: 30px;
}
.colormix-physical-proportions {
    display: flex;
    width: 100%;
    height: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ddd;
    margin-top: 10px;
}
.proportion-segment {
    height: 100%;
    color: black;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.colormix-physical-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.color-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.color-increment-btn,
.color-decrement-btn {
    width: 40px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #3498db;
    color: white;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(52,152,219,0.3);
    transition: transform 0.1s;
}
.color-decrement-btn {
    background: #e74c3c;
    box-shadow: 0 4px 8px rgba(231,76,60,0.3);
}
.color-increment-btn:active,
.color-decrement-btn:active {
    transform: scale(0.9);
}
.color-decrement-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}
.color-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1), inset 0 0 0 2px rgba(255,255,255,0.3);
    cursor: pointer;
}
.color-circle .color-amount {
    background: rgba(255,255,255,0.9);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.color-name-label {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
    color: #2c3e50;
}
.colormix-physical-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.colormix-physical-reset-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(231,76,60,0.4);
    transition: all 0.2s;
}
.colormix-physical-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231,76,60,0.5);
}

/* انیمیشن */
.colormix-physical-animation-enabled .colormix-physical-color-display {
    transition: background-color 0.2s ease;
}
.colormix-physical-animation-enabled .color-circle {
    transition: transform 0.2s;
}
.colormix-physical-animation-enabled .color-circle:active {
    transform: scale(0.95);
}
.pulse-anim {
    animation: pulse 0.3s ease;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .colormix-physical-color-codes {
        grid-template-columns: 1fr;
    }
    .colormix-physical-colors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .color-circle {
        width: 80px;
        height: 80px;
    }
}