/* Admin Font Family - Applied to entire admin panel */
body,
.admin-wrapper,
.admin-topbar,
.horizontal-nav,
.admin-footer,
.main-content,
.content-area {
    font-family: var(--admin-font-family, 'PT Sans'), Arial, Helvetica, 'DejaVu Sans', 'Liberation Sans', sans-serif !important;
}

/* Global: Force LTR left-aligned text in ALL dropdown menus (English) */
.admin-wrapper .dropdown-menu,
.admin-topbar .dropdown-menu {
    text-align: start !important;
    direction: ltr !important;
}

.admin-wrapper .dropdown-menu .dropdown-item,
.admin-topbar .dropdown-menu .dropdown-item {
    text-align: start !important;
    direction: ltr !important;
}

.admin-wrapper .dropdown-menu .dropdown-header,
.admin-topbar .dropdown-menu .dropdown-header {
    text-align: start !important;
    direction: ltr !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* MLM Settings Page Styles - application/views/admincontrol/setting/mlm_settings.php */
.mlm_css-form-check-card {
    position: relative;
}

.mlm_css-form-check-card .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mlm_css-form-check-card .form-check-input:checked + .form-check-label .card {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.mlm_css-form-check-card .form-check-label {
    cursor: pointer;
    margin-bottom: 0;
}

.mlm_css-form-check-card .form-check-label .card {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.mlm_css-form-check-card .form-check-label .card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* MLM Levels Page Styles - application/views/admincontrol/setting/mlm_levels.php */
.mlm_css-table-responsive {
    border-radius: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

.mlm_css-table-responsive::-webkit-scrollbar {
    height: 8px;
}

.mlm_css-table-responsive::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.mlm_css-table-responsive::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 4px;
}

.mlm_css-table-responsive::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

.mlm_css-table-responsive .table {
    margin-bottom: 0;
    white-space: nowrap;
    min-width: 800px;
}

.mlm_css-table-responsive .table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #343a40;
    color: white;
}

.mlm_css-table-responsive .table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.mlm_css-table-responsive .table tbody td {
    padding: 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
}

.mlm_css-input-group-sm .form-control {
    border-radius: 0.375rem;
    min-width: 80px;
}

.mlm_css-input-group-sm .input-group-text {
    border-radius: 0 0.375rem 0.375rem 0;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.mlm_css-notification-card {
    border-left: 4px solid #0dcaf0;
}

.mlm_css-notification-card .alert {
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.mlm_css-notification-card .alert:last-child {
    margin-bottom: 0;
}

/* Compact Level Selector Styles - application/views/admincontrol/setting/mlm_levels.php */
.mlm_css-compact-level-selector {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.mlm_css-level-preview {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 60px;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.mlm_css-level-preview .mlm_css-level-number {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.125rem;
}

.mlm_css-level-preview .mlm_css-level-text {
    font-size: 0.625rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mlm_css-level-slider-container {
    flex: 1;
    position: relative;
}

.mlm_css-level-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.mlm_css-level-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.mlm_css-level-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.4);
}

.mlm_css-level-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.mlm_css-level-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.4);
}

.mlm_css-level-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.375rem;
    font-size: 0.625rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive adjustments for level selector */
@media (max-width: 575.98px) {
    .mlm_css-compact-level-selector {
        padding: 0.75rem;
    }
    
    .mlm_css-level-preview {
        min-width: 50px;
        padding: 0.5rem 0.75rem;
        margin-right: 0.75rem;
    }
    
    .mlm_css-level-preview .mlm_css-level-number {
        font-size: 1.25rem;
    }
    
    .mlm_css-level-preview .mlm_css-level-text {
        font-size: 0.5rem;
    }
    
    .mlm_css-level-slider {
        height: 5px;
    }
    
    .mlm_css-level-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .mlm_css-level-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 767.98px) {
    .mlm_css-table-responsive {
        font-size: 0.875rem;
    }
    
    .mlm_css-table-responsive .table th,
    .mlm_css-table-responsive .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .mlm_css-input-group-sm .form-control {
        font-size: 0.75rem;
    }
    
    .mlm_css-input-group-sm .input-group-text {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Welcome Admin Header Section */
.dashboard-welcome-header {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 50%, #6610f2 100%);
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.3);
}

/* Button container responsive behavior */
.dashboard-welcome-header .d-flex.flex-wrap {
    justify-content: center;
}

@media (min-width: 768px) {
    .dashboard-welcome-header .d-flex.flex-wrap {
        justify-content: flex-end;
    }
}

/* Product Campaign Page Styles - application/views/admincontrol/product_campaign/index.php */
.product-row {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.product-row:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.product-row:hover .btn-group-sm .btn {
    opacity: 1;
}

.product-row .btn-group-sm .btn {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.product-row .btn-group-sm .btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Decorative pattern for welcome header */
.dashboard-welcome-pattern {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 15px 15px;
    transform: rotate(45deg);
    margin-top: -50px;
    margin-right: -50px;
}

/* Avatar containers with specific sizing */
.dashboard-avatar-64 {
    width: 64px !important;
    height: 64px !important;
}

.dashboard-avatar-60 {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    background-color: #f8f9fa;
}

/* API Documentation Page - Code Element Fixes */
.top-content code,
.api-content code {
    font-size: 1em !important;
    color: #d63384 !important;
    word-wrap: break-word;
}

.top-content pre,
.api-content pre {
    font-size: 0.9em !important;
    line-height: 1.5 !important;
}

.top-content table,
.api-content table {
    font-size: 0.95em !important;
}

.top-content .card-body,
.api-content .card-body {
    font-size: 1rem !important;
}

.json-key {
    color: #495057 !important;
}

.json-value {
    color: #198754 !important;
}

.json-string {
    color: #0d6efd !important;
}

.json-number {
    color: #fd7e14 !important;
}

.json-boolean {
    color: #6f42c1 !important;
}

.json-null {
    color: #6c757d !important;
}

/* API Documentation Enhanced Styles */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

#backToTop {
    transition: all 0.3s ease;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Floating Action Menu */
#floatingSearch,
#floatingHelp {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#floatingSearch:hover,
#floatingHelp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#floatingSearch:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

#floatingHelp:hover {
    background-color: var(--bs-info);
    border-color: var(--bs-info);
    color: white;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-rgb) 100%);
}

.bg-gradient.bg-success {
    background: linear-gradient(135deg, var(--bs-success) 0%, var(--bs-success-rgb) 100%);
}

.bg-gradient.bg-info {
    background: linear-gradient(135deg, var(--bs-info) 0%, var(--bs-info-rgb) 100%);
}

/* Simple API Documentation Footer Styles */
footer.bg-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer.bg-dark .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Online status indicator */
.dashboard-online-status {
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-online-status i {
    font-size: 6px !important;
}

/* Country flag sizing */
.dashboard-country-flag {
    width: 20px !important;
    height: 15px !important;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Rank badge circles */
.dashboard-rank-badge {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Performance bar */
.dashboard-performance-bar {
    height: 4px;
    z-index: 1;
}

/* Empty state icon */
.dashboard-empty-state-icon {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Security Status Pulse Animation */
.pulse-dot {
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Card footer gradients */
.dashboard-card-footer-gradient {
    border-radius: 0 0 1.5rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Warning button gradient */
.dashboard-warning-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff8906 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Small arrow icon */
.dashboard-small-arrow {
    font-size: 0.8rem;
}

/* Performance bar dynamic width */
.dashboard-performance-width-1 {
    width: 100%;
}

.dashboard-performance-width-2 {
    width: 85%;
}

.dashboard-performance-width-3 {
    width: 70%;
}

.dashboard-performance-width-4 {
    width: 55%;
}

.dashboard-performance-width-5 {
    width: 40%;
}

.dashboard-performance-width-6 {
    width: 25%;
}

.dashboard-performance-width-7 {
    width: 10%;
}

.dashboard-performance-width-8 {
    width: 5%;
}

/* Mobile Responsive Styles for Dashboard */
@media (max-width: 575px) {

    /* Dashboard container fixes */
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Row spacing adjustments */
    .row.mb-4 {
        margin-bottom: 1.5rem !important;
    }

    /* Welcome Admin Section - Mobile Fixes */
    .dashboard-welcome-header {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem !important;
    }

    .dashboard-welcome-header .row {
        gap: 1.5rem;
    }

    .dashboard-welcome-header .col-lg-8 {
        margin-bottom: 1rem;
    }

    .dashboard-welcome-header .col-lg-4 {
        text-align: center !important;
    }

    /* Welcome text responsive */
    .dashboard-welcome-header h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .dashboard-welcome-header p {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Button adjustments for mobile */
    .dashboard-welcome-header .btn {
        font-size: 0.85rem !important;
        padding: 0.6rem 1rem !important;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Avatar sizing on mobile */
    .dashboard-avatar-64 {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Tablet responsive styles */
@media (min-width: 576px) and (max-width: 991px) {
    .dashboard-welcome-header .col-lg-4 {
        margin-top: 1rem;
    }

    .dashboard-welcome-header .btn {
        min-width: 160px;
    }
}

/* Small mobile optimizations */
@media (max-width: 575px) {
    .dashboard-welcome-header {
        padding: 1rem 0.75rem !important;
    }
    
    .dashboard-welcome-header h1 {
        font-size: 1.25rem !important;
    }
    
    .dashboard-welcome-header p {
        font-size: 0.8rem !important;
    }
    
    .dashboard-welcome-header .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        min-width: 120px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .dashboard-avatar-64 {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .dashboard-welcome-header {
        padding: 0.75rem 0.5rem !important;
    }
    
    .dashboard-welcome-header h1 {
        font-size: 1.1rem !important;
    }
    
    .dashboard-welcome-header p {
        font-size: 0.75rem !important;
    }
    
    .dashboard-welcome-header .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        min-width: 100px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===== DEMO MODE FLYING MESSAGE ===== */
/* Fixed triangular demo mode indicator in bottom-right corner */
.demo-fly-message {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 110px;
    height: 110px;
    background-color: #ff9800;
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
    z-index: 9999;
    overflow: hidden;
}

/* Content positioning within the triangle */
.demo-fly-message .content {
    position: absolute;
    right: 7px;
    bottom: 2px;
    text-align: center;
}

/* Text and icon styling for demo message */
.demo-fly-message p,
.demo-fly-message i {
    margin: 0;
    padding: 0;
    color: white;
    font-size: 14px;
    text-align: right;
    line-height: 1.6;
}

/* Mobile responsive adjustments for demo message */
@media (max-width: 400px) {
    .demo-fly-message {
        width: 100px;
        height: 100px;
        clip-path: polygon(100% 100%, 0 100%, 100% 0);
    }

    .demo-fly-message .content {
        position: absolute;
        right: 27px;
        bottom: 5px;
        text-align: center;
    }

    .demo-fly-message p,
    .demo-fly-message i {
        margin: 0;
        padding: 0;
        color: white;
        font-size: 10px;
        text-align: right;
        line-height: 1.3;
    }
}

/* ===== NOTIFICATION DROPDOWN STYLES ===== */
/* Reset all dropdown items to normal state */
.dropdown-item {
    background: white !important;
    border: none !important;
    padding: 0.75rem 1.25rem !important;
    min-height: auto !important;
}

/* Notification dropdown specific styling */
.dropdown-menu[style*="width: 350px"] .dropdown-item {
    padding: 0.75rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-height: 60px !important;
    background: white !important;
    color: #212529 !important;
    transition: all 0.3s ease !important;
}

/* Notification dropdown hover effects */
.dropdown-menu[style*="width: 350px"] .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    transform: translateX(5px) !important;
}

/* Notification icons styling */
.dropdown-menu[style*="width: 350px"] .dropdown-item i {
    width: 20px !important;
    height: 20px !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Notification text content */
.dropdown-menu[style*="width: 350px"] .dropdown-item div {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Notification title styling */
.dropdown-menu[style*="width: 350px"] .dropdown-item .fw-bold {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.25rem !important;
    color: #212529 !important;
}

/* Notification description styling */
.dropdown-menu[style*="width: 350px"] .dropdown-item small {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    color: #6c757d !important;
}

/* ===== PRINT MESSAGE STYLING ===== */
/* Flash message container - Fixed at bottom of screen */
.print-message {
    position: fixed !important;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 99999 !important;
    padding: 0;
    pointer-events: none;
}

.print-message .alert {
    display: block !important;
    width: 100%;
    margin: 0;
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0;
    font-weight: 500;
}

.print-message .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.print-message .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.print-message .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.print-message .alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.print-message .alert i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.print-message .btn-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.print-message .btn-close:hover {
    opacity: 1;
}



/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .print-message {
        padding: 0;
    }

    .print-message .alert {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .print-message {
        padding: 0;
    }

    .print-message .alert {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

/* ====================================
   Language Management Pages CSS
   Routes: admincontrol/language/*, admincontrol/translation_edit/*
   ==================================== */

/* Flag Images - Essential sizing only */
.table img[alt],
#flagSelector img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* Language Dropdown - Force internal scroll */
.dropdown .dropdown-menu {
    max-height: 250px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: absolute !important;
    z-index: 1050 !important;
}



/* Language Dropdown Flag Display - Simple approach */
.language-flag-display {
    display: inline-block;
    vertical-align: middle;
}

.language-flag-display img {
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang_edit_flag_btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Selected Flag Highlighting */
.lang_flag_selected {
    position: relative;
    background: rgba(13, 110, 253, 0.1) !important;
    border: 2px solid #0d6efd !important;
    border-radius: 8px !important;
    padding: 4px !important;
}



.lang_flag_selected::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lang_flag_selected .lang_edit_flag_btn {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

/* Flag Selection Animation */
@keyframes lang_flag_highlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Translation Page - Table Enhancements */
.lang_translation_empty_state {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lang_translation_empty_icon i {
    font-size: 3rem;
    opacity: 0.3;
}

.lang_translation_key_code {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Styles for admincontrol/userslist */

/* Ensure Bootstrap spinner works properly with existing dimmer functionality */
.dimmer .loader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Make sure dimmer starts hidden */
.dimmer:not(.active) .loader {
    display: none !important;
}

.dimmer.active .loader {
    display: block !important;
}

/* Ensure smooth transitions */
.dimmer-content {
    transition: opacity 0.3s ease;
}

.dimmer.active .dimmer-content {
    opacity: 0.5;
    pointer-events: none;
}

/* ==============================
   Styles for admincontrol/userslisttree
   Improved tree connectors and layout
   ============================== */
.tree-stats {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 10;
}

.tree-stats .stat-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    padding: .35rem .75rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.tree-stats .stat-item+.stat-item {
    margin-left: .5rem;
}

/* Connector helper when many users exist on same level */
.pyramid-level[data-has-connections="true"]::after {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: 2%;
    right: 2%;
    height: 2px;
    background: #6c757d;
    opacity: .6;
}

.mlm-user::before {
    background: #6c757d !important;
    opacity: .6;
}

.mlm-user::after {
    background: #6c757d !important;
    opacity: .8;
}

@media (max-width: 768px) {
    .tree-stats {
        display: none;
    }
}

/* Shared Drag and Drop Styles for Users List and Tree */
.drag-handle,
.tree-drag-handle {
    opacity: 0.3;
    transition: opacity 0.3s ease;
    cursor: grab;
}

.user-table tbody tr:hover .drag-handle,
.tree-user-node:hover .tree-drag-handle {
    opacity: 0.8;
}

.drag-handle:active,
.tree-drag-handle:active {
    cursor: grabbing;
}

/* Dragging states */
.table-active.dragging,
.tree-user-node.dragging {
    opacity: 0.6;
    transform: scale(0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Drop target states */
.drop-target.table-warning,
.tree-user-node.drop-target {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%) !important;
    color: white !important;
    transform: scale(1.05);
    animation: dnd-pulse 1s infinite;
}

@keyframes dnd-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Debug Pages Styles */
.debug-log-container {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.debug-line-number {
    min-width: 40px;
    font-size: 11px;
}

.debug-log-text {
    background: none !important;
    border: none;
    font-size: 13px;
    color: inherit;
}

.debug-table-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.debug-table {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.debug-terminal-dot {
    width: 12px;
    height: 12px;
}

.debug-console-body {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* ==============================
   Product List Page Enhancements
   Route: admincontrol/listproduct
   ============================== */

/* Product table enhancements */
.product-table-container {
    border-radius: 0.75rem;
    overflow: visible;
    /* Changed from hidden to visible for dropdowns */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Ensure table itself allows dropdowns to show */
.product-table-container .table {
    overflow: visible;
}

/* Product image styling */
.product-image-cell img {
    transition: transform 0.2s ease;
}

.product-image-cell img:hover {
    transform: scale(1.1);
}

/* Commission badges styling */
.commission-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

/* Action buttons group styling */
.product-actions .btn-group .btn {
    border-radius: 0.375rem !important;
    transition: all 0.2s ease;
    margin-right: 0.25rem;
}

.product-actions .btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Fix dropdown z-index issues */
.product-actions .btn-group {
    position: relative;
    z-index: 1000;
}

.product-actions .dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Ensure table rows don't interfere with dropdowns */
.table tbody tr {
    position: relative;
    z-index: 1;
}

.table tbody tr:hover {
    z-index: 2;
}

/* Handle dropdowns in last few rows that might be cut off */
.table tbody tr:nth-last-child(-n+3) .dropdown-menu {
    transform: translateY(-100%);
    top: auto !important;
    bottom: 100% !important;
}

/* Ensure dropdown stays within viewport */
.product-actions .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    min-width: 180px;
}

/* Commission display styling */
.commission-display {
    min-width: 120px;
}

.commission-display .fw-bold {
    font-size: 0.9rem;
}

.commission-display small {
    font-size: 0.75rem;
}

/* Product status badges */
.product-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Enhanced filter section */
.product-filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Product table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Empty state styling */
.product-empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    padding: 3rem 2rem;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 0.5rem;
    }

    .product-actions .btn-group {
        flex-direction: column !important;
        gap: 0.25rem;
    }

    .product-actions .btn-group .btn {
        margin-right: 0;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .commission-display {
        min-width: auto;
    }

    .commission-display .fw-bold {
        font-size: 0.8rem;
    }
}

/* ==============================
   Product Upload Pages Enhancements
   Routes: admincontrol/productupload, admincontrol/videoupload
   ============================== */

/* Image upload page styles */
.image-card,
.video-card {
    transition: all 0.3s ease;
}

.image-card:hover,
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-wrapper,
.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.image-overlay,
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.image-wrapper:hover .image-overlay,
.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.delete-image-btn,
.delete-video-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.delete-image-btn:hover,
.delete-video-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Upload areas */
.upload-area,
.upload-thumbnail-area {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover,
.upload-thumbnail-area:hover {
    border-color: var(--bs-primary) !important;
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateY(-2px);
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.upload-area:hover::before {
    opacity: 1;
}

/* File preview styles */
.fileUpload-gallery img,
.fileUpload-gallery-s3 img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    margin: 0.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fileUpload-gallery img:hover,
.fileUpload-gallery-s3 img:hover {
    transform: scale(1.05);
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Thumbnail preview */
.thumbnail-preview img {
    transition: all 0.2s ease;
    border: 2px solid #e9ecef;
}

.thumbnail-preview:hover img {
    transform: scale(1.02);
    border-color: var(--bs-primary);
}

/* Video URL input enhancements */
.input-group .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
    font-weight: 500;
}

#product_media_upload_path {
    transition: all 0.3s ease;
}

#product_media_upload_path:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* Alert enhancements */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-color: #b6d4da;
    border-left: 4px solid #17a2b8;
}

/* Button enhancements */
.btn-success.btn-lg {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-success.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Video platform specific styling */
.bi-youtube {
    color: #ff0000 !important;
    font-size: 1.1rem;
}

/* Empty state improvements */
.text-center.py-5 i.display-1 {
    opacity: 0.6;
    margin-bottom: 1.5rem !important;
}

/* Badge count styling */
.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

/* Modal enhancements */
.modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem 1rem 0 0;
}

/* Responsive improvements for upload pages */
@media (max-width: 768px) {

    .image-card,
    .video-card {
        margin-bottom: 1rem;
    }

    .upload-area,
    .upload-thumbnail-area {
        padding: 2rem 1rem !important;
    }

    .fileUpload-gallery img,
    .fileUpload-gallery-s3 img {
        width: 60px;
        height: 60px;
    }
}

/* ==============================
   Tutorial Management Pages CSS
   Routes: admincontrol/tutorial/*
   ============================== */

/* Tutorial main page enhancements */
.tutorial-main-card {
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tutorial-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.tutorial-nav-pills .nav-link {
    border-radius: 0.75rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tutorial-nav-pills .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tutorial-nav-pills .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tutorial-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.tutorial-form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.tutorial-form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.tutorial-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

.tutorial-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tutorial-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tutorial-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.tutorial-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Tutorial table enhancements */
.tutorial-table-container {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tutorial-table {
    margin-bottom: 0;
}

.tutorial-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 1rem;
}

.tutorial-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #f1f3f4;
}

.tutorial-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Tutorial status badges */
.tutorial-status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tutorial-status-active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tutorial-status-inactive {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tutorial action buttons */
.tutorial-action-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 0.125rem;
}

.tutorial-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tutorial empty state */
.tutorial-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1rem;
    border: 2px dashed #dee2e6;
}

.tutorial-empty-state i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.tutorial-empty-state h5 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.tutorial-empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Tutorial loading state */
.tutorial-loading-state {
    text-align: center;
    padding: 3rem 2rem;
}

.tutorial-loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #667eea;
}

/* Tutorial error state */
.tutorial-error-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-radius: 1rem;
    border: 1px solid #f5c6cb;
}

.tutorial-error-state i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.tutorial-error-state h5 {
    color: #721c24;
    margin-bottom: 0.5rem;
}

.tutorial-error-state p {
    color: #721c24;
    margin-bottom: 0;
}

/* Tutorial form validation */
.tutorial-form-group.has-error .tutorial-form-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.tutorial-form-group.has-error .tutorial-form-label {
    color: #dc3545;
}

.tutorial-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Tutorial summernote editor enhancements */
.tutorial-summernote-container {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.tutorial-summernote-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.tutorial-summernote-container .note-editor {
    border: none;
    border-radius: 0;
}

/* Tutorial responsive design */
@media (max-width: 768px) {
    .tutorial-form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .tutorial-nav-pills .nav-link {
        margin: 0.125rem 0;
        text-align: center;
    }

    .tutorial-table-container {
        border-radius: 0.5rem;
    }

    .tutorial-table thead th,
    .tutorial-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .tutorial-action-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        margin: 0.125rem 0;
    }

    .tutorial-btn-primary,
    .tutorial-btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {

    .tutorial-empty-state,
    .tutorial-loading-state,
    .tutorial-error-state {
        padding: 2rem 1rem;
    }

    .tutorial-empty-state i,
    .tutorial-error-state i {
        font-size: 3rem;
    }

    .tutorial-table thead th,
    .tutorial-table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}

/* ==============================
   System Status Pages CSS
   Routes: admincontrol/system_status, admincontrol/system_issues
   ============================== */

/* System Status Main Page */
.system-status-grid {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.system-status-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.system-status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.system-status-item.border-success {
    border-left-color: #198754;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.05) 0%, rgba(25, 135, 84, 0.02) 100%);
}

.system-status-item.border-danger {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

.system-info-list {
    max-height: 500px;
    overflow-y: auto;
}

.system-info-item {
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.system-info-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateX(5px);
}

.system-info-item:last-child {
    border-bottom: none !important;
}

/* System Issues Page */
.system-healthy-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    border: 2px dashed #28a745;
}

.system-issues-count .badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.system-issues-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.system-issue-item {
    transition: all 0.3s ease;
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

.system-issue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    border-left-color: #ff8c00;
}

.system-issue-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.system-issue-content h6 {
    color: #495057;
    font-size: 1.1rem;
}

.system-issue-actions .btn {
    transition: all 0.2s ease;
}

.system-issue-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* System Status Cards */
.system-status-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.system-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.system-status-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1.5rem;
}

.system-status-header h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.system-status-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Status Badges */
.system-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-status-badge.installed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.system-status-badge.not-installed {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* System Information Items */
.system-info-badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Design for System Status */
@media (max-width: 768px) {
    .system-status-grid {
        max-height: 400px;
    }

    .system-info-list {
        max-height: 300px;
    }

    .system-issues-list {
        max-height: 400px;
    }

    .system-status-header {
        padding: 1rem;
    }

    .system-status-header h4 {
        font-size: 1.25rem;
    }

    .system-status-header p {
        font-size: 0.875rem;
    }

    .system-issue-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .system-issue-actions {
        width: 100%;
    }

    .system-issue-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .system-healthy-state {
        padding: 2rem 1rem;
    }

    .system-healthy-state i {
        font-size: 3rem !important;
    }

    .system-healthy-state h3 {
        font-size: 1.5rem;
    }

    .system-issues-count .badge {
        font-size: 1rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .system-status-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .system-status-item .badge {
        align-self: flex-end;
    }
}

/* ==============================
   Cron Jobs Management Page CSS
   Routes: admincontrol/cron
   ============================== */

/* Cron Jobs Grid */
.cron-jobs-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.cron-job-item {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cron-job-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cron-job-item .card-body {
    padding: 1.5rem;
}

.cron-job-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(0, 123, 255, 0.2);
}

.cron-job-item.border-primary .cron-job-icon {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

.cron-job-item.border-success .cron-job-icon {
    background: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
}

.cron-job-item.border-warning .cron-job-icon {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

.cron-job-item.border-info .cron-job-icon {
    background: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
}

.cron-job-item.border-secondary .cron-job-icon {
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.2);
}

.cron-job-item.border-danger .cron-job-icon {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

.cron-job-status .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cron-job-command {
    margin-top: 1rem;
}

.cron-job-command .input-group {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cron-job-command .form-control {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cron-job-command .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    background-color: #fff;
}

.cron-job-command .btn {
    border-radius: 0;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cron-job-command .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cron-job-command .btn:active {
    transform: translateY(0);
}

/* Cron Job Item Specific Styles */
.cron-job-item.border-primary {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.02) 0%, rgba(13, 110, 253, 0.05) 100%);
}

.cron-job-item.border-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.02) 0%, rgba(25, 135, 84, 0.05) 100%);
}

.cron-job-item.border-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.02) 0%, rgba(255, 193, 7, 0.05) 100%);
}

.cron-job-item.border-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.02) 0%, rgba(13, 202, 240, 0.05) 100%);
}

.cron-job-item.border-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.02) 0%, rgba(108, 117, 125, 0.05) 100%);
}

.cron-job-item.border-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.02) 0%, rgba(220, 53, 69, 0.05) 100%);
}

/* Cron Job Header */
.cron-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1.5rem;
}

.cron-header-gradient h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cron-header-gradient p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Responsive Design for Cron Jobs */
@media (min-width: 768px) {
    .cron-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .cron-jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .cron-job-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .cron-job-status {
        align-self: flex-end;
    }

    .cron-job-icon {
        width: 50px;
        height: 50px;
    }

    .cron-job-icon i {
        font-size: 1.5rem !important;
    }

    .cron-job-command .input-group {
        flex-direction: column;
    }

    .cron-job-command .btn {
        border-radius: 0 0 0.5rem 0.5rem;
        margin-top: -1px;
    }
}

@media (max-width: 576px) {
    .cron-header-gradient {
        padding: 1rem;
    }

    .cron-header-gradient h4 {
        font-size: 1.25rem;
    }

    .cron-header-gradient p {
        font-size: 0.875rem;
    }

    .cron-job-item .card-body {
        padding: 1rem;
    }

    .cron-job-icon {
        width: 40px;
        height: 40px;
    }

    .cron-job-icon i {
        font-size: 1.25rem !important;
    }

    .cron-job-command .form-control {
        font-size: 0.8rem;
    }

    .cron-job-command .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* All Transactions Page Enhancements */
.transaction-table th {
    border-top: none !important;
    font-weight: 600;
    color: #495057;
}

.transaction-table td {
    vertical-align: middle;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

code.bg-light {
    background-color: #f8f9fa !important;
    color: #6c757d;
    font-size: 0.875rem;
}

.transaction-content .table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
}

.transaction-content .table {
    margin-bottom: 0;
}

.transaction-content .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Filter form enhancements */
.bg-light {
    background-color: #f8f9fa !important;
}

.form-select-sm,
.input-group-sm .form-control {
    font-size: 0.875rem;
}

/* Loading spinner enhancement */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Empty state styling */
.fa-inbox {
    opacity: 0.5;
}

/* Responsive improvements */
@media (max-width: 768px) {

    .transaction-table th,
    .transaction-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.7rem;
    }
}

/* admincontrol/product/reviews - Product Reviews Page Styles */
.reviews-page .review-row {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.reviews-page .review-row:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reviews-page .review-row td {
    vertical-align: middle;
    border-top: none;
}

.reviews-page .review-text {
    line-height: 1.4;
}

.reviews-page .review-text .text-truncate {
    cursor: help;
}

.reviews-page .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.reviews-page .language-flag {
    width: 16px;
    height: 12px;
    margin-right: 5px;
}

.reviews-page .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
}

.reviews-page .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.reviews-page .modal-header.bg-primary {
    background-color: var(--bs-primary) !important;
}

.reviews-page .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.reviews-page .nav-pills .nav-link.active {
    background-color: var(--bs-primary);
}

.reviews-page .table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
}

.reviews-page .table-light th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.reviews-page .pagination-td .pagination {
    margin-bottom: 0;
}

.reviews-page .pagination .page-link {
    color: var(--bs-primary);
    border-color: #dee2e6;
}

.reviews-page .pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.reviews-page .pagination .page-link:hover {
    color: var(--bs-primary);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* admincontrol/store_category - Store Categories Page Styles */
.store-category-page .category-row {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.store-category-page .category-row:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.store-category-page .category-row td {
    vertical-align: middle;
    border-top: none;
}

.store-category-page .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.store-category-page .badge {
    font-size: 0.7rem;
}

.store-category-page .text-truncate {
    cursor: help;
}

/* admincontrol/store/category_add - Category Add/Edit Form Styles */
.store-category-add-page .form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

.store-category-add-page .form-label i {
    color: #6c757d;
}

.store-category-add-page .form-text {
    font-size: 0.75rem;
    color: #6c757d;
}

.store-category-add-page .img-thumbnail {
    border: 2px dashed #dee2e6;
    transition: all 0.2s ease;
}

.store-category-add-page .img-thumbnail:hover {
    border-color: #0d6efd;
}

.store-category-add-page .form-check-label {
    cursor: pointer;
}

.store-category-add-page .form-check-input:checked+.form-check-label {
    font-weight: 500;
}

.store-category-add-page .invalid-feedback {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.store-category-add-page .is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .store-category-page .btn-group {
        flex-direction: column;
    }

    .store-category-page .btn-group .btn {
        margin-bottom: 0.25rem;
    }

    .store-category-add-page .col-lg-4 {
        margin-top: 1rem;
    }
}

/* admincontrol/product/orders - Orders Management Page Styles */
.orders-page .order-row {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.orders-page .order-row:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.orders-page .order-row td {
    vertical-align: middle;
    border-top: none;
}

.orders-page .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.orders-page .badge {
    font-size: 0.7rem;
}

.orders-page .form-select-sm {
    font-size: 0.75rem;
}

.orders-page .order-checkbox {
    transform: scale(1.1);
}

.orders-page .table-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
    border-color: rgba(25, 135, 84, 0.2) !important;
}

.orders-page .bg-primary.bg-opacity-10 {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.orders-page code {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.orders-page .status-change-rdo {
    cursor: pointer;
}

.orders-page .status-change-rdo:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Bulk actions styling */
.orders-page #bulk-actions {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment method badges */
.orders-page .badge.bg-warning {
    color: #000 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .orders-page .btn-group {
        flex-direction: column;
    }

    .orders-page .btn-group .btn {
        margin-bottom: 0.25rem;
    }

    .orders-page .form-select-sm {
        min-width: 100px !important;
    }

    .orders-page .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* View Order Page Styles */
.vieworder-page .card {
    transition: all 0.2s ease;
}

.vieworder-page .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.vieworder-page .product-row:hover {
    background-color: rgba(0, 123, 255, 0.02);
}

.vieworder-page .product-details {
    transition: all 0.3s ease;
}

.vieworder-page .timeline-container {
    position: relative;
}

.vieworder-page .timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #28a745, #20c997);
}

.vieworder-page .bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.vieworder-page .badge {
    font-weight: 500;
}

.vieworder-page .form-select-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.vieworder-page .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.vieworder-page .alert {
    border: none;
    border-radius: 0.5rem;
}

.vieworder-page code {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
}

@media (max-width: 768px) {
    .vieworder-page .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .vieworder-page .btn-group {
        width: 100%;
        margin-top: 0.5rem;
    }

    .vieworder-page .btn-group .btn {
        flex: 1;
    }

    .vieworder-page .row.g-4>.col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Clients Page Styles */
.clients-page .card {
    transition: all 0.2s ease;
}

.clients-page .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
}

.clients-page .client-row:hover {
    background-color: rgba(0, 123, 255, 0.02);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.clients-page .contact-info a {
    transition: color 0.2s ease;
}

.clients-page .contact-info a:hover {
    color: var(--bs-primary) !important;
}

.clients-page .sales-info {
    transition: all 0.2s ease;
}

.clients-page .btn-group .btn {
    transition: all 0.2s ease;
}

.clients-page .btn-group .btn:hover {
    transform: translateY(-1px);
}

.clients-page .badge {
    font-weight: 500;
    transition: all 0.2s ease;
}

.clients-page .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.clients-page .spinner-border {
    width: 3rem;
    height: 3rem;
}

.clients-page #client-stats .bg-opacity-10 {
    transition: all 0.3s ease;
}

.clients-page #client-stats .bg-opacity-10:hover {
    transform: scale(1.05);
}

.clients-page .modal-content {
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.clients-page .form-control-plaintext {
    font-size: 0.9rem;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.clients-page .display-6 {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .clients-page .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .clients-page .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .clients-page .btn-group .btn {
        margin-bottom: 0.25rem;
        border-radius: 0.375rem !important;
    }

    .clients-page .contact-info {
        font-size: 0.85rem;
    }

    .clients-page .sales-info {
        font-size: 0.9rem;
    }

    .clients-page .row.g-3>.col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Add Client Page Styles */
.add-client-page .card {
    transition: all 0.2s ease;
}

.add-client-page .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
}

.add-client-page .input-group-text {
    background-color: var(--bs-light);
    border-color: var(--bs-border-color);
    color: var(--bs-primary);
    font-weight: 500;
}

.add-client-page .form-control:focus,
.add-client-page .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.add-client-page .btn {
    transition: all 0.2s ease;
    font-weight: 500;
}

.add-client-page .btn:hover {
    transform: translateY(-1px);
}

.add-client-page #loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-client-page .loading-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.add-client-page .is-invalid {
    border-color: var(--bs-danger) !important;
}

.add-client-page .invalid-feedback {
    display: block !important;
    font-size: 0.875rem;
    color: var(--bs-danger);
    margin-top: 0.25rem;
}

.add-client-page .form-label {
    margin-bottom: 0.5rem;
    color: var(--bs-gray-700);
}

.add-client-page .text-danger {
    color: var(--bs-danger) !important;
}

.add-client-page .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.add-client-page .card-title {
    font-weight: 600;
    color: var(--bs-gray-800);
}

.add-client-page .input-group {
    position: relative;
}

.add-client-page .input-group .form-control,
.add-client-page .input-group .form-select {
    border-left: none;
}

.add-client-page .input-group .form-control:focus,
.add-client-page .input-group .form-select:focus {
    border-left: 1px solid var(--bs-primary);
}

.add-client-page .iti {
    width: 100%;
}

.add-client-page .iti__country-list {
    z-index: 1050;
}

@media (max-width: 768px) {
    .add-client-page .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .add-client-page .input-group-text {
        min-width: 45px;
        justify-content: center;
    }

    .add-client-page .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .add-client-page .loading-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Integration Tools Page Styles - admincontrol/integration/integration_tools */
.integration_tools-campaign-img {
    transition: transform 0.2s ease;
}

.integration_tools-campaign-img:hover {
    transform: scale(1.1);
}

.integration_tools-campaign-name-cell .text-truncate {
    cursor: pointer;
}

.integration_tools-campaign-name-cell .text-truncate:hover {
    color: var(--bs-primary) !important;
}

.integration_tools-avatar-sm {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration_tools-btn-group .btn {
    border-radius: 0.25rem !important;
    margin-right: 2px;
}

.integration_tools-btn-group .btn:last-child {
    margin-right: 0;
}

.integration_tools-security-progress {
    height: 20px;
}

.integration_tools-security-progress .progress-bar {
    font-size: 0.75rem;
    font-weight: 600;
}

.integration_tools-filter-card .form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.integration_tools-results-summary {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .integration_tools-btn-group {
        flex-direction: column;
        gap: 2px;
    }

    .integration_tools-btn-group .btn {
        margin-right: 0;
        margin-bottom: 2px;
    }

    .integration_tools-campaign-name-cell .text-truncate {
        max-width: 150px !important;
    }
}

/* End of Integration Tools Styles */

/* Wallet Requests Details Page Styles */
.wallet-details-card {
    transition: all 0.3s ease;
}

.wallet-details-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wallet-details-table th {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.wallet-details-table td {
    vertical-align: middle;
    font-size: 0.9rem;
    white-space: nowrap;
}

.wallet-details-table th:last-child,
.wallet-details-table td:last-child {
    text-align: center;
    width: 80px;
}

.wallet-details-table th:nth-last-child(2),
.wallet-details-table td:nth-last-child(2) {
    text-align: center;
    width: 60px;
}


.wallet-details-status-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.wallet-details-history-table {
    max-height: 300px;
    overflow-y: auto;
}

.wallet-details-form .form-label {
    font-weight: 600;
    color: #495057;
}

.wallet-details-form .form-control:focus,
.wallet-details-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.wallet-details-pagination {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .wallet-details-card .card-header {
        padding: 0.75rem;
    }
    
    .wallet-details-card .card-body {
        padding: 0.75rem;
    }
    
    .wallet-details-table {
        font-size: 0.8rem;
    }
    
    .wallet-details-table th,
    .wallet-details-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Top Menu Dropdown Arrow Styles */
.horizontal-nav .dropdown-menu {
    overflow-x: hidden !important;
    min-width: 200px !important;
    text-align: start !important;
}

.nav-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: start !important;
}

.nav-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.nav-dropdown .dropdown-item:hover .fas.fa-external-link-alt {
    color: #0d6efd !important;
    transform: scale(1.1);
}

.nav-dropdown .dropdown-item .fas.fa-external-link-alt {
    transition: all 0.2s ease;
    opacity: 0.6;
    cursor: pointer;
}

.nav-dropdown .dropdown-item:hover .fas.fa-external-link-alt {
    opacity: 1;
}

.nav-dropdown .dropdown-item i:first-child {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.nav-dropdown .dropdown-item span {
    flex: 1;
}

/* Bootstrap 5 Navigation Support - 5-Category Menu */
.horizontal-nav .nav-item {
    color: var(--admin-menu-text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.horizontal-nav .nav-item:hover {
    color: var(--admin-menu-hover);
    background-color: rgba(255,255,255,0.1) !important;
    transform: translateY(-1px);
}

.horizontal-nav .nav-item.active {
    color: var(--admin-menu-active);
    background-color: rgba(255,255,255,0.15) !important;
}

/* Dropdown menu enhancements */
.horizontal-nav .dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.horizontal-nav .dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0.5rem 1rem 0.25rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: start;
    direction: ltr;
}

/* Force LTR left-aligned text in all horizontal nav dropdowns */
.horizontal-nav .dropdown-menu {
    text-align: start !important;
    direction: ltr !important;
}

.horizontal-nav .dropdown-menu .dropdown-item {
    text-align: start !important;
    justify-content: flex-start !important;
    direction: ltr !important;
}

.horizontal-nav .dropdown-menu .dropdown-item i:first-child {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.horizontal-nav .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0,0,0,0.08);
}

.horizontal-nav .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.horizontal-nav .dropdown-item:hover {
    background-color: rgba(0,123,255,0.08);
    color: #0056b3;
}

/* Responsive design */
@media (max-width: 1200px) {
    .horizontal-nav .nav-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem !important;
    }
}

@media (max-width: 992px) {
    .horizontal-nav .nav-item {
        font-size: 0.75rem;
        padding: 0.375rem 0.6rem !important;
    }
}

@media (max-width: 768px) {
    .horizontal-nav .nav-menu {
        gap: 0.25rem !important;
    }
    
    .horizontal-nav .nav-item {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem !important;
    }
    
    .horizontal-nav .dropdown-menu {
        max-height: 60vh;
        font-size: 0.8rem;
    }
    
    .horizontal-nav .dropdown-header {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem 0.2rem;
    }
    
    .horizontal-nav .dropdown-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Contextual Page Navigation */
.contextual-nav .btn-group {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contextual-nav .btn-group .btn {
    border-radius: 6px !important;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .contextual-nav .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .contextual-nav .btn-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    .contextual-nav .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .contextual-nav .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    
    .contextual-nav .btn-group .btn i {
        display: none;
    }
}

/* End of Wallet Requests Details Page Styles */

/* Wallet Settings Page Styles */
.wallet-settings-sub-panel {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.wallet-settings-sub-panel:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wallet-settings-form-section {
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.wallet-settings-form-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wallet-settings-form-section .card-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem 0.5rem;
}

.wallet-settings-form-section .card-body {
    padding: 1.5rem;
}

.wallet-settings-form-section h6 {
    font-weight: 600;
    color: #495057;
}

.wallet-settings-form-section .form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wallet-settings-form-section .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wallet-settings-form-section .form-control:focus,
.wallet-settings-form-section .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.wallet-settings-amount-input {
    position: relative;
}

.wallet-settings-amount-input .form-control {
    padding-left: 2.5rem;
}

.wallet-settings-amount-input .input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
}

.wallet-settings-action-buttons {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

/* Responsive adjustments for wallet settings */
@media (max-width: 768px) {
    .wallet-settings-sub-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .wallet-settings-form-section .card-body {
        padding: 1rem;
    }
    
    .wallet-settings-action-buttons {
        padding: 1rem;
    }
    
    .wallet-settings-action-buttons .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wallet-settings-action-buttons .btn {
        width: 100%;
    }
}

/* Animation for panel show/hide */
.withdrawal_to_wallet_sub_panel {
    overflow: hidden;
    transition: all 0.3s ease;
}

.withdrawal_to_wallet_sub_panel[style*="display: none"] {
    max-height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
}

.withdrawal_to_wallet_sub_panel:not([style*="display: none"]) {
    max-height: 500px;
    opacity: 1;
}

/* End of Wallet Settings Page Styles */

/* Minimalist Page Title Enhancement */
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.025em;
}

.page-title-dot {
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Smart Contextual Navigation - Intelligent UX */
.btn-group-sm .btn {
    font-size: 0.8rem;
    border-radius: 0.25rem;
    position: relative;
}

.btn-group-sm .btn:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.btn-group-sm .btn:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Smart dropdown enhancements */
.dropdown-menu {
    min-width: 200px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: start;
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    text-align: start;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Responsive optimizations */
@media (max-width: 1200px) {
    .btn-group-sm .btn {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .btn-group-sm .btn {
        padding: 0.25rem 0.4rem;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
    
    .dropdown-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Notification Page Styles */
.notification-page .notification-empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    margin: 2rem;
}

.notification-page .notification-row {
    transition: all 0.2s ease;
}

.notification-page .notification-row:hover {
    background-color: rgba(13, 110, 253, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.notification-page .notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-page .notification-content h6 {
    color: #212529;
    font-weight: 600;
}

.notification-page .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.notification-page .table th {
    border-top: none !important;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.notification-page .table td {
    vertical-align: middle;
    border-top: 1px solid #f1f3f4;
}

.notification-page .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.notification-page .btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

@media (max-width: 768px) {
    .notification-page .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .notification-page .card-header .d-flex > div:last-child {
        margin-top: 1rem;
        width: 100%;
    }
    
    .notification-page .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .notification-page .d-flex.gap-2 .btn {
        width: 100%;
    }
    
    .notification-page .table-responsive {
        border-radius: 0.5rem;
    }
    
    .notification-page .notification-content h6 {
        font-size: 0.9rem;
    }
    
    .notification-page .notification-content p {
        font-size: 0.8rem;
    }
}

/* Backup Page Styles - admincontrol/backup */
.backup-page .backup-empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.backup-page .backup-row {
    transition: all 0.2s ease;
}

.backup-page .backup-row:hover {
    background-color: rgba(13, 110, 253, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.backup-page .table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.backup-page .table td {
    vertical-align: middle;
}

.backup-page .btn-group .btn {
    transition: all 0.2s ease;
}

.backup-page .btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backup-page .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

.backup-page .border.rounded {
    transition: all 0.3s ease;
}

.backup-page .border.rounded:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .backup-page .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .backup-page .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .backup-page .btn-group .btn {
        border-radius: 0.25rem !important;
        margin-bottom: 0.25rem;
    }
    
    .backup-page .table {
        font-size: 0.85rem;
    }
    
    .backup-page .table td, 
    .backup-page .table th {
        padding: 0.5rem 0.25rem;
    }
}

/* End of Backup Page Styles */

/* Mail Templates Pages Styles - admincontrol/mails */
.mails-page .mails-empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.mails-page .template-row {
    transition: all 0.2s ease;
}

.mails-page .template-row:hover {
    background-color: rgba(13, 110, 253, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mails-page .table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.mails-page .table td {
    vertical-align: middle;
}

.mails-page .border.rounded {
    transition: all 0.3s ease;
}

.mails-page .border.rounded:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mail-editor-page .nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mail-editor-page .nav-pills .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.mail-editor-page .nav-pills .nav-link.active {
    background-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.mail-editor-page .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mail-editor-page .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mail-editor-page .form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

.mail-editor-page .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.mail-editor-page .alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
}

@media (max-width: 768px) {
    .mails-page .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .mails-page .table {
        font-size: 0.85rem;
    }
    
    .mails-page .table td, 
    .mails-page .table th {
        padding: 0.5rem 0.25rem;
    }
    
    .mails-page .text-truncate {
        max-width: 150px !important;
    }
    
    .mail-editor-page .nav-pills {
        flex-direction: column;
    }
    
    .mail-editor-page .nav-pills .nav-link {
        text-align: center;
    }
}

/* End of Mail Templates Pages Styles */

/* Registration Builder Page Styles - admincontrol/registration_builder */
.registration-builder-page .alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
}

.registration-builder-page #build-wrap {
    min-height: 400px;
}

.registration-builder-page .form-builder {
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .registration-builder-page .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .registration-builder-page .save-form {
        width: 100%;
    }
}

/* End of Registration Builder Page Styles */

/* Todo List Page Styles - admincontrol/todolist */
.todolist-page .todo-calendar {
    background: #ffffff;
    border-radius: 0.5rem;
}

.todolist-page .fc-toolbar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.todolist-page .fc-button {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    transition: all 0.3s ease;
}

.todolist-page .fc-button:hover {
    background: #0b5ed7 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.todolist-page .fc-event {
    background: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.2s ease;
}

.todolist-page .fc-event:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.todolist-page .alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
}

@media (max-width: 768px) {
    .todolist-page .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .todolist-page .fc-toolbar .fc-left,
    .todolist-page .fc-toolbar .fc-center,
    .todolist-page .fc-toolbar .fc-right {
        width: 100%;
        text-align: center;
    }
}

/* End of Todo List Page Styles */

/* Script Details Page Styles - admincontrol/script_details */
.script-details-page .license-details .border {
    transition: all 0.2s ease;
}

.script-details-page .license-details .border:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.script-details-page .license-details label {
    font-weight: 600;
}

.script-details-page .version-item {
    border-bottom: 1px solid #e9ecef;
}

.script-details-page .version-item:last-child {
    border-bottom: none;
}

.script-details-page .changelog-list {
    list-style: none;
    padding-left: 0;
}

.script-details-page .changelog-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.script-details-page .changelog-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0d6efd;
    font-weight: bold;
}

.script-details-page .uninstall-script {
    transition: all 0.3s ease;
}

.script-details-page .uninstall-script:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .script-details-page .license-details .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* End of Script Details Page Styles */

/* Integration Instructions Page Styles - admincontrol/integration/instructions OR integration/instructions */
.integration-instructions-page .integration-modules-ins h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.integration-instructions-page .integration-modules-ins h5,
.integration-instructions-page .integration-modules-ins h6 {
    font-weight: 600;
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.integration-instructions-page .integration-modules-ins .well {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.integration-instructions-page .integration-modules-ins .code_ {
    background-color: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    border: 1px solid #dee2e6;
}

.integration-instructions-page .integration-modules-ins .installed-step {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.integration-instructions-page .integration-modules-ins .installed-step > li {
    counter-increment: step-counter;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 0.25rem;
    position: relative;
    padding-left: 3rem;
}

.integration-instructions-page .integration-modules-ins .installed-step > li:before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: #0d6efd;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.integration-instructions-page .integration-modules-ins .installed-step .step {
    padding: 0.5rem 0;
}

.integration-instructions-page .integration-modules-ins pre {
    background: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.integration-instructions-page .integration-modules-ins table {
    margin: 1rem 0;
}

.integration-instructions-page .integration-modules-ins table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.integration-instructions-page .btn-export-pdf .spinner-border {
    vertical-align: middle;
}

.integration-instructions-page .nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.integration-instructions-page .nav-pills .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.integration-instructions-page .nav-pills .nav-link.active {
    background-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.integration-instructions-page .btn_info {
    background: #0dcaf0;
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.integration-instructions-page .btn_info:hover {
    background: #0bb5d6;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .integration-instructions-page .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .integration-instructions-page .btn-export-pdf {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .integration-instructions-page .integration-modules-ins pre {
        font-size: 0.75rem;
    }
    
    .integration-instructions-page .integration-modules-ins .installed-step > li {
        padding-left: 2.5rem;
    }
}

/* End of Integration Instructions Page Styles */

/* Market Tools Setting Page Styles - admincontrol/setting/market_tools_setting */
.market-tools-setting-page .nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.market-tools-setting-page .nav-pills .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.market-tools-setting-page .nav-pills .nav-link.active {
    background-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.market-tools-setting-page .form-check {
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.market-tools-setting-page .form-check:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.market-tools-setting-page .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.market-tools-setting-page .static-params .table th {
    font-weight: 600;
    color: #495057;
}

.market-tools-setting-page .static-params tbody tr {
    transition: all 0.2s ease;
}

.market-tools-setting-page .static-params tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

.market-tools-setting-page .btn-submit {
    min-width: 150px;
}

.market-tools-setting-page .add-static-params,
.market-tools-setting-page .remove-static-params {
    transition: all 0.2s ease;
}

.market-tools-setting-page .add-static-params:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.market-tools-setting-page .remove-static-params:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .market-tools-setting-page .form-check-label {
        font-size: 0.875rem;
    }
    
    .market-tools-setting-page .static-params table {
        font-size: 0.85rem;
    }
    
    .market-tools-setting-page .static-params td,
    .market-tools-setting-page .static-params th {
        padding: 0.5rem 0.25rem;
    }
}

/* End of Market Tools Setting Page Styles */

/* Addons Page Styles - admincontrol/addons */
.addons-page .addon-module-switcher .card {
    transition: all 0.3s ease;
}

.addons-page .addon-module-switcher .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.addons-page .addon-module-switcher .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.addons-page .addon-module-switcher .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.addons-page .addon-module-switcher .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.addons-page .addons-common .card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.addons-page .addons-common .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.addons-page .addons-common .card-body i {
    transition: all 0.3s ease;
}

.addons-page .addons-common .card:hover i {
    transform: scale(1.1);
}

.addons-page .addons-common .btn {
    transition: all 0.3s ease;
}

.addons-page .addons-common .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.addons-page .card-header h4 {
    font-size: 1.25rem;
}

.addons-page .card-header small {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .addons-page .card-header h4 {
        font-size: 1.1rem;
    }
    
    .addons-page .addon-module-switcher .card-title {
        font-size: 0.9rem;
    }
    
    .addons-page .addons-common .card-title {
        font-size: 0.875rem;
    }
    
    .addons-page .addons-common .card-text {
        font-size: 0.75rem;
    }
}

/* End of Addons Page Styles */

/* ==============================
   Global Card Header Standardization
   Ensures consistent padding, font, and borders
   ============================== */
.card > .card-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card > .card-header h5,
.card > .card-header h6,
.card > .card-header .card-title {
    margin-bottom: 0;
    font-weight: 600;
}

/* Standardize card-header icon alignment */
.card > .card-header i:first-child,
.card > .card-header .fas:first-child,
.card > .card-header .far:first-child,
.card > .card-header .fab:first-child {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Consistent table styling across admin */
.admin-table,
.content-area .table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.content-area .table > thead > tr > th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    padding: 0.625rem 0.75rem;
}

.content-area .table > tbody > tr > td {
    vertical-align: middle;
    padding: 0.625rem 0.75rem;
    border-top: 1px solid #f1f3f4;
}

/* Consistent empty state */
.empty-state-card {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
}

.empty-state-card i {
    font-size: 3rem;
    color: #6c757d;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Global loading overlay styles */
#globalLoadingOverlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Integration Tools Form - admincontrol/integration/integration_tools_form */
.integration_css-banner-thumb {
    width: 100px;
}