


.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}


.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.ranking-stats {
    display: flex;
    gap: 10px;
}

.ranking-stats .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
}

.rank-cell {
    position: relative;
    font-weight: bold;
}

.rank-number {
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.rank-crown, .rank-medal {
    margin-left: 8px;
    font-size: 1.2em;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-jump input {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}


.ranking-table-container {
    max-height: none;
    overflow-y: visible;
}


.table-container {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background-color: white;
    min-width: 100%;
    width: 100%;
}


.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    vertical-align: middle;
    padding: 12px 8px;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}


.table tbody tr:nth-child(1) td {
    background-color: #fff8e1;
    font-weight: 600;
}

.table tbody tr:nth-child(2) td {
    background-color: #f3f4f6;
    font-weight: 500;
}

.table tbody tr:nth-child(3) td {
    background-color: #fef7f0;
    font-weight: 500;
}


.user-id {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}


.search-toolbar {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-mode-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    min-width: 100px;
}

.search-mode-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    min-width: 80px;
    white-space: nowrap;
    text-align: center;
    padding: 8px 16px;
    height: auto;
    box-sizing: border-box;
}

.search-btn .icon {
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    width: 14px;
    height: 14px;
    text-align: center;
}

.search-btn .btn-text {
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    display: inline-block;
    text-align: center;
}


.search-input-group .search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-results-info {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.search-results-info:empty {
    display: none;
}


@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .search-mode-select {
        min-width: auto;
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center !important;
        min-width: auto;
        text-align: center;
        display: flex !important;
        align-items: center !important;
    }
}

.pagination-info {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.page-ellipsis {
    padding: 0 8px;
    color: #6c757d;
    font-weight: bold;
}


.form-group {
    margin-bottom: 1rem;
}

.form-group .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-group .form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.form-group .form-text .icon {
    margin-right: 4px;
    color: #6c757d;
}

.form-group .form-text .icon-search {
    color: #007bff;
}

.form-group .form-text .icon-info {
    color: #17a2b8;
}

.form-input {
    transition: all 0.15s ease-in-out;
}

.form-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


.btn-group.d-flex {
    width: 100%;
}

.btn-group .btn {
    transition: all 0.15s ease-in-out;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.row.g-3 > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .btn:hover {
    transform: translateY(-1px);
}

.pagination-dots {
    color: var(--text-muted);
    padding: 0 4px;
    font-weight: bold;
}


@media (max-width: 767px) {
    .pagination-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .pagination-info {
        order: 2;
        justify-content: center;
    }
    
    .pagination-controls {
        order: 1;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .page-numbers {
        margin: 0 4px;
        gap: 2px;
    }
    
    .page-ellipsis {
        padding: 0 4px;
    }
    
    .pagination-dots {
        padding: 0 2px;
    }
    
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .btn-group.d-flex {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0;
    }
    
    
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .setting-info {
        width: 100%;
    }
    
    .setting-control {
        width: 100%;
        justify-content: flex-end;
    }
    
    .setting-item {
        padding: 12px;
    }
    
    
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    
    .header-actions .btn {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    
    .setting-control .input-group {
        flex-shrink: 0;
    }
    
    .setting-control .input-group .form-control {
        font-size: 0.9rem;
        text-align: center;
    }
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 5px;
    opacity: 0.7;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 180px;
    padding: 4px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.dropdown-item .icon {
    margin-right: 8px;
    opacity: 0.7;
}


.btn-outline-danger.dropdown-toggle {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger.dropdown-toggle:hover {
    background-color: #dc3545;
    color: white;
}

.dropdown-toggle .icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 767px) {
    .dropdown-menu {
        right: auto;
        left: 0;
        min-width: 160px;
    }
}


#currentPeriodStatus {
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#currentPeriodStatus .badge {
    transition: all 0.3s ease;
}


.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.badge-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.badge-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}


@media (max-width: 991px) {
    .row.g-3 > .col-lg-4 {
        margin-top: 1rem;
    }
    
    .form-group .form-text {
        font-size: 0.8rem;
    }
}


.toggle-switch {
    position: relative;
    display: inline-block;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    display: block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label {
    background-color: #007bff;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
}

.toggle-switch input[type="checkbox"]:focus + .toggle-label {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.toggle-switch input[type="checkbox"]:disabled + .toggle-label {
    opacity: 0.6;
    cursor: not-allowed;
}


.setting-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.setting-item:hover {
    background: #f1f3f4;
    border-color: #dee2e6;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.setting-info {
    flex: 1;
    min-width: 0;
}

.setting-label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.setting-description {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.setting-control {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions .btn {
    font-size: 0.875rem;
    padding: 4px 8px;
}

.header-actions small {
    white-space: nowrap;
}


.empty-state a {
    color: #007bff;
    transition: color 0.2s ease;
}

.empty-state a:hover {
    color: #0056b3;
    text-decoration: underline !important;
}


.btn-purple {
    background: #6f42c1;
    color: white;
    border: 1px solid #6f42c1;
}

.btn-purple:hover {
    background: #5a359a;
    border-color: #5a359a;
}


:root {
  
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #93c5fd;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --divider: #e2e8f0;
  
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  
  --sidebar-width: 280px;
  --header-height: 60px;
  --container-padding: 1.5rem;
  
  
  --transition: all 0.2s ease-in-out;
  --transition-fast: all 0.15s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  overflow-x: hidden;
}


a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-inverse);
  border-color: var(--secondary);
}

.btn-success {
  background-color: var(--success);
  color: var(--text-inverse);
  border-color: var(--success);
}

.btn-warning {
  background-color: var(--warning);
  color: var(--text-primary);
  border-color: var(--warning);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-inverse);
  border-color: var(--danger);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--bg-tertiary);
}


.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-base);
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--text-inverse);
}

