/* Custom Styles for Spoof Caller ID */

/* Notification Badge */
.badge-notification {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 5px;
    font-size: 10px;
    border-radius: 10px;
}

.badge-blink {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Dark Mode Styles */
.theme-dark {
    background-color: #1a1d2e;
    color: #e4e6eb;
}

.theme-dark .navbar {
    background-color: #232735;
    border-bottom: 1px solid #2d3142;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

.theme-dark .card {
    background-color: #232735;
    border-color: #2d3142;
    color: #e4e6eb;
}

.theme-dark .card-header {
    background-color: #1a1d2e;
    border-bottom-color: #2d3142;
}

.theme-dark .list-group-item {
    background-color: #232735;
    border-color: #2d3142;
    color: #e4e6eb;
}

.theme-dark .dropdown-menu {
    background-color: #232735;
    border-color: #2d3142;
}

.theme-dark .dropdown-item {
    color: #e4e6eb;
}

.theme-dark .dropdown-item:hover {
    background-color: #2d3142;
    color: #fff;
}

.theme-dark .form-control,
.theme-dark .form-select {
    background-color: #1a1d2e;
    border-color: #2d3142;
    color: #e4e6eb;
}

.theme-dark .form-control:focus,
.theme-dark .form-select:focus {
    background-color: #1a1d2e;
    border-color: #206bc4;
    color: #e4e6eb;
}

.theme-dark .table {
    color: #e4e6eb;
}

.theme-dark .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.theme-dark .text-muted {
    color: #9ca3af !important;
}

.theme-dark .modal-content {
    background-color: #232735;
    color: #e4e6eb;
}

.theme-dark .modal-header {
    border-bottom-color: #2d3142;
}

.theme-dark .modal-footer {
    border-top-color: #2d3142;
}

.theme-dark .page-wrapper {
    background-color: #1a1d2e;
}

.theme-dark .nav-link {
    color: #9ca3af;
}

.theme-dark .nav-link:hover {
    color: #e4e6eb;
}

.theme-dark .nav-item.active .nav-link {
    color: #206bc4;
}

/* Notification Dropdown */
.dropdown-menu-card {
    padding: 0;
}

.dropdown-menu-card .card {
    border: none;
    box-shadow: none;
}

/* Chart dark mode support */
.theme-dark .apexcharts-text {
    fill: #e4e6eb;
}

.theme-dark .apexcharts-gridline {
    stroke: #2d3142;
}

.theme-dark .apexcharts-tooltip {
    background: #232735 !important;
    border-color: #2d3142 !important;
    color: #e4e6eb !important;
}

/* Tom Select White Background Fix */
.ts-wrapper .ts-control {
    background-color: #ffffff !important;
    border: 1px solid #d9dbde;
}

.ts-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #d9dbde;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background-color: #f8f9fa;
}

/* Smooth transitions */
body,
.card,
.navbar,
.dropdown-menu,
.form-control,
.form-select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Account Settings Page */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.theme-dark .settings-section h4 {
    border-bottom-color: #2d3142;
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
    padding: 1rem;
}

.theme-dark .admin-sidebar {
    background-color: #1a1d2e;
}

.admin-stat-card {
    transition: transform 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
}

/* Ticket Status Badges */
.ticket-status-open {
    background-color: #ffc107;
}

.ticket-status-in_progress {
    background-color: #0dcaf0;
}

.ticket-status-closed {
    background-color: #198754;
}



/* Page Wrapper Padding Fix */
.page-wrapper {
    padding-top: 0;
}

.page-body {
    padding: 1.5rem 0;
}

/* Card Spacing */
.card {
    margin-bottom: 1.5rem;
}

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

/* Container Spacing */
.container-xl {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .page-body {
        padding: 2rem 0;
    }
    
    .container-xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .page-body {
        padding: 2.5rem 0;
    }
}

/* Row Spacing */
.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Form Spacing */
.mb-3 {
    margin-bottom: 1rem !important;
}

/* Card Body Padding */
.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
}

/* Alert Positioning Fix */
.alert.position-fixed {
    z-index: 9999;
    margin: 0;
}

