/* Removed global body, .container, and h1 rules to avoid conflicts with style.css and tools.css */
/* body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}
*/

/* Keep the rest of the unique styles for the image resizer tool */
.form-group {
    margin-bottom: 1rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
}
input[type="file"],
input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    width: 100%;
    padding: 0.75rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover {
    background: #0056b3;
}
#preview {
    margin-top: 1.5rem;
    text-align: center;
}
.upload-area {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
    min-height: 320px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#uploadPrompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: transparent;
    pointer-events: none;
}
#uploadPrompt svg, #uploadPrompt p {
    pointer-events: auto;
}
#uploadPrompt p {
    margin-top: 0.7rem;
    font-size: 1.1rem;
    color: #007bff;
    font-weight: 500;
}
.upload-area.dragover {
    background: #e6f0ff;
    border-color: #0056b3;
}
.upload-area svg {
    display: block;
    margin: 0 auto 0.5rem auto;
}
.upload-area .choose-file {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}
#originalSize {
    font-size: 0.95rem;
    color: #333;
    text-align: center;
}
#cropContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    min-height: 260px;
    width: 100%;
    height: 260px;
    box-sizing: border-box;
}
#cropImg {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 220px;
    margin: 0 auto;
    object-fit: contain;
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
    z-index: 2;
}
#cropControls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    z-index: 3;
}
#cropSize {
    display: block !important;
    margin: 0.5rem 0 0.2rem 0;
    color: #007bff;
    font-size: 1.05rem;
    font-weight: 500;
    background: #e6f0ff;
    border-radius: 4px;
    padding: 0.2rem 0.7rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    min-width: 120px;
    text-align: center;
}
#cropBtn {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#cropBtn:hover {
    background: #218838;
}
.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.2rem 0 1rem 0;
}
.mode-toggle label {
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    color: #007bff;
    transition: color 0.2s;
}
.mode-toggle input[type="radio"] {
    margin-right: 0.5em;
    accent-color: #007bff;
}
.main-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s;
}
.main-btn:hover {
    background: linear-gradient(90deg, #0056b3 60%, #007bff 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
#manualInputs {
    margin-bottom: 1rem;
}
/* Cropper.js custom styles for visible crop box */
.cropper-crop-box, .cropper-view-box {
    border: 2px dashed #007bff !important;
    box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #007bff33;
}
.cropper-point {
    width: 14px !important;
    height: 14px !important;
    background: #fff !important;
    border: 2.5px solid #007bff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007bff33;
    opacity: 1 !important;
}
.cropper-line {
    background: repeating-linear-gradient(90deg, #007bff, #007bff 4px, #fff 4px, #fff 8px) !important;
    opacity: 1 !important;
}
.main-heading {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
}
@media (max-width: 700px) {
    #cropContainer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    #cropContainer img {
        max-width: 100%;
    }
}
@media (max-width: 500px) {
    .container {
        max-width: 95vw;
        padding: 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
}

.container {
    /* width: 100%; */
    max-width: 650px;
    min-width: 340px;
    margin: 40px auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#manualPreview,
#cropImg {
    /* width: 100%; */
    max-width: 650px;
    min-width: 340px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 700px) {
    .container {
        max-width: 98vw;
        min-width: unset;
        padding: 1rem;
    }
} 