.badge-success {
  background-color: var(--success);
  color: var(--text-inverse);
}

.badge-warning {
  background-color: var(--warning);
  color: var(--text-primary);
}

.badge-danger {
  background-color: var(--danger);
  color: var(--text-inverse);
}

.badge-info {
  background-color: var(--info);
  color: var(--text-inverse);
}


.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: var(--space) var(--space-md);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: var(--space-md);
}

.card-footer {
  padding: var(--space) var(--space-md);
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
}




.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
}

.table th,
.table td {
  padding: var(--space-sm) var(--space);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.table tbody tr:last-child td {
  border-bottom: none;
}


.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--container-padding);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--space-sm) * -1);
}

.col {
  flex: 1;
  padding: 0 var(--space-sm);
}

.col-12 { width: 100%; padding: 0 var(--space-sm); }
.col-11 { width: 91.666667%; padding: 0 var(--space-sm); }
.col-10 { width: 83.333333%; padding: 0 var(--space-sm); }
.col-9 { width: 75%; padding: 0 var(--space-sm); }
.col-8 { width: 66.666667%; padding: 0 var(--space-sm); }
.col-7 { width: 58.333333%; padding: 0 var(--space-sm); }
.col-6 { width: 50%; padding: 0 var(--space-sm); }
.col-5 { width: 41.666667%; padding: 0 var(--space-sm); }
.col-4 { width: 33.333333%; padding: 0 var(--space-sm); }
.col-3 { width: 25%; padding: 0 var(--space-sm); }
.col-2 { width: 16.666667%; padding: 0 var(--space-sm); }
.col-1 { width: 8.333333%; padding: 0 var(--space-sm); }


