@import url('Styles.Preetech.css');

html, body {
    background: #fff;
    font-family: Verdana, 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: normal;
    /*    color: #888888; */
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Wrapper for the entire page content */
form {
    min-height: 100vh; /* Ensures the form takes the full height of the viewport */
    display: flex;
    flex-direction: column;
}

/* Main page wrapper should flex-grow to fill available space */
.page-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This pushes the footer down when content is shorter than viewport */
    padding: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Modal styling for warningDiv */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 30%; /* You can adjust the width */
    border-radius: 8px;
    position: relative;
    text-align: center;
}

/* Close button (X) */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

/* Warning message styling */
.warning-message {
    /*background-color: #f8d7da; 
                border: 1px solid #f5c6cb; 
                border-radius: 8px; 
            padding: 15px;
    */
    color: #721c24;
}

/* Button styling */
button {
    background-color: #4CAFEB; /* Light blue background */
    color: white;
    border: none;
    padding: 8px 15px;
    text-align: center;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    border-radius: 4px;
    margin: 25px;
    transition: background-color 0.3s ease;
}

    button:hover {
        background-color: #006BB3; /* Darker blue on hover */
    }

.btn {
    background-color: #4CAFEB; /* Light blue background */
    color: white;
    border: none;
    padding: 8px 15px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    margin: 5px;
    width: 100%;
}

    .btn:disabled {
        background-color: #cccccc; /* Grey when disabled */
        cursor: not-allowed;
    }

/* Ensures the footer sticks to the bottom of the page */
.footer-panel {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px 0;
    font-size: 10px;
    color: #113578;
    width: 100%;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Makes the footer stick to the bottom */
    bottom: 0; /* Ensures it's at the bottom of the viewport */
    left: 0; /* Stretches the footer to the left edge */
    right: 0; /* Stretches the footer to the right edge */
    z-index: 1000; /* Ensures it stays above other elements */
}


@media screen and (max-width: 768px) {
    .footer-panel {
        font-size: 9px;
        padding: 8px 0;
    }
}

@media screen and (max-width: 480px) {
    .footer-panel {
        font-size: 8px;
        padding: 6px 0;
    }
}

/* Adding red asterisk for mandatory fields */
.required::after {
    content: " *";
    color: red;
}

.lbl {
    font-weight: bold;
}

.styledLabel {
    border: 2px solid #000000; /* Black border */
    background-color: #f0f0f0; /* Light grey background */
    padding: 5px; /* Adds some space around the text */
    color: #333333; /* Text color */
    display: inline-block; /* Ensures proper spacing around the label */
}



/* Secret Label */

#divSecret {
    width: 100%;
    position: relative;
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ccc;
}

.secret-container {
    /*    display: flex; */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.secret-label {
    height: auto;
    flex-grow: 1;
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid #000;
    display: block; 
    white-space: pre-wrap;
}

.copy-icon {
    font-size: 2rem;
    cursor: pointer;
}

    .copy-icon:hover {
        background-color: #d0d0d0;
        cursor: pointer; /* Show hand cursor when hovering */
    }


#copyMessage {
    margin-top: 10px;
    font-size: 1rem;
    color: green;
}


/* Style for the DropDownList */
.styled-dropdown {
    background-color: #4CAF50; /* Green background */
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #3e8e41;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    /* Dropdown hover style */
    .styled-dropdown:hover {
        background-color: #45a049; /* Slightly lighter green on hover */
    }

    /* Dropdown focus style */
    .styled-dropdown:focus {
        outline: none;
        box-shadow: 0px 0px 5px 2px rgba(0, 150, 0, 0.5);
    }



.cool-multiline {
    width: 100%;
    max-width: 500px;
    height: 150px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .cool-multiline:focus {
        border-color: #28a745;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    }

    .cool-multiline::placeholder {
        color: #aaa;
    }


.cool-textbox {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .cool-textbox:focus {
        border-color: #28a745;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    }

    .cool-textbox::placeholder {
        color: #aaa;
    }


.spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
}

.spinner-circle {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner p {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}
