/* Custom CSS to reduce SweetAlert2 alert size */
.swal2-popup {
    font-size: 14px; /* Adjust font size */
}
.swal2-title {
    font-size: 18px; /* Adjust title font size */
}
.swal2-content {
    font-size: 16px; /* Adjust content font size */
}

        /* Custom CSS for SweetAlert2 confirm button */
.swal2-confirm {
    background-color: #2c7be5 !important; /* Button background color */
    border-color: #1555a9 !important;     /* Button border color */
    color: white !important;              /* Button text color */
    padding: 10px 20px !important;        /* Adjust padding */
    font-size: 14px !important;           /* Adjust font size */
}

.swal2-confirm:hover {
    background-color: #1555a9 !important; /* Hover background color */
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8); /* Transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    visibility: hidden; /* Hide initially but keep space */
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear; /* Smooth transition */
}

.spinner-wrapper.show {
    visibility: visible;
    opacity: 1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid transparent;
    border-top-color: #1555a9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 10px;
    font-size: 1em;
    color: #1555a9;
}



.footer {
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 30px;
}

#backButton {
    margin-bottom: 20px;
    margin-top: 40px;
    z-index: 1;
    position: relative;
}

.table-responsive {
    margin-bottom: 60px; /* Adds space between the pagination and back button */
}

.dataTables_paginate {
    z-index: 10;
    position: relative;
}


.tab-content {
    margin-bottom: 60px; /* Add space at the bottom of tab content to ensure back button doesn't overlap */
}

.card-body {
    margin-bottom: 20px; /* Add extra margin at the bottom to prevent overlapping */
}

.custom-dropdown-center {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.small-text p {
    font-size: 0.875rem; /* 14px */
    margin: 0;
}

.small-text strong {
    font-size: 0.875rem; /* Make strong text the same size */
}

@media only screen and (max-width: 768px) {
    table[id^="dataTable"], table.display {
        font-size: 0.85rem; /* Adjust to your preferred size */
    }

    table[id^="dataTable"] th, table.display th {
        font-size: 0.9rem;
        font-weight: bold; /* To match the "Topic Details" styling */
    }

    table[id^="dataTable"] td, table.display td {
        font-size: 0.85rem; /* Adjust table cell content */
    }
}
