/* General Box Styling */
.outerbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%; /* Make it responsive */
    max-width: 600px; /* Restrict maximum width */
    margin: auto; /* Center the outerbox on the page */
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* PDF Download Button */
#pdfDownload {
    display: none; /* Initially hidden */
    margin-top: 0; /* Removed margin to remove space */
    width: 100%;
    max-width: 320px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    padding: 12px 20px;
    background: linear-gradient(145deg, #007BFF, #0056b3);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 auto; /* Center the button horizontally without extra space */
}

#pdfDownload:hover {
    background-color: #0056b3;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0; /* Removed margin to remove space */
}

.toggle-switch input {
    display: none;
}

.toggle-label {
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 15px;
    position: relative;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

input:checked + .toggle-label {
    background-color: #28a745;
}

input:checked + .toggle-label::after {
    transform: translateX(30px);
}

/* Buttons */
button, .button {
    padding: 12px 20px;
    background-color: #007BFF;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    margin: 0; /* Removed margin to remove space */
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover, .button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* File Input */
.upload-btn {
    padding: 12px 20px;
    background-color: #28a745;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    margin: 0; /* Removed margin to remove space */
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* Hide Default File Input */
.upload {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .outerbox {
        padding: 15px;
    }

    button, .button, .upload-btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    #pdfDownload {
        font-size: 16px;
        padding: 10px 15px;
    }

    .toggle-label {
        width: 50px;
        height: 25px;
    }

    .toggle-label::after {
        width: 20px;
        height: 20px;
        transform: translateX(25px);
    }
}