/* Notification Bell Pulse Animation */
.notification-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal Improvements */
.modal-dialog {
    margin: 1.75rem auto;
}

.modal-body {
    padding: 1.5rem;
}

.modal-header {
    padding: 1rem 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
}

/* Table Responsive Padding */
.table-responsive {
    margin-bottom: 0;
}

/* List Group Spacing */
.list-group-item {
    padding: 0.75rem 1.25rem;
}

/* Button Spacing */
.btn {
    padding: 0.5rem 1rem;
}

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

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Form Control Padding */
.form-control,
.form-select {
    padding: 0.5rem 0.75rem;
}

/* Dropdown Menu Padding */
.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

/* Badge Spacing */
.badge {
    padding: 0.35em 0.65em;
}

/* Avatar Spacing */
.avatar {
    margin-right: 0.5rem;
}

/* Navbar Spacing */
.navbar {
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #ffffff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

@media (min-width: 768px) {
    .navbar {
        padding: 0.75rem 1.5rem;
        position: sticky;
        top: 0;
        z-index: 1030;
    }
}

/* Footer Spacing */
.page-footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
}



/* Beautiful Table Enhancements */
.table.card-table {
    margin-bottom: 0;
}

.table.card-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 0.75rem;
}

.theme-dark .table.card-table thead th {
    background-color: #1a1d2e;
    border-bottom-color: #2d3142;
    color: #9ca3af;
}

.table.card-table tbody tr {
    transition: background-color 0.15s ease;
}

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

.theme-dark .table.card-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.table.card-table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

.theme-dark .table.card-table td {
    border-top-color: #2d3142;
}

/* Transaction Row Styling */
.transaction-row td {
    font-size: 0.9rem;
}