@media (min-width: 768px) {
  .col-md-12 { width: 100%; }
  .col-md-11 { width: 91.666667%; }
  .col-md-10 { width: 83.333333%; }
  .col-md-9 { width: 75%; }
  .col-md-8 { width: 66.666667%; }
  .col-md-7 { width: 58.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-5 { width: 41.666667%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-3 { width: 25%; }
  .col-md-2 { width: 16.666667%; }
  .col-md-1 { width: 8.333333%; }
}

@media (min-width: 1024px) {
  .col-lg-12 { width: 100%; }
  .col-lg-11 { width: 91.666667%; }
  .col-lg-10 { width: 83.333333%; }
  .col-lg-9 { width: 75%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-3 { width: 25%; }
  .col-lg-2 { width: 16.666667%; }
  .col-lg-1 { width: 8.333333%; }
}


.sidebar-toggle {
  display: none; 
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  padding: 0;
  margin: 0;
  margin-right: 12px;
  outline: none;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.sidebar-toggle:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.sidebar-toggle .icon {
  display: contents; 
  transition: transform 0.3s ease;
}

.sidebar-toggle .icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.sidebar-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.sidebar-toggle[aria-expanded="true"]:hover {
  background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
  box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
}

.sidebar-toggle[aria-expanded="true"] .icon {
  transform: rotate(90deg);
}


@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6), 0 0 0 8px rgba(102, 126, 234, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  }
}


.sidebar-toggle.first-load {
  animation: pulse 2s ease-in-out 3;
}


@media (max-width: 480px) {
  .sidebar-toggle {
    display: flex !important;
  }
  
  .sidebar-toggle .icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  z-index: 900;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}



.sidebar-nav {
  flex: 1;
  padding: var(--space);
  padding-top: var(--space-md);
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: var(--radius);
  margin-bottom: var(--space-xs);
  transition: var(--transition-fast);
  font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
}

.sidebar-section {
  margin-top: var(--space-md);
}

.sidebar-section-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-sm) var(--space);
  margin-bottom: var(--space-sm);
}

.sidebar-footer {
  padding: var(--space-md);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}


.page-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: var(--space-md);
  padding-top: calc(var(--header-height) + var(--space-md));
  transition: var(--transition);
}


.page-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}


.stat-card {
  text-align: center;
  padding: var(--space-lg);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}


.lottery-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.lottery-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-inverse);
  position: relative;
  box-shadow: var(--shadow);
}

.lottery-number.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.lottery-number.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.lottery-number.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.lottery-zodiac {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-align: center;
}


.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space);
  opacity: 0.5;
}


.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.form-group {
  margin-bottom: var(--space);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--text-base);
  background-color: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition-fast);
}


input[type="time"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
  background-color: var(--bg-card);
  position: relative;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}


.form-input-sm,
.form-select-sm {
  padding: 4px 8px;
  font-size: 0.875rem;
  height: auto;
  min-height: 28px;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  cursor: pointer;
  color: var(--text-secondary);
  padding: var(--space-xs);
  border-radius: var(--radius);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--bg-tertiary);
}

.modal-body {
  padding: var(--space-md);
}

.modal-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}


.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-danger { background-color: var(--danger); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space); }
.gap-4 { gap: var(--space-md); }

.m-0 { margin: 0; }
.m-1 { margin: var(--space-xs); }
.m-2 { margin: var(--space-sm); }
.m-3 { margin: var(--space); }
.m-4 { margin: var(--space-md); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space); }
.mb-4 { margin-bottom: var(--space-md); }
.mb-5 { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space); }
.mt-4 { margin-top: var(--space-md); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space); }
.p-4 { padding: var(--space-md); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }



@media (min-width: 1024px) {
  .sidebar-toggle {
    display: none !important;
  }
  
  .page-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--space-md); 
  }
}


@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 850;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
  }
  
  .sidebar.show ~ .sidebar-overlay,
  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  .sidebar-toggle {
    display: flex !important;
  }
  
  .container-fluid {
    padding: 0 var(--space);
  }
}

