/* ==========================================
   Custom Overrides for Modern Theme
   ========================================== */

nav.navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#accordionSidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
}

.custom-nav-item {
    display: flex;
}

/* ==========================================
   Pagination - Modern Style
   ========================================== */
.pagination>li>a,
.pagination>li>span {
    color: #f5f5f5;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.page-item.disabled .page-link {
    color: #94a3b8;
    pointer-events: none;
    cursor: auto;
    background: #e2e8f0;
    border-color: transparent;
}

.pagination>li>a:focus,
.pagination>li>a:hover,
.pagination>li>span:focus,
.pagination>li>span:hover,
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background: linear-gradient(135deg, #5558e3 0%, #7c4ee8 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ==========================================
   Custom Switches - Modern Style
   ========================================== */
.custom-switch .custom-control-input:checked~.custom-control-label::before {
    background-color: #10b981 !important;
}

.custom-switch .custom-control-input:checked:focus~.custom-control-label::before {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.custom-switch .custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.custom-switch .custom-control-input:active~.custom-control-label::before {
    background-color: #d1fae5;
}

.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: #10b981;
    background-color: #10b981;
}

.form-group .label-title {
    font-weight: 600;
    color: #1e293b;
}

/* ==========================================
   Table Utilities
   ========================================== */
.table-active .font-weight-bold .fa {
    transform: rotate(0deg);
}

.table-active td .collapsed .fa {
    transform: rotate(270deg);
}

/* Status Colors */
.confirmed {
    color: #f59e0b;
}

.healed {
    color: #10b981;
}

.died {
    color: #ef4444;
}

/* ==========================================
   Sticky Elements
   ========================================== */
.sticky {
    background: #1a1d29;
    color: #e2e8f0;
    z-index: 100;
    position: -webkit-sticky;
    position: sticky;
    top: 4.45rem;
}

.notification-title-bg {
    z-index: 100;
    position: -webkit-sticky;
    position: sticky;
    top: 4.45rem;
}

/* ==========================================
   Notification Styling
   ========================================== */
.delete-notif {
    align-self: center;
    margin-left: -15px;
}

.delete-notif a:hover {
    color: #ef4444 !important;
}

.unread-date {
    color: #6366f1 !important;
    font-weight: bold;
    font-size: .8125rem;
}

.unread-text {
    color: #1e293b;
    font-weight: 600;
}

.notif-item {
    white-space: normal !important;
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
    border-bottom: 1px solid #e3e6f0 !important;
    line-height: 1.3rem !important;
    transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-item:hover {
    background: #f8fafc;
}

.icon-circle {
    height: 3.5rem !important;
    width: 3.5rem !important;
}

.notification-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    transform: translate(115%, -80%);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #f5f5f5;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ==========================================
   Floating Elements
   ========================================== */
.float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 15vh;
    right: 5vh;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1003;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.float:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.my-float {
    margin-top: 8px;
    margin-left: 2px;
    font-size: 18px;
}

/* ==========================================
   Position Utilities
   ========================================== */
.fixed {
    position: fixed;
    top: 0;
    left: 0;
}

.daily-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 5.5rem;
    z-index: 98;
    background-color: #f8fafc;
}

/* ==========================================
   Card Variants
   ========================================== */
.card.card-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

/* ==========================================
   User Manager
   ========================================== */
#user-manager tbody tr {
    font-weight: 600;
    font-size: 14px;
}

#user-manager tbody tr td {
    vertical-align: middle;
}

/* ==========================================
   Avatar & Profile
   ========================================== */
.avatar {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    object-fit: cover;
}

.rounded-circle {
    border-radius: 50% !important;
    border: 3px solid #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Section Styling
   ========================================== */
section {
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #f5f5f5;
}

/* ==========================================
   Footer
   ========================================== */
tfoot tr td {
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================
   Alert Links
   ========================================== */
.alert a {
    text-decoration: underline;
    font-weight: 600;
}

/* ==========================================
   Utilities
   ========================================== */
.pull-right-lg {
    float: right !important;
}

.disabled-bg {
    background: #64748b !important;
    opacity: 0.6;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media only screen and (max-width: 991px) {
    .custom-nav-item {
        display: none;
    }

    .show-nav-item {
        display: block;
    }
}

@media only screen and (max-width: 767px) {
    #wrapper #content-wrapper {
        overflow-x: hidden;
    }

    .float {
        bottom: 10vh;
        right: 3vh;
    }
}