/* BODY + WALLPAPER (same image as merge pdf) */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;

    background-color: #000;
    background-image: url('mainpageimage.png'); /* apni wallpaper ka path */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* Top header same style as file converter */
.top-header {
    width: 100%;
    background-color: #1565C0;
    color: #ffffff;
    padding: 15px 20px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    box-sizing: border-box;
}

.top-header .back-arrow {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
}

.top-header .back-arrow i {
    margin-right: 4px;
}

.green-strip {
    width: 100%;
    height: 10px;
    background-color: #0dfc21;
}

/* Main white card */
.tool-container { 
    padding: 30px;
    max-width: 650px; 
    width: 90%;
    margin: 40px auto 20px auto; 
    background: white; 
    border-radius: 10px; 
    box-shadow: 0 6px 25px rgba(0,0,0,0.5); 
    text-align: center;
}

.tool-title {
    color: #1a73e8;
    margin-bottom: 25px;
}

/* Dropzone Styling */
.dropzone {
    border: 3px dashed #1a73e8;
    border-radius: 8px;
    padding: 50px 20px;
    margin-bottom: 30px;
    background-color: #e8f0fe;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.dropzone i { 
    font-size: 3em; 
    color: #1a73e8; 
    margin-bottom: 10px; 
}
.dropzone p { 
    color: #555; 
    margin-bottom: 15px; 
}
#selectImageBtn {
    padding: 10px 30px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

/* Image Details */
#originalDetails {
    font-size: 0.9em; 
    color: #1a73e8; 
    margin-top: 15px;
}

/* Control group */
.control-group-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
}
.input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.input-label {
    font-weight: bold;
    color: #333;
    width: 100px;
    text-align: left;
}
.input-field-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}
.input-field-container input,
.input-field-container select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.input-field-container input[type="number"] {
    width: 70px;
    text-align: center;
    margin-right: 5px;
}
.link-icon {
    margin: 0 10px;
    color: #666;
}
#resizeSelect { width: 100px; }
#dpiInput { width: 70px; margin-right: 10px; text-align: center;}

/* Format/Quality/Background Group */
.format-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; 
}
.format-group > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px; 
}
.format-group label { margin-bottom: 5px; font-weight: bold; }
.format-group select,
.format-group input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 80px;
    text-align: center;
}

/* Background Color Options */
.color-options {
    display: flex;
    gap: 10px;
}
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.color-option.selected {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px #1a73e830;
}
#whiteBg { background-color: white; }
#blackBg { background-color: black; }

/* Button + info */
#resizeBtn {
    padding: 12px 40px;
    background-color: #4CAF50; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 30px;
    transition: background-color 0.3s;
}
#resizeBtn:hover { background-color: #45a049; }

#estimatedSize { 
    font-size: 1em; 
    color: #1a73e8;
    margin-top: 20px; 
    font-weight: bold;
}

/* Hidden input */
#fileInput { display: none; }