@media (max-width: 767px) {
  :root {
    --container-padding: 1rem;
  }
  
  .page-content {
    padding: var(--space);
  }
  
  .page-title {
    font-size: var(--text-2xl);
  }
  
  .col-md-8,
  .col-md-4 {
    width: 100%;
    margin-bottom: var(--space-md);
  }
  
  .lottery-number {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
  
  .stat-number {
    font-size: var(--text-3xl);
  }
  
  .table th,
  .table td {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
  }
  
  .card-body {
    padding: var(--space);
  }
  
  .modal {
    margin: var(--space);
    max-width: none;
  }
}

@media (max-width: 479px) {
  .container-fluid {
    padding: 0 var(--space-sm);
  }
  
  .page-content {
    padding: var(--space-sm);
  }
  
  .lottery-numbers {
    gap: var(--space-xs);
  }
  
  .lottery-number {
    width: 36px;
    height: 36px;
    font-size: var(--text-sm);
  }
  
  .row {
    margin: 0 calc(var(--space-xs) * -1);
  }
  
  .col,
  [class*="col-"] {
    padding: 0 var(--space-xs);
  }
}


.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.icon-home::before { content: "🏠"; }
.icon-history::before { content: "📊"; }
.icon-chart::before { content: "📈"; }
.icon-calendar::before { content: "📅"; }
.icon-trophy::before { content: "🏆"; }
.icon-list::before { content: "📋"; }
.icon-users::before { content: "👥"; }
.icon-settings::before { content: "⚙️"; }
.icon-clock::before { content: "🕐"; }
.icon-dice::before { content: "🎲"; }

.icon-close::before { content: "✕"; }
.icon-check::before { content: "✓"; }
.icon-warning::before { content: "⚠️"; }
.icon-info::before { content: "ℹ️"; }
.icon-success::before { content: "✅"; }
.icon-error::before { content: "❌"; }
.icon-edit::before { content: "✏️"; }
.icon-move::before { content: "🔄"; }
.icon-message::before { content: "💬"; }


.send-progress {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}


.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.radio-label:hover {
  background: var(--bg-secondary);
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--primary);
  background: var(--primary);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}


.form-group {
  margin-bottom: var(--space);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}


.badge {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75em;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--radius);
}

.badge-primary {
  color: white;
  background-color: var(--primary);
}

.badge-secondary {
  color: white;
  background-color: var(--secondary);
}

.badge-success {
  color: white;
  background-color: var(--success);
}

.badge-warning {
  color: white;
  background-color: var(--warning);
}

.badge-danger {
  color: white;
  background-color: var(--danger);
}

.badge-info {
  color: white;
  background-color: var(--info);
}


.empty-state {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space);
  opacity: 0.5;
}


.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.table-container {
  overflow-x: auto;
  margin: var(--space) 0;
}


.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space); }


.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }


.stat-card {
  text-align: center;
  padding: var(--space);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--space-sm) * -1);
}

.col,
.col-md-4,
.col-md-6,
.col-md-8,
.col-md-12 {
  flex: 1;
  padding: 0 var(--space-sm);
  margin-bottom: var(--space);
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 767px) {
  .col-md-4,
  .col-md-6,
  .col-md-8,
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


.group-management-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border-light);
}

.header-info h4 {
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.header-info p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  max-width: 400px;
}

.header-actions {
  flex-shrink: 0;
}

.btn-create-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-create-group:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-create-group .icon {
  font-size: var(--text-lg);
}


.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}


.group-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.group-card-header {
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.group-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.group-card-title h6 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}



.group-card-actions {
  display: flex;
  gap: var(--space-xs);
}

.group-card-actions .btn {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
}

.group-card-actions .btn:hover {
  transform: translateY(-1px);
}

.group-card-body {
  padding: var(--space-md);
}

.group-description {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-user-count {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.group-user-count .count-number {
  font-weight: 600;
  color: var(--primary);
  font-size: var(--text-base);
}

.group-user-count .count-icon {
  opacity: 0.7;
}

.group-badge.default {
  padding: var(--space-xs) var(--space-sm);
  background: var(--secondary);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}


.group-card.default-group {
  border-color: var(--secondary);
  position: relative;
}

.group-card.default-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--info) 100%);
}




.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space);
}

.loading-state p {
  margin: 0;
  font-size: var(--text-sm);
}


