
/* Wallpaper Calculator Styles */

/* Calculator Button */
.wallpaper-calculator-wrapper {
    margin: 0 0 15px 0;
    position: relative;
    top: -8px;

}

.wallpaper-calculator-btn {
    height: 55px;
    width: 100%;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 137%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    text-wrap: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wallpaper-calculator-btn:hover {
    background-color: #000;
    border-color: #000;
}

.wallpaper-calculator-btn .material-icons {
    font-size: 18px;
}

/* Modal Overlay */
.wallpaper-calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

/* Modal Content */
.wallpaper-calculator-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

/* Modal Header */
.wallpaper-calculator-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.wallpaper-calculator-modal .modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.wallpaper-calculator-modal .modal-close {
    padding: 5px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.wallpaper-calculator-modal .modal-close:hover {
    color: #333;
}

.wallpaper-calculator-modal .modal-close .material-icons {
    font-size: 24px;
}

/* Modal Body */
.wallpaper-calculator-modal .modal-body {
    padding: 25px;
}

.calculator-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* Form Styles */
.calculator-form .form-group {
    margin-bottom: 20px;
}

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.calculator-form .required {
    color: #dc3545;
}

.calculator-form .form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.calculator-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.calculator-form .form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.calculator-form .btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* Result Box */
.calculator-result {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.result-box {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.result-box h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.result-value {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.result-value strong {
    display: inline-block;
    padding: 5px 15px;
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
    background-color: #fff;
    border-radius: 4px;
    margin: 0 5px;
}

.result-note {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 576px) {
    .wallpaper-calculator-modal .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .wallpaper-calculator-modal .modal-header,
    .wallpaper-calculator-modal .modal-body {
        padding: 15px;
    }

    .wallpaper-calculator-modal .modal-title {
        font-size: 18px;
    }

    .result-value strong {
        font-size: 24px;
    }
}
