/* Crop Image Specific Styles */
.editor-area {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.image-preview-panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1rem;
    min-height: 400px;
    border: 1px solid var(--card-border);
}

#image-to-crop {
    display: block;
    max-width: 100%;
}

.cropper-view-box, .cropper-face {
    box-shadow: 0 0 0 1px var(--primary-color);
    border-radius: 4px;
}

.cropper-line {
    background-color: rgba(255, 77, 141, 0.7);
}

.cropper-point {
    background-color: rgba(255, 77, 141, 1);
}

.cropper-dashed {
    border-color: rgba(255, 255, 255, 0.5);
}

.cropper-modal {
    background-color: rgba(0, 0, 0, 0.6);
}

.options-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.options-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.option-group {
    margin-bottom: 2rem;
}

.option-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.aspect-ratio-buttons, .transform-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.action-buttons {
    margin-top: 2rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s ease;
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.btn-link:hover {
    color: var(--primary-color);
}

@media screen and (max-width: 900px) {
    .editor-area {
        grid-template-columns: 1fr;
    }

    .options-panel {
        position: static;
        margin-top: 2rem;
    }
}


.panel-section {
    margin-bottom: 1.5rem;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.ratio-category {
    margin-bottom: 1.25rem;
}

.ratio-category-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
}

.ratio-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.aspect-ratio-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    width: 46%;
}

.aspect-ratio-btn:hover {
    border-color: var(--primary-color);
}

.aspect-ratio-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.custom-ratio-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-ratio-inputs input {
    width: 70px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    border-radius: 6px;
    text-align: center;
    -moz-appearance: textfield;
}

.custom-ratio-inputs input::-webkit-outer-spin-button,
.custom-ratio-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}