.rmt-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    min-height: 600px;
}

.rmt-sidebar {
    width: 20%;
    background: #2c3e50;
    padding: 20px;
    border-radius: 8px 0 0 8px;
    color: white;
    overflow-y: auto;
    max-height: 600px;
}

.rmt-main-content {
    width: 80%;
    padding: 20px;
    background: white;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
}

.rmt-container h2 {
    text-align: center;
    color: #ecf0f1;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.rmt-controls {
    margin: 20px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.rmt-controls:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rmt-file-input {
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.rmt-file-input:hover {
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.rmt-file-input::-webkit-file-upload-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.rmt-file-input::-webkit-file-upload-button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.rmt-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.rmt-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.rmt-btn:hover::before {
    left: 100%;
}

.rmt-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rmt-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rmt-btn-primary.active {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.6);
    transform: scale(1.05);
}

.rmt-btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rmt-btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rmt-btn-secondary.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
    transform: scale(1.05);
}

.rmt-btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rmt-btn-success:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rmt-btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rmt-btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rmt-mask-type {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.rmt-mask-type label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #ecf0f1;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rmt-mask-type label:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #3498db;
    transform: translateX(5px);
}

.rmt-mask-type input[type="radio"] {
    accent-color: #3498db;
    transform: scale(1.2);
}

.rmt-brush-size {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 500;
    color: #ecf0f1;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rmt-brush-size input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rmt-brush-size input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.rmt-brush-size input[type="range"]::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.rmt-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
    min-height: 400px;
}

.rmt-canvas-container:hover {
    border-color: #3498db;
    background: #f1f3f4;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.rmt-canvas-container::before {
    content: "Upload an image to start masking";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

.rmt-canvas-container.has-image::before {
    display: none;
}

#rmt-base-canvas {
    border: 3px solid #3498db;
    border-radius: 8px;
    cursor: crosshair;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#rmt-base-canvas:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
    transform: scale(1.01);
}

#rmt-mask-canvas {
    position: absolute;
    left: 0;
    top: 0;
    border: 3px solid #3498db;
    border-radius: 8px;
    cursor: crosshair;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#rmt-mask-canvas:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

.rmt-tile-preview {
    max-width: 80px;
    max-height: 80px;
    border: 2px solid #3498db;
    border-radius: 6px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.rmt-tile-preview:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.rmt-actions {
    text-align: center;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.rmt-actions .rmt-btn {
    width: auto;
    min-width: 120px;
}

/* Responsive design */
@media (max-width: 768px) {
    .rmt-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .rmt-sidebar {
        width: 100%;
        border-radius: 8px 8px 0 0;
        max-height: none;
    }
    
    .rmt-main-content {
        width: 100%;
        border-radius: 0 0 8px 8px;
    }
    
    .rmt-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .rmt-mask-type {
        flex-direction: column;
        gap: 10px;
    }
    
    .rmt-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    #rmt-base-canvas,
    #rmt-mask-canvas {
        max-width: 100%;
        height: auto;
    }
    
    .rmt-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .rmt-actions .rmt-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Loading states */
.rmt-loading {
    opacity: 0.6;
    pointer-events: none;
}

.rmt-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.rmt-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.rmt-message.success {
    background-color: rgba(40, 167, 69, 0.9);
}

.rmt-message.error {
    background-color: rgba(220, 53, 69, 0.9);
}

.rmt-message.info {
    background-color: rgba(0, 123, 255, 0.9);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
} 