:root {
    --primary-color: #2a28b0;
    /* New Green */
    --primary-accent: #2a28b0;
    /* Modern Indigo */
    --secondary-color: #ff751f;
    /* Dwell Orange */
    --secondary-accent: #7c3aed;
    /* Modern Purple */

    --primary-hover: #2a28b0;
    --secondary-hover: #e66a1b;

    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;

    /* Status Soft Colors (Dynamic) */
    --success-soft: #f0fdf4;
    --success-text: #16a34a;
    --success-border: #bbf7d0;
    --danger-soft: #fef2f2;
    --danger-text: #dc2626;
    --danger-border: #fee2e2;
    --warning-soft: #fffbeb;
    --warning-text: #d97706;
    --warning-border: #fef3c7;
    --primary-soft: #eff6ff;
    --primary-text: #2563eb;
    --primary-border: #bfdbfe;
    --secondary-soft: #f8fafc;
    --secondary-text: #475569;
    --secondary-border: #e2e8f0;
    --info-soft: #f0f9ff;
    --info-text: #0891b2;
    --info-border: #bae6fd;

    /* Component Architecture */
    --card-radius: 20px;
    --modal-radius: 24px;
    --button-radius: 50px;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --primary-gradient: var(--primary-color);
    --secondary-gradient: var(--secondary-color);

    /* Backgrounds & Text */
    --background-color: #f1f0f0;
    --body-bg: var(--background-color);
    --text-primary: #334155;
    --body-text: var(--text-primary);
}

.card-header {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem !important;
}

.card-header .card-title {
    color: #ffffff !important;
    margin: 0;
    font-weight: 600;
}

/* Color Safety: Force text visibility in dark headers and sidebar */
.card-header .text-primary,
.modal-header .text-primary,
.sidebar-section-body .text-primary,
.card-header .text-info,
.modal-header .text-info,
.sidebar-section-body .text-info {
    color: #ffffff !important;
    opacity: 0.9;
}

/* General Overrides */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--body-bg) !important;
    color: var(--body-text) !important;
}

/* Backgrounds */
.bg-secondary {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 10px rgba(60, 58, 223, 0.3);
}

.bg-warning {
    background: var(--secondary-gradient) !important;
    box-shadow: 0 2px 10px rgba(255, 117, 31, 0.3);
}

/* Text Colors */
.text-warning {
    color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Borders */
.border-warning {
    border-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn {
    border-radius: var(--button-radius) !important;
    padding: 0.6rem 1.25rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-on-primary) !important;
}

.btn-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-warning {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--text-on-secondary) !important;
}