.groups-empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
}

.groups-empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space);
  opacity: 0.5;
}

.groups-empty-state h5 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--text-secondary);
}

.groups-empty-state p {
  margin: 0 0 var(--space-md) 0;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}


@media (max-width: 768px) {
  .group-management-header {
    flex-direction: column;
    gap: var(--space);
    align-items: stretch;
  }
  
  .header-info {
    margin-bottom: var(--space-sm);
  }
  
  .groups-grid {
    grid-template-columns: 1fr;
  }
  
  .group-card-title {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .group-card-actions {
    align-self: flex-end;
  }
}




.bulk-actions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bulk-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-container .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary);
    transform: scale(1.05);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-container input[type="checkbox"]:indeterminate + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:indeterminate + .checkmark::after {
    content: "−";
    color: white;
    font-size: 14px;
    font-weight: bold;
}


.checkbox-container .checkbox-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.checkbox-container:hover .checkbox-text {
    color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkbox-text {
    color: var(--primary);
    font-weight: 600;
}


#winStreakRewardsTable {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

#winStreakRewardsTable tr {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

#winStreakRewardsTable tr:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196f3;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

#winStreakRewardsTable td:first-child {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-radius: 8px 0 0 8px;
    position: relative;
}

#winStreakRewardsTable td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #4caf50, #2196f3, #9c27b0);
    border-radius: 2px 0 0 2px;
}

#winStreakRewardsTable td:first-child strong {
    color: #1976d2;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#winStreakRewardsTable td:first-child small {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

#winStreakRewardsTable .reward-input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    width: 100%;
}

#winStreakRewardsTable .reward-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    background: #ffffff;
    transform: scale(1.02);
}




#winStreakRewardsTable tr:nth-child(1) .reward-input { border-left: 3px solid #4caf50; }
#winStreakRewardsTable tr:nth-child(2) .reward-input { border-left: 3px solid #8bc34a; }
#winStreakRewardsTable tr:nth-child(3) .reward-input { border-left: 3px solid #cddc39; }
#winStreakRewardsTable tr:nth-child(4) .reward-input { border-left: 3px solid #ffeb3b; }
#winStreakRewardsTable tr:nth-child(5) .reward-input { border-left: 3px solid #ffc107; }
#winStreakRewardsTable tr:nth-child(6) .reward-input { border-left: 3px solid #ff9800; }
#winStreakRewardsTable tr:nth-child(7) .reward-input { border-left: 3px solid #ff5722; }
#winStreakRewardsTable tr:nth-child(8) .reward-input { border-left: 3px solid #e91e63; }
#winStreakRewardsTable tr:nth-child(9) .reward-input { border-left: 3px solid #9c27b0; }
#winStreakRewardsTable tr:nth-child(10) .reward-input { border-left: 3px solid #673ab7; }


.table-container {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}


.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0 10px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 24px;
}

.modal-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.modal-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

.modal-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    border: none;
    color: white;
}

.modal-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #545b62, #383d41);
}

.modal-actions .btn-light {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.modal-actions .btn-light:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}


@media (max-width: 576px) {
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }
}


.card-header h5,
.card-header h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.card-header .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.mb-4 h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-weight: 600;
}

.mb-4 h6 .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #6c757d;
}


.setting-label {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.setting-description {
    text-align: left;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}


.btn .icon {
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.card-body {
    text-align: left;
}

.form-label {
    text-align: left;
    display: block;
    margin-bottom: 6px;
}






.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px 16px;
    color: inherit;
    transition: all 0.2s ease;
}

.sidebar-link .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sidebar-footer .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}


.developer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 6px;
}

.developer-link:hover {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
    text-decoration: none;
    transform: translateX(2px);
}

.developer-link:active {
    transform: translateX(1px);
}


.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.page-title .icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-title .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.card-header h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header h5 .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.stat-card .stat-label {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}


a.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

a.btn .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.table .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 0.875rem;
    margin: 2px;
    white-space: nowrap;
    min-width: auto;
}