.transaction-row .text-monospace {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Country Row Styling */
.country-row td {
    font-size: 0.9rem;
}

.country-row .avatar {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
}

/* Badge Outline Variant */
.badge-outline {
    background-color: transparent;
    border: 1px solid currentColor;
}

.badge-outline.text-green {
    color: #2fb344;
    border-color: #2fb344;
}

.badge-outline.text-red {
    color: #d63939;
    border-color: #d63939;
}

.badge-outline.text-yellow {
    color: #f59f00;
    border-color: #f59f00;
}

.badge-outline.text-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

/* Empty State */
.empty {
    padding: 3rem 1rem;
}

.empty-icon {
    margin-bottom: 1rem;
    color: #9ca3af;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-subtitle {
    font-size: 0.875rem;
}

/* Card Variants */
.card-sm .card-body {
    padding: 1.25rem;
}

.bg-blue-lt {
    background-color: rgba(32, 107, 196, 0.1) !important;
}

.bg-green-lt {
    background-color: rgba(47, 179, 68, 0.1) !important;
}

.bg-cyan-lt {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

.theme-dark .bg-blue-lt {
    background-color: rgba(32, 107, 196, 0.15) !important;
}

.theme-dark .bg-green-lt {
    background-color: rgba(47, 179, 68, 0.15) !important;
}

.theme-dark .bg-cyan-lt {
    background-color: rgba(23, 162, 184, 0.15) !important;
}

/* Page Title */
.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Search Input in Card Header */
.card-header .input-group-text {
    background-color: transparent;
    border-right: 0;
}

.card-header .form-control {
    border-left: 0;
}

.card-header .form-control:focus {
    border-left: 0;
}

/* Font Weight Utilities */
.font-weight-medium {
    font-weight: 500;
}

.font-weight-bold {
    font-weight: 600;
}

/* Text Color Utilities */
.text-blue {
    color: #206bc4 !important;
}

.text-green {
    color: #2fb344 !important;
}

.text-cyan {
    color: #17a2b8 !important;
}

.text-red {
    color: #d63939 !important;
}

.text-yellow {
    color: #f59f00 !important;
}

/* Avatar Background Colors */
.bg-blue {
    background-color: #206bc4 !important;
}

.bg-green {
    background-color: #2fb344 !important;
}

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

.bg-red {
    background-color: #d63939 !important;
}

.bg-red-lt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Pagination Styling */
.pagination .page-link {
    border-radius: 4px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #206bc4;
    border-color: #206bc4;
}

/* Responsive Table Improvements */
@media (max-width: 768px) {
    .table.card-table thead th {
        font-size: 0.7rem;
        padding: 0.75rem 0.5rem;
    }
    
    .table.card-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}



/* Beautiful Search Field Styling */
.card-header .input-group {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    background-color: #fff;
}

.card-header .input-group:focus-within {
    border-color: #206bc4;
    box-shadow: 0 0 0 0.2rem rgba(32, 107, 196, 0.15);
}

.card-header .input-group-text {
    background-color: transparent;
    border: none;
    padding: 0.625rem 0.75rem;
    color: #6c757d;
}

.card-header .input-group .form-control {
    border: none;
    background-color: transparent;
    padding: 0.625rem 0.75rem 0.625rem 0;
    box-shadow: none !important;
}

.card-header .input-group .form-control:focus {
    outline: none;
    box-shadow: none !important;
}

.card-header .input-group:focus-within .input-group-text {
    color: #206bc4;
}

/* Dark Mode Search Field */
.theme-dark .card-header .input-group {
    background-color: #1a1d2e;
    border-color: #2d3142;
}

.theme-dark .card-header .input-group:focus-within {
    border-color: #206bc4;
    box-shadow: 0 0 0 0.2rem rgba(32, 107, 196, 0.2);
}

.theme-dark .card-header .input-group-text {
    color: #9ca3af;
}

.theme-dark .card-header .input-group .form-control {
    color: #e4e6eb;
}

.theme-dark .card-header .input-group .form-control::placeholder {
    color: #6c757d;
}

.theme-dark .card-header .input-group:focus-within .input-group-text {
    color: #206bc4;
}

/* Rows Per Page Select Styling */
.form-select-sm {
    padding: 0.25rem 1.75rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.15s ease-in-out;
}

.form-select-sm:focus {
    border-color: #206bc4;
    box-shadow: 0 0 0 0.25rem rgba(32, 107, 196, 0.1);
}

.theme-dark .form-select-sm {
    background-color: #1a1d2e;
    border-color: #2d3142;
    color: #e4e6eb;
}

.theme-dark .form-select-sm:focus {
    background-color: #1a1d2e;
    border-color: #206bc4;
}

/* Pagination Improvements */
.pagination {
    gap: 4px;
}

.pagination .page-link {
    border-radius: 6px;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.pagination .page-item.active .page-link {
    background-color: #206bc4;
    border-color: #206bc4;
    color: #fff;
    font-weight: 500;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: #e9ecef;
    color: #adb5bd;
}

.theme-dark .pagination .page-link {
    background-color: #232735;
    border-color: #2d3142;
    color: #9ca3af;
}

.theme-dark .pagination .page-link:hover {
    background-color: #2d3142;
    border-color: #3a3f52;
    color: #e4e6eb;
}

.theme-dark .pagination .page-item.active .page-link {
    background-color: #206bc4;
    border-color: #206bc4;
    color: #fff;
}

.theme-dark .pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: #2d3142;
    color: #6c757d;
}

/* Card Footer Enhancements */
.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.theme-dark .card-footer {
    background-color: #1a1d2e;
    border-top-color: #2d3142;
}

/* Gap Utility */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Responsive Pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }
    
    .card-footer .row {
        gap: 1rem;
    }
    
    .card-header .input-group {
        width: 100% !important;
    }
}

/* Info Text Styling */
#paginationInfo {
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Table Body - No minimum height to prevent large gaps */
.table-responsive {
    /* min-height removed to allow dynamic sizing based on content */
}

/* Smooth Transitions */
.country-row,
.transaction-row {
    transition: all 0.15s ease;
}

/* Empty State in Tables */
.empty {
    text-align: center;
}

.empty .empty-icon i {
    opacity: 0.5;
}

/* Card Actions Responsive */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header .card-title {
        margin-bottom: 1rem;
    }
    
    .card-header .card-actions {
        width: 100%;
    }
    
    .card-header .input-group {
        width: 100% !important;
    }
}

