/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    
    color: #333;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}



/* Upload Area */
.upload-area {
    border: 2px dashed #3498db;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8fafc;
}

.upload-area.drag-over {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.upload-content {
    max-width: 500px;
    margin: 0 auto;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: #7f8c8d;
    margin-bottom: 15px;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

.upload-btn:hover {
    background: #2980b9;
}

#image-upload {
    display: none;
}

/* Cropper Container */
.cropper-container {
    margin: 30px auto;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    display: inline-block;
    line-height: 0; /* removes extra space below image */
}

#source-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Crop Box */
.crop-box {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.dimension-display {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 12;
}

.crop-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid #333;
    z-index: 11;
}

.handle-nw { top: -5px; left: -5px; cursor: nw-resize; }
.handle-ne { top: -5px; right: -5px; cursor: ne-resize; }
.handle-sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.handle-se { bottom: -5px; right: -5px; cursor: se-resize; }

/* Controls */
.controls {
    margin-top: 20px;
    text-align: center;
}

.zoom-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.zoom-control label {
    font-weight: 600;
}

#zoom-range {
    width: 200px;
}

#zoom-value {
    min-width: 40px;
    text-align: center;
}

.primary-btn {
    padding: 10px 20px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.primary-btn:hover {
    background: #27ae60;
}

.primary-btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Add to your crop.css */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.features {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}


footer nav ul {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}


header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

header h1 {
    color: white;
    font-size: 32px;

}

header p {
    color: white;
    margin: 10px 0 0;
    line-height: 24px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #2c3e50;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

footer a {
    color: #1489f7;
    text-decoration: none;
}

footer p {
    color: #fff;
    margin: 0;
}

footer a:hover {
    text-decoration: underline;
}

.toolWrapper {
    border: 1px solid #8b8b8b;
    padding: 15px;
    border-radius: 15px;
    margin: 0 0 60px 0;
    background: #f7f7f7;
}