/**
 * Image Crop Modal Styles
 */

.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.crop-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.crop-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crop-modal-header h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.crop-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.crop-modal-close:hover {
    color: #333;
}

.crop-modal-body {
    padding: 24px;
    flex: 1;
    overflow: auto;
}

.crop-canvas-container {
    margin-bottom: 24px;
    max-height: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.crop-canvas-container img {
    max-width: 100%;
    display: block;
}

.crop-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.crop-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crop-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.crop-input-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.crop-input-group input[type="number"]:focus {
    outline: none;
    border-color: #03594E;
}

.crop-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.crop-modal-footer .btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crop-modal-footer .btn-secondary {
    background: #e5e5e5;
    color: #333;
}

.crop-modal-footer .btn-secondary:hover {
    background: #d5d5d5;
}

.crop-modal-footer .btn-primary {
    background: #03594E;
    color: white;
}

.crop-modal-footer .btn-primary:hover {
    background: #024739;
}

.crop-modal-footer .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .crop-modal {
        padding: 10px;
    }
    
    .crop-modal-content {
        max-height: 95vh;
    }
    
    .crop-controls {
        grid-template-columns: 1fr;
    }
    
    .crop-canvas-container {
        max-height: 300px;
    }
}