.table td:last-child {
    white-space: nowrap;
    min-width: 200px;
    width: auto;
}

.table th:last-child {
    white-space: nowrap;
    min-width: 200px;
    width: auto;
}


.user-management-table-container {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    background-color: white;
    margin: 16px 0;
    
    min-width: 100%;
    width: 100%;
}

.user-management-table-container .table {
    
    min-width: 1200px;
    margin-bottom: 0;
    white-space: nowrap;
}


.user-management-table-container .table th:nth-child(1),
.user-management-table-container .table td:nth-child(1) {
    width: 50px;
    min-width: 50px;
    text-align: center;
}

.user-management-table-container .table th:nth-child(2),
.user-management-table-container .table td:nth-child(2) {
    width: 80px;
    min-width: 80px;
}

.user-management-table-container .table th:nth-child(3),
.user-management-table-container .table td:nth-child(3) {
    width: 120px;
    min-width: 120px;
}

.user-management-table-container .table th:nth-child(4),
.user-management-table-container .table td:nth-child(4) {
    width: 100px;
    min-width: 100px;
}

.user-management-table-container .table th:nth-child(5),
.user-management-table-container .table td:nth-child(5) {
    width: 80px;
    min-width: 80px;
}

.user-management-table-container .table th:nth-child(6),
.user-management-table-container .table td:nth-child(6) {
    width: 100px;
    min-width: 100px;
}

.user-management-table-container .table th:nth-child(7),
.user-management-table-container .table td:nth-child(7) {
    width: 80px;
    min-width: 80px;
}

.user-management-table-container .table th:nth-child(8),
.user-management-table-container .table td:nth-child(8) {
    width: 100px;
    min-width: 100px;
}

.user-management-table-container .table th:nth-child(9),
.user-management-table-container .table td:nth-child(9) {
    width: 80px;
    min-width: 80px;
}

.user-management-table-container .table th:nth-child(10),
.user-management-table-container .table td:nth-child(10) {
    width: 80px;
    min-width: 80px;
}

.user-management-table-container .table th:nth-child(11),
.user-management-table-container .table td:nth-child(11) {
    width: 100px;
    min-width: 100px;
}

.user-management-table-container .table th:nth-child(12),
.user-management-table-container .table td:nth-child(12) {
    width: 220px;
    min-width: 220px;
}


.user-management-table-container::-webkit-scrollbar {
    width: 8px;
    height: 12px;
}

.user-management-table-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 6px;
    margin: 0 8px;
}

.user-management-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 6px;
    border: 2px solid #f8f9fa;
}

.user-management-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

.user-management-table-container::-webkit-scrollbar-corner {
    background: #f8f9fa;
}

.table .btn .icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}





.icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}




.d-flex.flex-col .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 8px;
}

.d-flex.flex-col .btn .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}


.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}


.bet-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-info .icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}


.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}


.pagination-controls .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
}

.pagination-controls .btn .icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}


.toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.toolbar .btn .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}


.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb .icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}


.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}


.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge .icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}


.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .input-group-prepend,
.input-group .input-group-append {
    display: flex;
    align-items: center;
}

.input-group-text {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.input-group-text .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}


.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.dropdown-item .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
}


.action-buttons-primary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.action-buttons-primary .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}


.action-buttons-primary .btn {
    line-height: 1;
}

.action-buttons-primary .btn > * {
    flex-shrink: 0;
}


.action-buttons-primary .btn {
    font-size: 14px;
    letter-spacing: 0;
}

.action-buttons-primary .btn:not(.dropdown-toggle) {
    text-indent: 0;
    word-spacing: 0;
}


.action-buttons-primary .btn.btn-primary,
.action-buttons-primary .btn.btn-outline-secondary,
.action-buttons-primary .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.action-buttons-primary .btn .icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0 !important;
    margin-left: 0 !important;
}


