/* Loader style */
.loader {
    border: 8px solid #f3f3f3;
    /* Light gray background */
    border-top: 8px solid #3498db;
    /* Blue color for the spinning part */
    border-radius: 50%;
    width: 25px;
    /* Size of the loader */
    height: 25px;
    animation: spin 2s linear infinite;
    /* Apply the spin animation */
    margin: 0 auto;
    /* Center the loader */
}

/* Keyframes for spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* end loader */
.action-button {
    color: #2271b1;
    border: none;
    background-color: transparent;
}

.wrap {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.form-section {
    margin-bottom: 20px;
}

.form-section label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.form-section textarea,
.form-section input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-section textarea {
    resize: vertical;
}

.note {
    color: #888;
    font-size: 0.9rem;
}

.button-primary {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.button-primary:hover {
    background-color: #005c8c;
}

#topic-results {
    margin-top: 20px;
}

#num-topics {
    padding: 5px !important;
    border-radius: 4px !important;
    width: 100%;
    height: 15px;
}

.h2-custom {
    margin: 6px 0 !important;
}

.hover-reveal {
    position: relative;
    max-width: 200px;
    /* Limit the width of the cell */
    white-space: nowrap;
    overflow: hidden;
}

.hover-reveal:hover {
    /* white-space: normal; Allow wrapping the full text */
    max-width: none;
    /* Remove the width limit */
    background-color: #f1f1f1;
    /* Optional background color on hover */
}

.pagination {
    margin-top: 10px;
    text-align: center;
}

.pagination a {
    margin: 2px;
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin-right: 5px;
    background: #f7f7f7;
}

.pagination .current {
    padding: 8px 12px;
    margin: 2px;
    font-weight: bold;
    background: #0073aa;
    color: #fff;
}

.pagination a.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.schedual_temp {
    display: none;
}

.chatgpt-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.chatgpt-table-wrapper table {
    min-width: 1300px;
    /* columns ke hisaab se adjust kar sakte ho */
}

/* Long text wrap fix */
.wrap-column {
    max-width: 250px;
    white-space: normal !important;
    word-break: break-word;
}

.truncate-text {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative;
    color: #2271b1;
    text-decoration: underline dotted;
}

.truncate-text.expanded {
    white-space: normal;
    max-width: 400px;
    /* Limit expansion width */
    overflow: visible;
    text-overflow: clip;
    color: #333;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 999;
}

.chatgpt-table-wrapper th,
.chatgpt-table-wrapper td {
    vertical-align: top;
    text-align: left;
}

.schedule-expiry-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    background: #f9f9f9;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.schedule-grid .form-section {
    margin-bottom: 0;
    min-width: 0;
}

.schedule-grid .schedule-label {
    font-weight: bold;
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
}

.schedule-grid .schedule-input {
    width: 100%;
    box-sizing: border-box !important;
    padding: 6px 8px !important;
    min-width: 0;
    height: 36px;
}

.schedule-grid .radio-row {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 36px;
}

.schedule-grid .radio-row label {
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    cursor: pointer;
    white-space: nowrap;
}



.expire-hint {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* Custom Checkbox Styling */
.custom-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    user-select: none;
    margin-bottom: 15px;
    line-height: 1;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-left: 12px;
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
    vertical-align: middle;

}

.custom-checkbox-container:hover input~.checkmark {
    border-color: #673af3;
}

.custom-checkbox-container input:checked~.checkmark {
    background-color: #673af3;
    /* Purple color */
    border-color: #673af3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-container input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Full-screen overlay loader */
#full-screen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#full-screen-loader .loader {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

#full-screen-loader p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}