/**
 * modules.css
 * ------------------------------------------------------------
 * Calculator and tool module styles.
 *
 * Contains:
 * - Logo upload components
 * - File upload areas (QR codes, barcodes, images)
 * - Barcode preview container
 * - Password generator output styles
 * - Shared button utilities
 * - UPI/payment application selectors
 * - Donation banner component
 * - Responsive donation banner layout
 *
 * This file provides reusable UI styles used across
 * calculators, generators, converters, and utility tools.
 * ------------------------------------------------------------
 */

/* Logo upload container */
.logo_box {
    width: 70px;
    height: 70px;
    border: 2px dashed #dee2e6;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Logo upload hover state when no image is selected */
.logo_box:not(.has-image):hover {
    background: var(--bs-gray-100);
}

/* Logo upload state when an image is present */
.logo_box.has-image {
    border: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay displayed over uploaded logo images */
.logo_overlay {
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show logo overlay on hover */
.logo_box.has-image:hover .logo_overlay {
    opacity: 1;
}

/* Horizontally scrollable barcode container */
.barcode_scroll {
    overflow-x: auto;
}

/* File upload container used for QR codes, barcodes, and images */
.file_upload_box {
    width: 100%;
    min-height: 100px;
    border: 2px dashed #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* File upload hover state when no file is selected */
.file_upload_box:not(.has-image):hover {
    background: var(--bs-gray-100);
}

/* File upload state when an image is present */
.file_upload_box.has-image {
    border: none;
    height: auto;
    max-height: 240px;
}

/* Responsive uploaded image preview */
.file_upload_box img.preview-image {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    display: block;
}

/* Overlay displayed over uploaded files/images */
.file_upload_overlay {
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show file upload overlay on hover */
.file_upload_box.has-image:hover .file_upload_overlay {
    opacity: 1;
}

/* Password generator output text */
.password_output_text {
    font-size: 1.5rem;
    word-break: break-all;
    line-height: 1.6;
}

/* Utility class for consistent button widths */
.button_fixed_width {
    min-width: 100px;
}

/* UPI/payment application selector */
.payment_app {
    cursor: pointer;
}

/* UPI/payment application icon */
.payment_app img {
    height: 30px;
    width: 30px;
}

/* Vertical divider used in payment-related layouts */
.payment_divider {
    height: 60px;
}

/* Donation banner section wrapper */
.donate_banner {
    padding: 20px 0 0;
}

/* Main donation banner container */
.donate_banner_inner {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border-radius: 6px;
    padding: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
}

/* Decorative background element for the donation banner */
.donate_banner_inner::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -80px;
    right: -60px;
    pointer-events: none;
}

/* Donation banner badge */
.donate_badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 14px;
}

/* Donation banner title */
.donate_title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

/* Donation banner description text */
.donate_text {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Donation call to action button */
.donate_btn {
    white-space: nowrap;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Responsive donation banner layout */
@media (max-width: 768px) {
    .donate_banner_inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .donate_title {
        font-size: 1.5rem;
    }

    .donate_btn {
        width: 100%;
    }
}