@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap');

body {
    background: #F8F8F8;
    font-family: 'Ubuntu', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-box h3 {
    margin-bottom: 20px;
}

.form-box input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-box button {
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.form-box a {
    color: #007BFF;
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* Toggle Button */
.toggle-container {
    text-align: center;
    margin-bottom: 15px;
}

.toggle-btn {
    background: #28A745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s ease;
}

.toggle-btn:hover {
    background: #218838;
}

/* Spinner को सही जगह पर केंद्र में लाने के लिए */
#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}









/* Add responsiveness to modal */
/* Modal Body */
.modal-body {
    max-height: 400px;   /* Keeps the modal within a reasonable height */
    overflow-y: auto;    /* Allows scrolling if the content overflows vertically */
    word-wrap: break-word; /* Wraps the words within the list items */
    overflow-wrap: break-word; /* Ensure long words break */
    padding: 10px;
    word-break: break-word; /* Prevent horizontal overflow */
    white-space: normal;   /* Ensure text can wrap across multiple lines */
}

/* Modal Header */
.modal-header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

/* Modal Footer Button */
.modal-footer button {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    padding: 10px;
    border-radius: 4px;
    white-space: nowrap;  /* Prevents button text from wrapping */
}

.list-group-item .btn {
    white-space: nowrap;  /* Prevents button text in list from wrapping */
}

/* List items styling */
.list-group-item {
    word-wrap: break-word;   /* Wrap long text within list items */
    white-space: normal;     /* Ensure text wraps as normal */
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.5;
    display: block;          /* Makes sure the list item takes up the full width */
    overflow: hidden;        /* Prevents horizontal overflow */
    word-break: break-word;  /* Breaks long words to prevent overflow */
}

/* Modal Dialog */
.modal-dialog {
    max-width: 100%;
    width: 90%;
    margin: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
    }
    .list-group-item {
        font-size: 14px;
    }
    .modal-footer button {
        padding: 12px;
    }
}