.action-buttons-primary .btn .icon,
.action-buttons-primary .btn.btn-primary .icon,
.action-buttons-primary .btn.btn-outline-secondary .icon {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


button[onclick="clearFilters()"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    padding: 10px 20px !important;
}

button[onclick="clearFilters()"] .icon {
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


.action-buttons-primary .btn.btn-outline-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    min-width: 100px !important;
    font-weight: 500 !important;
}

.action-buttons-primary .btn.btn-outline-secondary .icon {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.action-buttons-primary .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-buttons-secondary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons-secondary .btn {
    min-width: 120px;
    padding: 8px 16px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.action-buttons-secondary .btn .icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons-secondary .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}


@media (max-width: 768px) {
    .action-buttons-primary,
    .action-buttons-secondary {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons-primary .btn,
    .action-buttons-secondary .btn {
        width: 100%;
        min-width: auto;
        justify-content: center;
        text-align: center;
    }
}


.form-text.text-muted {
    display: flex;
    align-items: center;
}


.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: none;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.topbar-brand .icon {
    font-size: 1.3rem;
    color: var(--primary);
}

.brand-text {
    display: none;
}

.topbar-right {
    display: flex;
    align-items: center;
}


.topbar .user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar .user-details {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 16px;
    border-right: 1px solid var(--border-color);
}

.topbar .user-details .icon {
    color: var(--text-secondary);
    font-size: 1rem;
}

.topbar .user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar .username {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.topbar .login-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.topbar .logout-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.topbar .logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    transform: translateY(-1px);
}

.topbar .logout-link .icon {
    font-size: 0.9rem;
}

.logout-text {
    display: none;
}


@media (max-width: 480px) {
    .topbar .user-text {
        display: none;
    }
    
    .topbar .user-info {
        gap: 12px;
    }
    
    .topbar .user-details {
        padding-right: 12px;
    }
    
    .topbar-left {
        gap: 6px;
    }
    
    .brand-text {
        display: none;
    }
    
    
    .page-content {
        margin-left: 0 !important;
        padding-top: var(--header-height) !important;
    }
    
    .container-fluid {
        padding: var(--space) var(--space-sm) !important;
    }
    
    .page-title {
        font-size: 1.5rem !important;
        margin-bottom: var(--space) !important;
    }
    
    .card {
        margin-bottom: var(--space) !important;
    }
    
    .card-header h5 {
        font-size: 1rem !important;
    }
    
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.875rem;
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    
    .stat-card {
        margin-bottom: var(--space-sm) !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 481px) and (max-width: 1023px) {
    .sidebar-toggle {
        display: flex !important;
    }
    
    .topbar-left {
        gap: 10px;
    }
    
    
    .page-content {
        margin-left: 0 !important;
        padding-top: var(--header-height) !important;
    }
}

@media (min-width: 768px) {
    .brand-text {
        display: inline;
    }
    
    .logout-text {
        display: inline;
    }
    
    .topbar .user-info {
        gap: 20px;
    }
    
    .topbar .user-details {
        padding-right: 20px;
    }
}

@media (min-width: 1024px) {
    .topbar-container {
        padding: 0 30px;
    }
}


body {
    padding-top: var(--header-height);
}




.sidebar {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
}




@media (max-width: 1023px) {
    .sidebar.show {
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
    }
}


.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.username {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.login-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    transform: translateY(-1px);
}

.developer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.developer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.developer-link:hover {
    color: var(--primary);
}

.form-text.text-muted .icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #17a2b8;
}


.rank-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.rank-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
}

.rank-crown {
    font-size: 1.2rem;
    animation: crown-glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}


@keyframes crown-glow {
    0% {
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
        transform: scale(1.05);
    }
}


.table tbody tr:first-child {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left: 3px solid #ffd700;
}

.table tbody tr:first-child:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
}

.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
}


.selected-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
}


.bulk-actions-toolbar .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulk-actions-toolbar .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.bulk-actions-toolbar .btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.table th:first-child,
.table td:first-child {
    text-align: center;
    vertical-align: middle;
}