/* Better Select Dropdown Arrow */
.form-select-sm {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px 12px;
}

.theme-dark .form-select-sm {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e4e6eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}



/* ============================================
   IMPROVED CSS STRUCTURE
   ============================================ */

/* Search Input Group - Unified Border */
.card-header .input-group {
    display: flex;
    align-items: stretch;
}

.card-header .input-group > * {
    margin: 0;
    border-radius: 0;
}

.card-header .input-group > :first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.card-header .input-group > :last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Table Card Body - Dynamic Height */
.card-body.p-0 {
    overflow: hidden;
}

.card-body.p-0 .table-responsive {
    overflow-x: auto;
}

/* Prevent Large Gaps in Tables */
.table.card-table tbody {
    background-color: transparent;
}

.table.card-table tbody td {
    background-color: inherit;
}

/* Empty State Proper Sizing */
.empty {
    padding: 2rem 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Pagination Info Responsive */
@media (max-width: 576px) {
    #paginationInfo {
        font-size: 0.75rem;
    }
}

/* Better Input Focus States */
.form-control:focus,
.form-select:focus {
    outline: none;
}

/* Card Header Alignment */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header .card-title {
    margin: 0;
    display: flex;
    align-items: center;
}

.card-header .card-actions {
    display: flex;
    align-items: center;
}



/* ============================================
   SMS CAMPAIGN STYLES
   ============================================ */

/* Tab Navigation */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #206bc4;
    border-bottom-color: #206bc4;
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #206bc4;
    border-bottom-color: #206bc4;
    background-color: transparent;
}

.theme-dark .nav-tabs {
    border-bottom-color: #2d3142;
}

.theme-dark .nav-tabs .nav-link {
    color: #9ca3af;
}

.theme-dark .nav-tabs .nav-link:hover,
.theme-dark .nav-tabs .nav-link.active {
    color: #206bc4;
}

/* Numbers List */
#numbersList .d-flex {
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

#numbersList .d-flex:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.theme-dark #numbersList .d-flex:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#numbersList .font-monospace {
    flex: 1;
    text-align: center;
}

/* Campaign Summary Alert */
.alert-info {
    background-color: rgba(32, 107, 196, 0.1);
    border-color: rgba(32, 107, 196, 0.2);
    color: #206bc4;
}

.alert-info .alert-title {
    color: #206bc4;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.theme-dark .alert-info {
    background-color: rgba(32, 107, 196, 0.15);
    border-color: rgba(32, 107, 196, 0.25);
}

/* File Upload Input Group */
.input-group .form-control[type="file"] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Numbers Preview Card */
#numbersPreview .card {
    border: 1px solid #e9ecef;
}

.theme-dark #numbersPreview .card {
    border-color: #2d3142;
    background-color: #1a1d2e;
}

/* Badge in Numbers List */
.badge.bg-secondary {
    min-width: 30px;
    padding: 0.35rem 0.5rem;
}

/* Ghost Button for Remove */
.btn-ghost-danger {
    color: #d63939;
    background-color: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
}

.btn-ghost-danger:hover {
    color: #fff;
    background-color: #d63939;
}

/* Form Footer Buttons */
.form-footer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Country Select with Flags */
.form-select option {
    padding: 0.5rem;
}

/* Character Counter */
.form-hint + .text-muted {
    font-size: 0.875rem;
}

/* Phone Preview Enhancement */
.phone-preview {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Tab Navigation */
@media (max-width: 576px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-tabs .nav-link i {
        display: none;
    }
}



/* ============================================
   ACTIVE NAVIGATION STATE
   ============================================ */

/* Nav Link Base Styles */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.2s ease;
    color: #6c757d;
}

/* Active Nav Link - Simple and Clean */
.navbar-nav .nav-link.active {
    color: #206bc4;
    font-weight: 500;
}

.navbar-nav .nav-link.active .nav-link-icon i {
    color: #206bc4;
}

/* Bottom Border Indicator */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #206bc4;
    border-radius: 3px 3px 0 0;
}

/* Hover State */
.navbar-nav .nav-link:hover {
    color: #206bc4;
}

