.container {
    display: flex;
    min-height: 100vh;
}
.tool-main {
    flex: 1;
    padding: 32px 24px;
    background: #fff;
}
.image-crop-section {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    max-width: 480px;
}
/* Modern file upload area */
#cropForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
#cropForm label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}
.file-upload-crop {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: var(--background-color);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.file-upload-crop input[type="file"] {
    display: none;
}
.upload-icon-crop {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.upload-text-crop {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.upload-hint-crop {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
#cropForm button, #downloadCropped {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
    width: 100%;
    max-width: 400px;
}
#cropForm button:hover, #downloadCropped:hover {
    background: var(--accent-color);
}

/* Crop canvas with red outline */
#cropCanvas {
    max-width: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
    display: block;
    margin: 0 auto;
    z-index: 1;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
#cropOverlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 2;
    background: transparent;
    pointer-events: auto;
}

#cropContainer {
    margin-top: 24px;
    text-align: center;
    position: relative;
    min-height: 200px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
section {
    margin-bottom: 32px;
}
section h2 {
    margin-bottom: 0.5em;
    color: #1a237e;
}
.faq dt {
    font-weight: bold;
    margin-top: 1em;
}
.faq dd {
    margin-left: 0;
    margin-bottom: 0.5em;
}
.footer {
    background: #f7f7f7;
    padding: 24px 0 12px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    font-size: 0.98em;
}
.footer-links, .footer-tools {
    margin-bottom: 8px;
}
.footer a {
    color: #1a237e;
    text-decoration: none;
    margin: 0 4px;
}
.footer a:hover {
    text-decoration: underline;
}
.footer-copy {
    color: #888;
    font-size: 0.95em;
}
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    .tool-main {
        padding: 20px 8px;
    }
    .image-crop-section {
        max-width: 100%;
    }
} 