.table .checkbox-container {
    justify-content: center;
    margin: 0;
}



@media (max-width: 768px) {
    .user-management-table-container {
        margin: 8px 0;
        border-radius: 8px;
        
        -webkit-overflow-scrolling: touch;
    }
    
    .user-management-table-container .table {
        font-size: 0.875rem;
        
        min-width: 1000px;
    }
    
    .user-management-table-container .table th,
    .user-management-table-container .table td {
        padding: 8px 6px;
        font-size: 0.875rem;
    }
    
    
    .user-management-table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .user-management-table-container::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #007bff, #0056b3);
        border-radius: 4px;
    }
    
    .bulk-actions-toolbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .bulk-actions-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .bulk-actions-right {
        width: 100%;
        justify-content: center;
    }
    
    .selected-count {
        min-width: auto;
        flex: 1;
    }
}



.action-buttons-primary button[onclick="clearFilters()"].btn.btn-outline-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    min-width: 120px !important;
    font-weight: 500 !important;
    border: 1px solid #6c757d !important;
    background-color: transparent !important;
    color: #6c757d !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.action-buttons-primary button[onclick="clearFilters()"].btn.btn-outline-secondary .icon {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    vertical-align: middle !important;
}


.action-buttons-primary button[onclick="searchBets()"].btn.btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    min-width: 100px !important;
    font-weight: 500 !important;
}

.action-buttons-primary button[onclick="searchBets()"].btn.btn-primary .icon {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    vertical-align: middle !important;
}
 / *   ybϑ Rd��R��7h_  * / 
 . b a t c h - a c t i o n s   { 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 } 
 
 . b a t c h - a c t i o n s   . b t n   { 
         m a r g i n - l e f t :   0 . 5 r e m ; 
 } 
 
 . p e r i o d - c a r d   { 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
         b o r d e r :   2 p x   s o l i d   t r a n s p a r e n t ; 
 } 
 
 . p e r i o d - c a r d : h a s ( . p e r i o d - c h e c k b o x : c h e c k e d )   { 
         b o r d e r - c o l o r :   # d c 3 5 4 5 ; 
         b a c k g r o u n d - c o l o r :   # f f f 5 f 5 ; 
 } 
 
 . p e r i o d - c h e c k b o x   { 
         t r a n s f o r m :   s c a l e ( 1 . 2 ) ; 
         m a r g i n - r i g h t :   0 . 7 5 r e m ; 
 } 
 
 . f o r m - c h e c k - l a b e l   { 
         c u r s o r :   p o i n t e r ; 
         u s e r - s e l e c t :   n o n e ; 
 } 
 
 # s e l e c t i o n - i n f o   { 
         f o n t - s i z e :   0 . 8 7 5 r e m ; 
         f o n t - w e i g h t :   5 0 0 ; 
 } 
 
 . b a t c h - a c t i o n s   . b t n - d a n g e r   { 
         b a c k g r o u n d - c o l o r :   # d c 3 5 4 5 ; 
         b o r d e r - c o l o r :   # d c 3 5 4 5 ; 
 } 
 
 . b a t c h - a c t i o n s   . b t n - d a n g e r : h o v e r   { 
         b a c k g r o u n d - c o l o r :   # c 8 2 3 3 3 ; 
         b o r d e r - c o l o r :   # b d 2 1 3 0 ; 
 } 
 
 . b a t c h - a c t i o n s   . b t n - s e c o n d a r y   { 
         b a c k g r o u n d - c o l o r :   # 6 c 7 5 7 d ; 
         b o r d e r - c o l o r :   # 6 c 7 5 7 d ; 
 } 
 
 . b a t c h - a c t i o n s   . b t n - s e c o n d a r y : h o v e r   { 
         b a c k g r o u n d - c o l o r :   # 5 4 5 b 6 2 ; 
         b o r d e r - c o l o r :   # 4 e 5 5 5 b ; 
 } 
 
 