.navbar-nav .nav-link:hover .nav-link-icon i {
    color: #206bc4;
}

/* Dropdown Toggle Active */
.navbar-nav .dropdown-toggle.active {
    color: #206bc4;
    font-weight: 500;
    position: relative;
}

/* Hide the dropdown arrow when active */
.navbar-nav .dropdown-toggle.active::after {
    display: none;
}

.navbar-nav .dropdown-toggle.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #206bc4;
    border-radius: 3px 3px 0 0;
    z-index: 1;
}

/* Dropdown Item Active */
.dropdown-menu .dropdown-item.active {
    background-color: rgba(32, 107, 196, 0.15);
    color: #206bc4;
    font-weight: 500;
    border-left: 3px solid #206bc4;
    padding-left: calc(1rem - 3px);
}

.dropdown-menu .dropdown-item.active i {
    color: #206bc4;
}

/* Dark Mode */
.theme-dark .navbar-nav .nav-link {
    color: #9ca3af;
}

.theme-dark .navbar-nav .nav-link.active {
    color: #60a5fa;
}

.theme-dark .navbar-nav .nav-link.active .nav-link-icon i {
    color: #60a5fa;
}

.theme-dark .navbar-nav .nav-link.active::after {
    background-color: #60a5fa;
}

.theme-dark .navbar-nav .nav-link:hover {
    color: #60a5fa;
}

.theme-dark .navbar-nav .dropdown-toggle.active {
    color: #60a5fa;
    position: relative;
}

.theme-dark .navbar-nav .dropdown-toggle.active::before {
    background-color: #60a5fa;
}

.theme-dark .dropdown-menu .dropdown-item.active {
    background-color: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    border-left-color: #60a5fa;
}

.theme-dark .dropdown-menu .dropdown-item.active i {
    color: #60a5fa;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .navbar-nav .nav-link.active::after,
    .navbar-nav .dropdown-toggle.active::before {
        height: 2px;
    }
}



/* Enhanced More Dropdown Menu Styling */
.navbar-nav .dropdown-menu {
    min-width: 220px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.theme-dark .navbar-nav .dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    border-color: #2d3142;
}

.navbar-nav .dropdown-item {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar-nav .dropdown-item i {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(32, 107, 196, 0.08);
    padding-left: 1.25rem;
}

.theme-dark .navbar-nav .dropdown-item:hover {
    background-color: rgba(32, 107, 196, 0.15);
}

.navbar-nav .dropdown-item:hover i {
    opacity: 1;
}

/* Active state handled in main active navigation section above */
.navbar-nav .dropdown-item.active i {
    opacity: 1;
}

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

.theme-dark .navbar-nav .dropdown-divider {
    border-top-color: #2d3142;
}

/* Dropdown toggle active state handled in main active navigation section above */

/* Smooth dropdown animation */
.navbar-nav .dropdown-menu {
    animation: dropdownFadeIn 0.2s ease;
}

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



/* ============================================
   NOTIFICATION DROPDOWN DESIGN
   ============================================ */

/* Notification Dropdown Container */
.dropdown-menu-notifications {
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 0;
    margin-top: 0.5rem;
}

.theme-dark .dropdown-menu-notifications {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
    border-color: #2d3142;
}

/* Notification Card Header */
.dropdown-menu-notifications .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

.theme-dark .dropdown-menu-notifications .card-header {
    background-color: #1a1d2e;
    border-bottom-color: #2d3142;
}

.dropdown-menu-notifications .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.theme-dark .dropdown-menu-notifications .card-title {
    color: #e4e6eb;
}

/* Notification Count Badge in Header */
#notificationCount {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* Notification List Container */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Custom Scrollbar for Notification List */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.theme-dark .notification-list::-webkit-scrollbar-thumb {
    background: #475569;
}

.theme-dark .notification-list::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Notification Item */
.notification-item {
    padding: 1rem 1.25rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    position: relative;
}

.theme-dark .notification-item {
    border-bottom-color: #2d3142;
}

.notification-item:hover {
    background-color: #f8fafc;
    padding-left: 1.5rem;
}

