body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #333333;
    color: #ffffff;
    overflow-x: hidden;
}

.main-content {
    max-width: 100vw;
    overflow-x: hidden;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #1f1f1f;
    box-shadow: none;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.sidebar .nav-link {
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    color: #e0e0e0;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.05);
    border-left-color: #27ae60;
    color: white;
}

.sidebar .nav-link.active {
    background-color: rgba(39, 174, 96, 0.1);
    border-left-color: #27ae60;
    color: white;
}

.sidebar .nav-link[data-bs-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.3s ease;
}

.sidebar .nav-link[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.sidebar .nav-link.text-white-50 {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    color: #e0e0e0;
}

.sidebar .nav-link.text-white-50:hover {
    background-color: rgba(255,255,255,0.03);
    border-left-color: #27ae60;
    color: #ffffff !important;
}

.sidebar .nav-link.active-submenu {
    background-color: rgba(39, 174, 96, 0.1);
    border-left-color: #27ae60;
    color: #ffffff !important;
}

.collapse {
    transition: all 0.3s ease;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    background-color: #333333;
}

.breadcrumb {
    background-color: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 1rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #28a745;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.page-header {
    background: transparent;
    padding: 20px 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
    border-bottom: 3px solid #27ae60;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.filter-info {
    color: #e0e0e0;
    /* font-size: 0.9rem; */
    margin-top: 5px;
}

.filter-section {
    background: #444444;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #555555;
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #ffffff;
}

.events-page .filter-controls-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.events-page .filter-field {
    display: flex;
    flex-direction: column;
}

.events-page .filter-field label {
    font-family: inherit;
    font-size: inherit;
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: inherit;
}

.events-page .form-input {
    height: 32px;
    padding: 2px;
    font-size: 14px;
    color: #ffffff;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #3f3f3f;
    min-width: 120px;
}

.events-page .form-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
    background-color: #3f3f3f;
    color: #ffffff;
}

.events-page .form-input[type="date"] {
    min-width: 140px;
}

/**/
body .select2-container--default .select2-selection--multiple {
    width: 300px;
    color: #ffffff;
    background-color: #3f3f3f;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid #555555;
}
body .select2-selection__choice__display {
    background-color: #3f3f3f;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #3f3f3f;
    border: 1px solid #555555;
}
body .select2-container--default .select2-dropdown {
    background-color: #3f3f3f;
    border: 1px solid #555555;
}
/**/

.events-page .filter-buttons {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.btn-search {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: #000000;
    padding: 0;
    font-weight: bold;
    text-transform: capitalize;
    border-radius: 0;
    height: 32px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search:hover {
    background-color: #27ae60;
    border-color: #27ae60;
    color: #000000;
}

.btn-reset {
    background-color: #3498db;
    border-color: #3498db;
    color: #000000;
    padding: 0;
    font-weight: bold;
    text-transform: capitalize;
    border-radius: 0;
    height: 32px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: #000000;
}

.btn-export {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0;
}

.btn-export:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

.action-buttons-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 0 20px;
}

.btn-view-more {
    background-color: #333333;
    border: 1px solid #555555;
    color: #999999;
    padding: 0;
    font-weight: normal;
    text-transform: capitalize;
    border-radius: 0;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.btn-view-more:hover {
    border-color: #777777;
    background-color: #3f3f3f;
    color: #ffffff;
}

.btn-export-csv {
    background-color: #3498db;
    border: 1px solid #3498db;
    color: #000000;
    padding: 0;
    font-weight: bold;
    text-transform: none;
    border-radius: 0;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.btn-export-csv:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: #000000;
}

.data-table {
    background: #2f2f2f;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

.table-header {
    background-color: #2f2f2f;
    padding: 15px 20px;
    border-bottom: 3px solid #27ae60;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

.table {
    margin: 0;
    background-color: #2f2f2f;
    color: #ffffff;
    border-collapse: collapse;
}

.table th {
    background-color: #2f2f2f;
    border: 1px solid #444444;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-align: left;
    vertical-align: middle;
}

.table th.text-end {
    text-align: right;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
    font-size: 0.9rem;
    background-color: #2f2f2f;
    color: #ffffff;
    border: 1px solid #444444;
}

.table td.text-end {
    text-align: right;
}

.table .currency {
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
}

.table tbody tr {
    background-color: #2f2f2f;
}

.table tbody tr:nth-child(even) td {
    background-color: #2f2f2f;
}

.table tbody tr:hover td {
    background-color: #353535;
}

.summary-footer {
    background: #2f2f2f;
    padding: 15px 20px;
    border-top: 1px solid #444444;
    font-weight: bold;
    color: #ffffff;
    font-size: 0.95em;
    text-align: left;
    letter-spacing: 0.5px;
}

.events-page .table {
    background-color: #1E1E1E;
    color: #FFFFFF;
    border-collapse: collapse;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.events-page .table th {
    background-color: #1E1E1E;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border: 1px solid #333333;
    text-transform: none;
    vertical-align: middle;
}

.events-page .table th i.fas {
    color: #007ACC;
    font-size: 12px;
    margin-left: 4px;
}

.events-page .table td {
    background-color: #1E1E1E;
    color: #FFFFFF;
    padding: 12px 16px;
    border: 1px solid #3A3A3A;
    font-size: 13px;
    vertical-align: middle;
}

.events-page .table tbody tr:nth-child(even) {
    background-color: #2A2A2A;
}

.events-page .table tbody tr:nth-child(even) td {
    background-color: #2A2A2A;
}

.events-page .table tbody tr:nth-child(odd) {
    background-color: #1C1C1C;
}

.events-page .table tbody tr:nth-child(odd) td {
    background-color: #1C1C1C;
}

.events-page .table tbody tr:hover {
    cursor: pointer;
}

.events-page .table tbody tr:hover td {
    background-color: #3A3A3A;
}

.events-page .table td {
    border: 1px solid #333333;
    padding: 12px 16px;
    vertical-align: middle;
}

.event-result {
    padding: 4px 8px;
    border-radius: 4px;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
}

.event-result.win {
    background-color: #1F6F3F;
}

.event-result.lose {
    background-color: #7A1F1F;
}

.completed-status {
    padding: 4px 8px;
    border-radius: 4px;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 12px;
    text-transform: lowercase;
}

.completed-status.true {
    background-color: #1F6F3F;
}

.completed-status.false {
    background-color: #7A1F1F;
}

.events-page .table a, .events-page .table .text-primary {
    color: #007ACC;
}

.events-page .table a:hover {
    color: #005999;
}

/* @media (max-width: 1200px) {
    .events-page .table th:nth-child(5),
    .events-page .table td:nth-child(5),
    .events-page .table th:nth-child(6),
    .events-page .table td:nth-child(6),
    .events-page .table th:nth-child(12),
    .events-page .table td:nth-child(12) {
        display: none;
    }
} */

/* @media (max-width: 768px) {
    .events-page .table th:nth-child(4),
    .events-page .table td:nth-child(4),
    .events-page .table th:nth-child(5),
    .events-page .table td:nth-child(5),
    .events-page .table th:nth-child(6),
    .events-page .table td:nth-child(6),
    .events-page .table th:nth-child(10),
    .events-page .table td:nth-child(10),
    .events-page .table th:nth-child(12),
    .events-page .table td:nth-child(12),
    .events-page .table th:nth-child(14),
    .events-page .table td:nth-child(14) {
        display: none;
    }
    
    .events-page .table-responsive {
        overflow-x: auto;
    }
} */

/* @media (max-width: 480px) {
    .events-page .table th:nth-child(2),
    .events-page .table td:nth-child(2),
    .events-page .table th:nth-child(4),
    .events-page .table td:nth-child(4),
    .events-page .table th:nth-child(5),
    .events-page .table td:nth-child(5),
    .events-page .table th:nth-child(6),
    .events-page .table td:nth-child(6),
    .events-page .table th:nth-child(7),
    .events-page .table td:nth-child(7),
    .events-page .table th:nth-child(10),
    .events-page .table td:nth-child(10),
    .events-page .table th:nth-child(12),
    .events-page .table td:nth-child(12),
    .events-page .table th:nth-child(14),
    .events-page .table td:nth-child(14),
    .events-page .table th:nth-child(15),
    .events-page .table td:nth-child(15) {
        display: none;
    }
} */

.events-page .data-table {
    background-color: #1E1E1E;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.events-page .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #27ae60 #1E1E1E;
}

.events-page .table-responsive::-webkit-scrollbar {
    height: 8px;
}

.events-page .table-responsive::-webkit-scrollbar-track {
    background: #1E1E1E;
}

.events-page .table-responsive::-webkit-scrollbar-thumb {
    background: #27ae60;
    border-radius: 4px;
}

.events-page .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #2ecc71;
}

.events-page .table {
    min-width: 1200px;
    margin-bottom: 0;
    white-space: nowrap;
}

.events-page .table th,
.events-page .table td {
    min-width: 80px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 12px;
}

.events-page .table th:nth-child(2),
.events-page .table td:nth-child(2) {
    min-width: 120px;
}

.events-page .table th:nth-child(3),
.events-page .table td:nth-child(3) {
    min-width: 150px;
}

.events-page .table th:nth-child(7),
.events-page .table td:nth-child(7) {
    min-width: 100px;
}

.events-page .table-header {
    background-color: #1E1E1E;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.1em;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 3px solid #27ae60;
    text-transform: uppercase;
}

.events-page .summary-footer {
    background-color: #1E1E1E;
    color: #FFFFFF;
    font-weight: bold;
    padding: 15px 20px;
    text-align: left;
    border-top: 1px solid #3A3A3A;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.filter-info-events {
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;
    margin-bottom: 15px;
    padding-left: 0;
}

.events-page .filter-section {
    margin-top: 0;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
}

.card {
    border: 1px solid #555555;
    border-radius: 0;
    box-shadow: none;
    background-color: #444444;
}

.card-header {
    background-color: #444444;
    border-bottom: 1px solid #555555;
    font-weight: bold;
    color: #ffffff;
}

.card-body {
    background-color: #444444;
    color: #ffffff;
}

.form-control, .form-select {
    border-radius: 0;
    border: 1px solid #555555;
    background-color: #3f3f3f;
    color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
    background-color: #3f3f3f;
    color: #ffffff;
}

.form-control::placeholder {
    color: #999999;
}

.currency {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.percentage {
    font-weight: 500;
}

.positive {
    color: #27ae60;
}

.negative {
    color: #e74c3c;
}

.neutral {
    color: #333333;
}

.alert {
    border-radius: 0;
    border: none;
}

.alert-success {
    background-color: #27ae60;
    color: #ffffff;
}

.alert-info {
    background-color: #3498db;
    color: #ffffff;
}

.alert-warning {
    background-color: #f39c12;
    color: #ffffff;
}

.alert-danger {
    background-color: #e74c3c;
    color: #ffffff;
}

.text-muted {
    color: #999999 !important;
}

.border {
    border-color: #555555 !important;
}

.bg-light {
    background-color: #444444 !important;
}

.bg-white {
    background-color: #444444 !important;
}

.tooltip-inner {
    background-color: #444444;
    color: #ffffff;
}

.popover {
    background-color: #444444;
    border: 1px solid #555555;
}

.popover-header {
    background-color: #3f3f3f;
    border-bottom: 1px solid #555555;
    color: #ffffff;
}

.popover-body {
    color: #ffffff;
}

a {
    color: #3498db;
}

a:hover {
    color: #27ae60;
}

.dropdown-menu {
    background-color: #444444;
    border: 1px solid #555555;
}

.dropdown-item {
    color: #ffffff;
}

.dropdown-item:hover {
    background-color: #555555;
    color: #ffffff;
}

.modal-content {
    background-color: #444444;
    border: 1px solid #555555;
}

.modal-header {
    border-bottom: 1px solid #555555;
    background-color: #3f3f3f;
}

.modal-title {
    color: #ffffff;
}

.modal-body {
    color: #ffffff;
}

.modal-footer {
    border-top: 1px solid #555555;
    background-color: #3f3f3f;
}

.timezone-text {
    color: #FFD700;
}

/* popup */
#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.hidden {
    display: none !important;
}
.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    height: 90%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#popup-iframe {
    padding-top: 10px;
    width: 100%;
    height: 100%;
    border: none;
}
.close-btn {
    position: absolute;
    top: 0px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: #555;
}

/* spinner */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #09f;
  animation: spin 1s ease infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.hidden {
  display: none;
}
#loadingSpinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