.btn-warning:hover {
    background: var(--secondary-hover) !important;
    border-color: var(--secondary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.btn-outline-success {
    color: var(--success-text) !important;
    border-color: var(--success-text) !important;
}

.btn-outline-success:hover {
    background: var(--success-text) !important;
    color: #fff !important;
}

.btn-outline-danger {
    color: var(--danger-text) !important;
    border-color: var(--danger-text) !important;
}

.btn-outline-danger:hover {
    background: var(--danger-text) !important;
    color: #fff !important;
}

.badge {
    border-radius: calc(var(--button-radius) / 1.5) !important;
    padding: 0.4em 0.8em !important;
    font-weight: 600 !important;
}

.badge.rounded-pill {
    border-radius: 50rem !important;
}

/* Standard Icon-Only Create New Button */
.btn-create-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 50%;
    /* Circular */
    background: var(--primary-gradient);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(60, 58, 223, 0.3);
    transition: all 0.2s ease-in-out;
    border: none;
    padding: 0;
}

.btn-create-new i {
    font-size: 1.4rem;
    margin: 0;
}

.btn-create-new:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(60, 58, 223, 0.4);
    background: linear-gradient(135deg, #2a28b0 0%, #1e1c90 100%);
}

/* Icons */
.icon-people,
.icon-lock2,
.icon-spinner11,
.icon-key,
.icon-user,
.icon-mail5 {
    color: var(--secondary-color);
}

/* Navbar Logo Adjustment */
.navbar-brand img {
    height: 40px;
    width: auto;
    max-height: 50px;
}

.navbar-brand {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

/* Sidebar Navigation - Fix for Light Background */
.sidebar-content {
    background-color: #ffffff !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

/* User Menu Fix */
.sidebar-user-material .sidebar-section-body {
    background: var(--primary-gradient) !important;
    background-size: cover;
    color: #ffffff !important;
}

.sidebar-section-body-dropdown {
    background: var(--primary-gradient) !important;
    background-size: cover;
    color: #fafafa !important;
}


.sidebar-user-material .sidebar-user-material-footer {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.sidebar-user-material .sidebar-user-material-footer a {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.sidebar-user-material .sidebar-user-material-footer a:hover {
    color: var(--primary-hover) !important;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Default state (inactive) - Dark text on white background */
.sidebar-light .nav-sidebar .nav-item>.nav-link {
    color: #444444 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-light .nav-sidebar .nav-item>.nav-link i {
    color: var(--secondary-color) !important;
    transition: all 0.2s ease;
}

/* Active state */
.sidebar-light .nav-sidebar .nav-item>.nav-link.active {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(60, 58, 223, 0.2);
}

.sidebar-light .nav-sidebar .nav-item>.nav-link.active i {
    color: #ffffff !important;
}

/* Hover state */
.sidebar-light .nav-sidebar .nav-item>.nav-link:hover {
    background-color: rgba(60, 58, 223, 0.08) !important;
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.sidebar-light .nav-sidebar .nav-item>.nav-link:hover i {
    color: #ffffff !important;
}

/* Submenu items */
.sidebar-light .nav-sidebar .nav-item-open>.nav-link:not(.disabled),
.sidebar-light .nav-sidebar>.nav-item-expanded>.nav-link {
    background-color: rgba(0, 0, 0, 0.03) !important;
    color: #333333 !important;
}

.sidebar-light .nav-group-sub .nav-link {
    color: #666666 !important;
}

.sidebar-light .nav-group-sub .nav-link:hover,
.sidebar-light .nav-group-sub .nav-link.active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

/* Navbar */
.navbar-dark {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dropdowns */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color) !important;
}

/* Links */
a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Card Headers */
.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    min-height: 70px;
    display: flex;
    align-items: center;

}

.card-header h5,
.card-header h6 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Table Enhancements */
.table {
    margin-bottom: 0;
}

.table thead th,
table.dataTable thead th,
.dataTables_wrapper .dataTables_scrollHeadInner table thead th {
    background: var(--secondary-color) !important;
    /* text-transform: uppercase; */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    vertical-align: middle;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
    color: #000000;
    font-size: 0.95rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(60, 58, 223, 0.03) !important;
    transition: background-color 0.2s ease;
}

/* Modal Standardization */
.modal-content {
    border-radius: var(--modal-radius) !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: var(--hover-shadow) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.modal-header {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-bottom: none !important;
    padding: 1.25rem 1.5rem !important;
}

.modal-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.3px !important;
}

/* Close Button (BS5 Support) */
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: opacity 0.2s;
    background-size: 0.8rem;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Legacy Close Support (BS4) */
.modal-header .close {
    color: #ffffff !important;
    text-shadow: none;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem !important;
    color: #374151;
}

.modal-footer {
    padding: 1rem 1.5rem !important;
    border-top: 1px solid #f3f4f6 !important;
}

/* Shared UI Components (Centralized) */
.readonly-box {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    min-height: 44px;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.2s;
}

.readonly-box:hover {
    border-color: var(--primary-accent);
    background: #fff;
}

.sticky-action-bar,
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.25rem 2rem;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
    z-index: 999;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    transition: left 0.3s ease, width 0.3s ease;
}

/* Sidebar adjustment for sticky elements */
@media (min-width: 992px) {

    body:not(.sidebar-main-hidden) .sticky-action-bar,
    body:not(.sidebar-main-hidden) .sticky-footer {
        left: 260px;
        width: calc(100% - 260px);
    }

    body.sidebar-main-hidden .sticky-action-bar,
    body.sidebar-main-hidden .sticky-footer {
        left: 0;
        width: 100%;
    }
}

.editable-field {
    position: relative;
    width: 100%;
}

.field-icons {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.field-icons .edit-icon {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.field-icons .edit-icon:hover {
    transform: scale(1.15);
}

.label-standard {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4b5563;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
    display: block;
}

/* Systemic Layout Utilities */
.sticky-card-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-radius: 0 !important;
    background: var(--primary-gradient) !important;
}

.table-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1010;
    background: var(--secondary-color) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.copy-on-hover {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
}

tr:hover .copy-on-hover {
    opacity: 0.7;
}

tr:hover .copy-on-hover:hover {
    opacity: 1;
}

.form-group label:not(.custom-control-label):not(.form-check-label) {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4b5563;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    margin-bottom: 6px !important;
}

/* Fix for Select2 in Modals */
.select2-container {
    z-index: 1000 !important;
}

.select2-selection--multiple {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    min-height: 44px !important;
    padding: 4px 8px !important;
}

/* SweetAlert Button Updates */
.modern-swal-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    box-shadow: 0 4px 10px rgba(38, 153, 171, 0.3) !important;
}

.modern-swal-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color)) !important;
    box-shadow: 0 6px 14px rgba(38, 153, 171, 0.4) !important;
}

/* Glass Effect Toast */
.glass-toast {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    width: 400px !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
}

.glass-toast-success {
    background: rgba(235, 250, 235, 0.95) !important;
    border-left: 6px solid #28a745 !important;
}

.glass-toast-success .swal2-title {
    color: #28a745 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.glass-toast-error {
    background: rgba(253, 235, 235, 0.95) !important;
    border-left: 6px solid #dc3545 !important;
}

.glass-toast-error .swal2-title {
    color: #dc3545 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

/* Date Picker Animation Fix */
.air-datepicker-cell {
    transition: none !important;
}

.air-datepicker {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out !important;
}

.air-datepicker-overlay {
    transition: opacity 0.3s ease-out !important;
    opacity: 0;
}

.air-datepicker-overlay.-active- {
    opacity: 1;
}

.air-datepicker.-active- {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out !important;
}

/* Tree View Styles */
.tree-view {
    padding: 10px;
}

.tree-view ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Top level items */
.tree-view>ul>li {
    padding-left: 0;
    margin-bottom: 5px;
}

/* Children container */
.tree-children {
    display: none;
    padding-left: 9px;
    /* Align with center of parent icon (approx 18px width / 2) */
    margin-top: 0;
}

.tree-children.show {
    display: block;
}

/* Child items */
.tree-children li {
    position: relative;
    padding-left: 30px;
    /* Space for horizontal line and checkbox */
    line-height: 32px;
}

/* Vertical line for children */
.tree-children li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px solid #ccc;
}

/* Horizontal line for children */
.tree-children li::after {
    content: "";
    position: absolute;
    top: 16px;
    /* Center of line-height */
    left: 0;
    width: 25px;
    height: 1px;
    border-top: 1px solid #ccc;
}

/* Fix last child vertical line */
.tree-children li:last-child::before {
    height: 16px;
    /* Stop at horizontal line */
}

/* Toggler Icon */
.tree-toggler {
    cursor: pointer;
    margin-right: 5px;
    color: var(--primary-color);
    font-size: 1.1rem;
    vertical-align: middle;
    width: 18px;
    text-align: center;
    display: inline-block;
}

/* Checkbox alignment */
.tree-view .custom-control {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding-left: 1.5rem;
    /* Default custom control padding */
}

.tree-view .custom-control-label {
    padding-top: 2px;
    font-size: 0.95rem;
}

.tree-label {
    font-weight: 600;
    cursor: pointer;
    color: #333;
}

/* Badge alignment */
.count-badge {
    font-size: 0.75rem;
    vertical-align: middle;
    margin-left: 8px;
}


/* Floating Pills Pagination */
.pagination {
    gap: 8px;
    align-items: center;
}

/* Default pill */
.page-item .page-link {
    border: none;
    border-radius: 50px !important;
    margin: 0 2px;
    padding: 8px 16px;
    background: #ffffff;
    /* pure white */
    color: var(--secondary-color);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

/* ACTIVE = Highlight button (1) */
.page-item.active .page-link {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* HOVER Effect */
.page-item .page-link:hover:not(.disabled) {
    background: var(--secondary-color) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* DISABLED = Faded button (for "2" if disabled) */
.page-item.disabled .page-link {
    background: #f1f1f1 !important;
    /* light gray */
    color: #b4b4b4 !important;
    box-shadow: none;
    cursor: not-allowed;
}

/* Page Status Box (PAGE 1 OF 2) */
.page-status {
    background: #fff;
    /* pure white */
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}


/* Sidebar Section Body Override */
.sidebar-section-body {
    background-color: var(--primary-color) !important;
    color: #fff;
}

/* Sidebar User Text Override */
.text-muted1 {
    color: var(--secondary-color) !important;
    font-weight: 800 !important;
}

.text-muted {
    color: #333333 !important;

}

.row {
    margin-top: auto;
}

.modal-header .btn-close {
    --bs-btn-close-opacity: 2;
    /* Ensure white icon */
    --bs-btn-close-hover-opacity: 2;
}

.card-header[class*=bg-] {
    padding-top: 0rem;
    padding-bottom: 0rem;
}

/* Modern UI Styles from Add Subscription */
.card {
    border: none;
    border-radius: 12px;
    /*box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);*/
    /*transition: transform 0.2s;*/
}

.card-header {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control,
.select2-selection {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 1rem;
    height: auto !important;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus,
.select2-container--default .select2-selection--single:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    outline: none;
}

.select2-selection--single {
    padding: 0.6rem 1rem !important;
    height: 48px !important;
    display: flex !important;
    align-items: center;
}

.select2-selection__arrow {
    height: 46px !important;
    display: none;
    /* Hide default arrow if custom styling messes it up, or adjust */
}

/* Note: This overrides the existing btn-primary color */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
    transition: all 0.2s;
    color: #fff !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

/* Animation for dynamic fields */
#dynamicFields {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.validation-invalid-label {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: #ef4444;
}

.mb-4 {
    margin-bottom: 0rem !important;
}

/* User Menu Utilities */
/*.hover-opacity-100:hover {
    opacity: 1 !important;
}*/

/*.transition-opacity {
    transition: opacity 0.3s ease-in-out;
}*/

.list-group-item-action:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--primary-color) !important;
}

.list-group-item-action:hover .text-body {
    color: var(--primary-color) !important;
}

/* Modern Alert Styles */
.modern-alert-popup {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 2rem !important;
}

.modern-alert-title {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.modern-alert-content {
    color: #4a4a4a !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

.modern-alert-confirm-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(60, 58, 223, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.modern-alert-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(60, 58, 223, 0.4) !important;
}

.modern-alert-cancel-btn {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.modern-alert-cancel-btn:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

/* Success Icon Animation Override */
.swal2-icon.swal2-success {
    border-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: 4px solid rgba(16, 185, 129, 0.2) !important;
}

/* Error Icon Animation Override */
.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right {
    background-color: #ef4444 !important;
}

/* Fix for SweetAlert2 Icon Artifacts on Glass Background */
.swal2-icon.swal2-success .swal2-success-fix,
.swal2-icon.swal2-success .swal2-success-circular-line-left,
.swal2-icon.swal2-success .swal2-success-circular-line-right {
    background-color: #ffffff !important; /* Match popup background to hide mask lines */
}