/* Image Tool Specific Styles */

/* Crop Container */
.crop-container {
    margin-top: 20px;
}

.crop-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    background: var(--bg-input);
}

.crop-source {
    display: block;
    max-width: 100%;
    max-height: 400px;
    user-select: none;
    -webkit-user-drag: none;
}

.crop-box {
    position: absolute;
    border: 2px solid #38ef7d;
    background: rgba(56, 239, 125, 0.1);
    cursor: move;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.crop-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #38ef7d;
    border-radius: 50%;
}

.crop-handle.nw {
    top: -10px;
    left: -10px;
    cursor: nw-resize;
}

.crop-handle.ne {
    top: -10px;
    right: -10px;
    cursor: ne-resize;
}

.crop-handle.sw {
    bottom: -10px;
    left: -10px;
    cursor: sw-resize;
}

.crop-handle.se {
    bottom: -10px;
    right: -10px;
    cursor: se-resize;
}

/* Crop Presets */
.crop-presets {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.preset-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Compress Options */
.compress-options {
    margin-top: 20px;
}

/* Convert Options */
.convert-options {
    margin-top: 20px;
}

/* File upload hover states */
.file-upload.has-file {
    border-style: solid;
    border-color: rgba(56, 239, 125, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .crop-source {
        max-height: 300px;
    }

    .crop-presets {
        justify-content: center;
    }

    .crop-handle {
        width: 24px;
        height: 24px;
    }

    .crop-handle.nw {
        top: -12px;
        left: -12px;
    }

    .crop-handle.ne {
        top: -12px;
        right: -12px;
    }

    .crop-handle.sw {
        bottom: -12px;
        left: -12px;
    }

    .crop-handle.se {
        bottom: -12px;
        right: -12px;
    }
}