.alert-success {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
    border-color: #badbcc !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    color: #842029 !important;
    border-color: #f5c2c7 !important;
}

#session-timer-wrapper {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 10px;
}

.alert-custom {
    position: relative;
    padding: 10px 35px 10px 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
}

/* Success */
.alert-custom.success {
    color: #0f5132;
    border-color: rgba(25, 135, 84, 0.4);
    background: rgba(25, 135, 84, 0.15);
}

/* Error */
.alert-custom.error {
    color: #842029;
    border-color: rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.15);
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    opacity: 0.6;
}

.conference-card, .cursor-pointer {
  cursor: pointer !important;
}

.conference-card-disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.profile-image-preview {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
}

.profile-page-img {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover !important;
}

.warning-countdown {
    font-size: 52px;
    font-weight: 700;
    color: #dc3545;
    font-family: monospace;
    line-height: 1;
}

.header-logo {
    width: 200px;
    height: auto !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-link.active {
    margin-bottom: 0px !important;
}

/* Dev By DVS */

/* Datatable Pagination Active Color override */
.page-item.active .page-link,
.active>.page-link {
    background-color: var(--theme-default) !important;
    border-color: var(--theme-default) !important;
    color: #fff !important;
}

.modal-blur {
    backdrop-filter: blur(4px);
}

/* Tooltip Customization */
.tooltip-inner {
    background-color: var(--theme-secondary, #838383) !important;
    color: #ffffff !important;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: var(--theme-secondary, #838383) !important;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: var(--theme-secondary, #838383) !important;
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-right-color: var(--theme-secondary, #838383) !important;
    border-left-color: var(--theme-secondary, #838383) !important;
}

.form-check-input-lg {
    width: 1rem;
    height: 1rem;
}

.truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Datatable Font Size override - generalized using classes for both DataTables 1.x & 2.x */
.dataTables_wrapper,
.dt-container,
table.dataTable,
table.dataTable th,
table.dataTable td,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dt-container .dt-length,
.dt-container .dt-search,
.dt-container .dt-info,
.dt-container .dt-paging {
    font-size: 14px !important;
}

/* Ensure inputs, select dropdowns, and pagination buttons inside DataTable wrappers align to 14px */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dt-container .dt-length select,
.dt-container .dt-search input,
.dt-container .dt-paging .dt-paging-button,
.dt-container .dt-paging .page-link {
    font-size: 14px !important;
}

/* Align DataTable search label and input in the same line */
.dt-search {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    justify-content: flex-end !important;
}

.dt-search label {
    margin-bottom: 0 !important;
}

.dt-search input {
    width: auto !important;
    display: inline-block !important;
    margin: 0 !important;
}

.dataTables_filter label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0 !important;
}

.dataTables_filter input {
    width: auto !important;
    display: inline-block !important;
    margin-left: 0 !important;
}

/* Align DataTable length selector items inline */
.dt-length,
.dataTables_length {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.dt-length label,
.dataTables_length label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0 !important;
}

.dt-length select,
.dataTables_length select {
    width: auto !important;
    display: inline-block !important;
    margin: 0 !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    margin-top: 70px !important;
}

/* ============================================================
   Sidebar Profile Section
   Profile is placed as li.sidebar-profile-li inside ul.sidebar-links
   so it flows naturally above nav items — no overlap possible.
   ============================================================ */

/* Remove theme's default li hover/active/padding from the profile li */
li.sidebar-profile-li,
li.sidebar-profile-li:hover,
li.sidebar-profile-li:focus {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    max-width: unset !important;
}

li.sidebar-profile-li::before,
li.sidebar-profile-li::after {
    display: none !important;
}

/* --- Full profile card --- */
.sidebar-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 12px 14px;
    margin: 0px 20px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(115, 102, 255, 0.08) 0%,
        rgba(115, 102, 255, 0.03) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease;
}

/* --- Avatar wrapper --- */
.sidebar-profile-avatar-link {
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.sidebar-profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.sidebar-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--active-shadow-angry, #7a70ba);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
}

.sidebar-profile-avatar-link:hover .sidebar-profile-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

/* Pencil badge on avatar */
.sidebar-profile-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--active-shadow-angry, #7a70ba);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.sidebar-profile-avatar-link:hover .sidebar-profile-avatar-badge {
    opacity: 1;
    transform: scale(1);
}

/* --- Profile info --- */
.sidebar-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    text-align: center;
}

.sidebar-profile-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--body-font-color, #2c323f);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.sidebar-profile-designation {
    font-size: 11px;
    color: #888;
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.sidebar-profile-edit-link {
    font-size: 12px;
    color: var(--theme-default, #7a70ba);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid var(--theme-default, #7a70ba);
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-profile-edit-link:hover {
    background: var(--theme-default, #7a70ba);
    color: #fff !important;
}

/* --- Mini avatar (shown in collapsed icon-only sidebar) --- */
.sidebar-profile-mini {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 0 8px;
}

.sidebar-profile-mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--active-shadow-angry, #7a70ba);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.sidebar-profile-mini a:hover .sidebar-profile-mini-avatar {
    transform: scale(1.08);
}

/* ============================================================
   Collapsed sidebar (close_icon): hide full card, show mini avatar
   ============================================================ */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon .sidebar-profile-card {
    display: none !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon .sidebar-profile-mini {
    display: flex !important;
}

/* When hovering the collapsed sidebar (expands back) — show full card again */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .sidebar-profile-card {
    display: flex !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .sidebar-profile-mini {
    display: none !important;
}

/* Prevent the theme's li[max-width:86px] rule from clipping the profile li in collapsed state */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon
    .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask
    .simplebar-content-wrapper .simplebar-content > li.sidebar-profile-li {
    max-width: 86px !important;
    overflow: hidden;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover
    .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask
    .simplebar-content-wrapper .simplebar-content > li.sidebar-profile-li {
    max-width: unset !important;
    overflow: visible;
}

/* ============================================================
   Restore the theme's sidebar-links height now that profile is
   inside the scroll area (no more external height hacks needed).
   ============================================================ */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links {
    height: calc(100vh - 115px) !important;
    margin-top: 20px !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon .sidebar-main .sidebar-links {
    height: calc(100vh - 118px) !important;
}

.needs-validation .invalid-feedback {
    color: var(--bs-form-invalid-color) !important;
}

@media only screen and (max-width: 991.98px) {
    .pad-top-sm {
        padding-top: 1.5rem !important;
    }
}