.theme-dark .notification-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.notification-item:last-child {
    border-bottom: none;
}

/* Unread Notification */
.notification-item.unread {
    background-color: rgba(32, 107, 196, 0.04);
}

.theme-dark .notification-item.unread {
    background-color: rgba(32, 107, 196, 0.08);
}

.notification-item.unread:hover {
    background-color: rgba(32, 107, 196, 0.08);
}

.theme-dark .notification-item.unread:hover {
    background-color: rgba(32, 107, 196, 0.12);
}

/* Notification Icon */
.notification-icon .avatar {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon .avatar i {
    font-size: 1.25rem;
}

/* Notification Message */
.notification-message {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
    margin-bottom: 0.25rem;
}

.theme-dark .notification-message {
    color: #e4e6eb;
}

.notification-item.read .notification-message {
    color: #64748b;
}

.theme-dark .notification-item.read .notification-message {
    color: #9ca3af;
}

/* Notification Time */
.notification-time {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.notification-time i {
    font-size: 0.75rem;
}

/* Unread Dot Indicator */
.notification-dot {
    width: 8px;
    height: 8px;
    background-color: #206bc4;
    border-radius: 50%;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    animation: pulseDot 2s infinite;
}

.theme-dark .notification-dot {
    background-color: #60a5fa;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.2);
    }
}

/* View All Link */
.view-all-link {
    padding: 0.875rem 1.25rem;
    font-weight: 500;
    color: #206bc4;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.theme-dark .view-all-link {
    background-color: #1a1d2e;
    border-top-color: #2d3142;
    color: #60a5fa;
}

.view-all-link:hover {
    background-color: rgba(32, 107, 196, 0.08);
    color: #1a5490;
}

.theme-dark .view-all-link:hover {
    background-color: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.view-all-link i {
    transition: transform 0.2s ease;
}

.view-all-link:hover i {
    transform: translateX(3px);
}

/* Empty State */
.notification-list .empty-icon {
    opacity: 0.5;
}

/* Notification Badge on Bell Icon */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    line-height: 18px;
    border-radius: 9px;
    font-weight: 600;
}

/* Loading State */
.notification-list .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive Design */
@media (max-width: 576px) {
    .dropdown-menu-notifications {
        width: 100vw;
        max-width: 100vw;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin-top: 0.25rem;
    }
    
    .notification-item {
        padding: 0.875rem 1rem;
    }
    
    .notification-item:hover {
        padding-left: 1rem;
    }
    
    .notification-list {
        max-height: 300px;
    }
}



/* ============================================
   PROFILE CARD DESIGN
   ============================================ */

/* Profile Card Container */
.profile-card {
    background: linear-gradient(135deg, rgba(32, 107, 196, 0.05) 0%, rgba(32, 107, 196, 0.02) 100%);
    border: 1px solid rgba(32, 107, 196, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.theme-dark .profile-card {
    background: linear-gradient(135deg, rgba(32, 107, 196, 0.1) 0%, rgba(32, 107, 196, 0.05) 100%);
    border-color: rgba(32, 107, 196, 0.2);
}

/* Profile Avatar Container */
.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #206bc4 0%, #1a5490 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(32, 107, 196, 0.3);
}

.theme-dark .profile-avatar {
    border-color: #232735;
    box-shadow: 0 4px 12px rgba(32, 107, 196, 0.5);
}

/* Avatar Edit Button */
.profile-avatar-edit {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #206bc4;
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-avatar-edit:hover {
    background-color: #1a5490;
    transform: scale(1.1);
}

.theme-dark .profile-avatar-edit {
    border-color: #232735;
}

.profile-avatar-edit i {
    font-size: 0.9rem;
}

/* Profile Info Section */
.profile-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.theme-dark .profile-card h3 {
    color: #e4e6eb;
}

.profile-card .text-muted {
    font-size: 0.95rem;
}

/* Profile Badges */
.profile-card .badge-outline {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-width: 1.5px;
}

.profile-card .badge-outline i {
    font-size: 0.9rem;
}

/* Profile Card Divider */
.profile-card hr {
    border-color: rgba(0, 0, 0, 0.08);
}

.theme-dark .profile-card hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Profile Form Inputs */
.profile-card .form-control {
    border-color: rgba(0, 0, 0, 0.1);
}

.profile-card .form-control:focus {
    border-color: #206bc4;
    box-shadow: 0 0 0 0.2rem rgba(32, 107, 196, 0.15);
}

.theme-dark .profile-card .form-control {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .profile-card .form-control:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.15);
}

/* Profile Card Button */
.profile-card .btn-primary {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

/* Avatar Size Variants */
.avatar-xl {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-avatar {
        width: 4rem;
        height: 4rem;
        font-size: 1.75rem;
    }
    
    .avatar-xl {
        width: 4rem;
        height: 4rem;
        font-size: 1.75rem;
    }
    
    .profile-card h3 {
        font-size: 1.25rem;
    }
    
    .profile-card .badge-outline {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Profile Card Animation */
@keyframes profileCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: profileCardSlideIn 0.4s ease;
}



/* ============================================
   HEADER NAVIGATION ICON FIXES
   ============================================ */

/* Make all navigation icons consistent size and color */
.navbar-nav .nav-link-icon i {
    font-size: 1.1rem;
    color: #6c757d;
}

.navbar-nav .nav-link:hover .nav-link-icon i {
    color: #206bc4;
}

.navbar-nav .nav-link.active .nav-link-icon i {
    color: #206bc4;
}

.theme-dark .navbar-nav .nav-link-icon i {
    color: #9ca3af;
}

.theme-dark .navbar-nav .nav-link:hover .nav-link-icon i {
    color: #60a5fa;
}

.theme-dark .navbar-nav .nav-link.active .nav-link-icon i {
    color: #60a5fa;
}

/* Dropdown menu icons - same size */
.navbar-nav .dropdown-menu .dropdown-item i {
    font-size: 1.1rem;
}



/* ============================================
   REFERRAL SYSTEM STYLING
   ============================================ */

/* Referral Link Card */
.referral-link-card {
    background: linear-gradient(135deg, rgba(32, 107, 196, 0.08) 0%, rgba(32, 107, 196, 0.03) 100%);
    border: 2px solid rgba(32, 107, 196, 0.15);
    box-shadow: 0 4px 12px rgba(32, 107, 196, 0.1);
}

.theme-dark .referral-link-card {
    background: linear-gradient(135deg, rgba(32, 107, 196, 0.15) 0%, rgba(32, 107, 196, 0.08) 100%);
    border-color: rgba(32, 107, 196, 0.25);
}

/* Social Share Buttons */
.btn-facebook {
    background-color: #1877f2;
    color: #fff;
    border: none;
}

.btn-facebook:hover {
    background-color: #145dbf;
    color: #fff;
}

.btn-twitter {
    background-color: #1da1f2;
    color: #fff;
    border: none;
}

.btn-twitter:hover {
    background-color: #1a8cd8;
    color: #fff;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    color: #fff;
}

.btn-telegram {
    background-color: #0088cc;
    color: #fff;
    border: none;
}

.btn-telegram:hover {
    background-color: #006ba1;
    color: #fff;
}

/* Referral Stats Cards */
.referral-link-card .input-group-lg .form-control {
    font-size: 1rem;
    font-weight: 500;
}

/* How It Works Section */
.bg-blue-lt {
    background-color: rgba(32, 107, 196, 0.1) !important;
}

.bg-green-lt {
    background-color: rgba(46, 179, 68, 0.1) !important;
}

.bg-yellow-lt {
    background-color: rgba(245, 159, 0, 0.1) !important;
}

.bg-purple-lt {
    background-color: rgba(174, 62, 201, 0.1) !important;
}

.theme-dark .bg-blue-lt {
    background-color: rgba(32, 107, 196, 0.2) !important;
}

.theme-dark .bg-green-lt {
    background-color: rgba(46, 179, 68, 0.2) !important;
}

.theme-dark .bg-yellow-lt {
    background-color: rgba(245, 159, 0, 0.2) !important;
}

.theme-dark .bg-purple-lt {
    background-color: rgba(174, 62, 201, 0.2) !important;
}

