/* Show Config Page Styles - Modern Dark Theme */
.page-content {
    background: linear-gradient(135deg, #0a0a14 0%, #0d1117 50%, #050810 100%);
    min-height: calc(100vh - 60px);
    padding: 2rem 0;
    margin-top: 3rem;
    margin-bottom: 3rem;
    margin-left: 0;
    margin-right: 0;
    color: #e9ecef;
}

.page-content .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

.page-content .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.page-content .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Page Header */
.page-header-section {
    text-align: center;
    padding: 2rem 0;
    background: rgba(15, 15, 25, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.page-title i {
    -webkit-text-fill-color: #667eea;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.page-subtitle {
    color: #adb5bd;
    font-size: 1.1rem;
    margin: 0;
}

/* Custom Cards */
.custom-card {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    background: rgba(15, 15, 25, 0.95);
    margin-bottom: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

.card-header p {
    color: #e9ecef;
    margin: 0;
    line-height: 1.8;
}

.card-body {
    background: rgba(20, 20, 30, 0.8);
    padding: 2rem;
    border-radius: 0 0 20px 20px;
}

/* Alert Styles */
.alert-outline {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border: 2px solid rgba(102, 126, 234, 0.25);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: #e9ecef;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.alert-outline strong {
    color: #667eea;
    font-weight: 700;
}

.alert-outline a {
    color: #19b800;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: rgba(25, 184, 0, 0.1);
}

.alert-outline a:hover {
    color: #fff;
    background: rgba(25, 184, 0, 0.3);
}

.telegram-icon {
    font-size: 1.3rem;
}

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

.filter-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Filter Buttons */
.filter-btn,
.btn-danger.btn-sm,
.btn-primary.btn-sm {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-danger.btn-sm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-primary.btn-sm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-danger.btn-sm i,
.btn-primary.btn-sm i {
    margin-left: 0.5rem;
}

/* Table Styles */
.table-responsive {
    border-radius: 15px;
    overflow-x: auto;
    overflow-y: visible;
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 15, 25, 0.8);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid rgba(15, 15, 25, 0.8);
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
}

.table {
    margin-bottom: 0;
    background: transparent;
    color: #e9ecef;
}

.table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.table thead th {
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding: 1.25rem 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
    background: rgba(10, 10, 20, 0.6);
}

.table tbody tr {
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.table tbody td,
.table tbody th {
    padding: 1rem;
    vertical-align: middle;
    color: #e9ecef;
    border-color: rgba(102, 126, 234, 0.1);
}

/* Status Icons */
.bx-circle.bx-flashing {
    filter: drop-shadow(0 0 8px currentColor);
}

.bx-lock {
    filter: drop-shadow(0 0 8px #ff7700);
}

.bx-phone.bx-tada,
.bx-dollar.bx-tada,
.bx-flag.bx-tada {
    filter: drop-shadow(0 0 6px currentColor);
}

/* Action Buttons */
.btn-group {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem;
    vertical-align: middle;
}

.btn-group .btn {
    border-radius: 8px;
    margin: 0 2px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
    display: inline-block;
    float: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    color: #fff;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.3);
    border: 1px solid rgba(108, 117, 125, 0.5);
    color: #adb5bd;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Detail Buttons */
.detail-btn {
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.detail-btn.disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin: 1.5rem 0;
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 4px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.pagination .page-link:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ff7700 0%, #ff5500 100%);
    border-color: #ff7700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.4);
}

/* Latin Numbers */
.latin-number {
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: center;
    font-weight: 600;
}

/* Empty State */
.text-center h5 {
    color: #adb5bd;
    padding: 3rem;
    font-size: 1.25rem;
}

/* Modal Styles */
.modal-content {
    background: rgba(15, 15, 25, 0.98);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: #e9ecef;
}

.modal-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
}

.modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

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

.modal-body {
    padding: 2rem;
    background: rgba(20, 20, 30, 0.8);
}

.modal-body strong {
    color: #667eea;
    font-weight: 600;
}

.modal-body .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
}

.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.modal-body .bg-light {
    background: rgba(15, 15, 25, 0.9) !important;
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
}

.modal-body code {
    background: rgba(10, 10, 15, 0.9);
    color: #19b800;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(25, 184, 0, 0.25);
}

.modal-body .text-primary {
    color: #667eea !important;
}

.modal-body .text-muted {
    color: #adb5bd !important;
}

.modal-body .btn-outline-secondary {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.modal-body .btn-outline-secondary:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    color: #fff;
}

.modal-footer {
    background: rgba(20, 20, 30, 0.8);
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 0 0 20px 20px;
    padding: 1.5rem 2rem;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 12px;
}

.modal-footer .btn-secondary {
    background: rgba(108, 117, 125, 0.3);
    border: 1px solid rgba(108, 117, 125, 0.5);
    color: #adb5bd;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 12px;
}

.modal-footer .btn-secondary:hover {
    background: rgba(108, 117, 125, 0.5);
    color: #fff;
}

/* Form Control in Modal */
.modal-body .form-control {
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.modal-body .form-control:focus {
    background: rgba(20, 20, 30, 0.95);
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* QR Code Container */
.modal-body .bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px;
    padding: 1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-content {
        padding: 1rem 0;
    }
    
    .page-header-section {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .page-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title i {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .custom-card {
        margin-bottom: 1rem;
        border-radius: 15px;
    }
    
    .card-header,
    .card-body {
        padding: 1rem;
    }
    
    .filter-title {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .btn-group {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
        justify-content: center;
        width: auto !important;
        vertical-align: middle;
    }
    
    .btn-group .btn {
        flex: 0 0 auto !important;
        margin: 0 2px !important;
        width: auto !important;
        min-width: auto !important;
        display: inline-flex !important;
        float: none !important;
    }
    
    /* Override Bootstrap default btn-group vertical on mobile */
    .table td .btn-group,
    .table th .btn-group,
    td .btn-group,
    th .btn-group {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    /* Force buttons to stay inline */
    .table td .btn-group .btn,
    .table th .btn-group .btn {
        display: inline-block !important;
        float: none !important;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Special Row Styles */
tr[style*="background-color: #1c2526"] {
    background: rgba(20, 25, 26, 0.9) !important;
    border-left: 4px solid #ff7700;
}

tr[style*="background-color: #2b342a"] {
    background: rgba(25, 35, 28, 0.9) !important;
    border-left: 4px solid #19b800;
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(15, 15, 25, 0.98);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.dropdown-item {
    color: #e9ecef;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

.dropdown-divider {
    border-color: rgba(102, 126, 234, 0.2);
}

