body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.total-balance-card {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
}

.total-balance-card .card-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.total-balance-card .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.stat-box {
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.stat-box h6 {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-box h3 {
    margin-bottom: 0;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1.5rem;
    line-height: 1.3;
}

@media (max-width: 1200px) {
    .stat-box h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .stat-box h3 {
        font-size: 1.1rem;
    }
}

.wallet-address {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
    font-family: monospace;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Ensure dropdown menu is visible and properly styled */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 9999 !important;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    top: 100%;
    right: 0;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Ensure dropdown content is visible */
.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 99999 !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    min-width: 10rem !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    background-color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175) !important;
    pointer-events: auto !important;
    transform: none !important;
}

/* Ensure navbar dropdown positioning */
.navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 99999 !important;
}

/* Override any conflicting Bootstrap styles */
.navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 99999 !important;
}

/* Force visibility class for debugging */
.force-visible {
    position: fixed !important;
    top: 60px !important;
    right: 20px !important;
    z-index: 999999 !important;
    background: white !important;
    border: 2px solid red !important;
    min-width: 200px !important;
    padding: 10px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5) !important;
}

.dropdown-item {
    display: block !important;
    visibility: visible !important;
    color: #212529 !important;
    background-color: transparent !important;
    border: 0 !important;
    padding: 0.25rem 1rem !important;
    text-decoration: none !important;
}

.dropdown-item:hover {
    color: #1e2125 !important;
    background-color: #f8f9fa !important;
}

.dropdown-item-text {
    display: block !important;
    padding: 0.25rem 1rem !important;
    color: #6c757d !important;
}

.dropdown-divider {
    height: 0 !important;
    margin: 0.5rem 0 !important;
    border-top: 1px solid #dee2e6 !important;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    color: #1e2125;
    background-color: #e9ecef;
}

.dropdown-item-text {
    display: block;
    padding: 0.25rem 1rem;
    color: #6c757d;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.alert {
    margin-bottom: 1rem;
}

.table th {
    font-weight: 500;
    color: #6c757d;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.btn-outline-primary {
    border-color: #1a237e;
    color: #1a237e;
}

.btn-outline-primary:hover {
    background-color: #1a237e;
    border-color: #1a237e;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }

    .stat-box {
        margin-bottom: 1rem;
    }
}

/* Loading disabled state for clickable cards */
.loading-disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-disabled .hover-card {
    transform: none !important;
}

.loading-disabled .hover-card:hover {
    transform: none !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Batch Group Tagging Table Styles */
#groupTaggingTable {
    margin-bottom: 0;
}

#groupTaggingTable tbody tr:hover {
    background-color: #f8f9fa;
}

#groupTaggingTable .form-control-sm,
#groupTaggingTable .form-select-sm {
    font-size: 0.875rem;
}

#groupTaggingTable .remove-row-btn {
    width: 100%;
}

#groupTaggingTable .is-invalid {
    border-color: #dc3545;
}

#groupTaggingTable .is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Tag Name Autocomplete Styles */
#tagNameSuggestions {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: white;
    margin-top: 2px;
}

#tagNameSuggestions .list-group-item {
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.5rem 1rem;
}

#tagNameSuggestions .list-group-item:last-child {
    border-bottom: none;
}

#tagNameSuggestions .list-group-item:hover {
    background-color: #f8f9fa;
}

#tagNameSuggestions .list-group-item:active {
    background-color: #e9ecef;
}

#tagNameSuggestions .list-group-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #212529;
}

#tagNameSuggestions .list-group-item small {
    font-size: 0.75rem;
    color: #6c757d;
    word-break: break-all;
}

/* Professional UI Enhancements */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 1rem 1.25rem;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

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

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

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

.badge {
    border-radius: 0.25rem;
    padding: 0.35em 0.65em;
}

.fw-semibold {
    font-weight: 600;
}

/* Tag Name Autocomplete in Batch Table */
.tag-name-suggestions {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: white;
    margin-top: 2px;
    min-width: 300px;
    width: max-content;
    max-width: 400px;
}

#tagWalletTable td {
    overflow: visible !important;
}

#tagWalletTable td > div {
    overflow: visible !important;
}

#groupTaggingTable td {
    overflow: visible !important;
}

#groupTaggingTable td > div {
    overflow: visible !important;
}

.table-responsive {
    overflow: visible !important;
}

.tag-name-suggestions .list-group-item {
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-decoration: none;
    color: inherit;
}

.tag-name-suggestions .list-group-item:last-child {
    border-bottom: none;
}

.tag-name-suggestions .list-group-item:hover {
    background-color: #f8f9fa;
    color: inherit;
}

.tag-name-suggestions .list-group-item:active,
.tag-name-suggestions .list-group-item:focus {
    background-color: #e9ecef;
    color: inherit;
    outline: none;
}

.tag-name-suggestions .list-group-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #212529;
}

.tag-name-suggestions .list-group-item small {
    font-size: 0.75rem;
    color: #6c757d;
    word-break: break-all;
}

/* Admin Sidebar Styles */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background-color: #343a40;
    color: white;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.admin-sidebar.collapsed {
    width: 50px;
}

.admin-sidebar.collapsed .admin-sidebar-header {
    justify-content: center;
    align-items: center;
}

.admin-sidebar-header {
    padding: 1rem;
    background-color: #212529;
    border-bottom: 1px solid #495057;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.admin-sidebar-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.admin-sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.admin-sidebar-username {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: white;
}

.admin-sidebar-username i {
    width: 16px;
    text-align: center;
}

.admin-sidebar-user-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #adb5bd;
    font-size: 0.75rem;
}

.admin-sidebar-user-role i {
    width: 16px;
    text-align: center;
}

.admin-sidebar.collapsed .admin-sidebar-header-content {
    display: none;
}

.admin-sidebar-title {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .admin-sidebar-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

#sidebarToggle {
    color: white !important;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
}

#sidebarToggle:hover {
    color: #adb5bd !important;
}

#sidebarToggleIcon {
    transition: transform 0.3s ease;
}

.admin-sidebar.collapsed #sidebarToggleIcon {
    transform: rotate(180deg);
}

.admin-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-item {
    border-bottom: 1px solid #495057;
}

.admin-sidebar-item.has-submenu {
    position: relative;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease;
    gap: 0.75rem;
    position: relative;
}

.admin-sidebar-link:hover {
    background-color: #495057;
    color: white;
}

.admin-sidebar-link i {
    width: 20px;
    text-align: center;
}

.admin-sidebar-link .submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.admin-sidebar-item.active .submenu-arrow {
    transform: rotate(180deg);
}

.admin-sidebar-text {
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .admin-sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Submenu Styles */
.admin-sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #2c3136;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.admin-sidebar-item.active .admin-sidebar-submenu {
    max-height: 500px;
}

.admin-sidebar-subitem {
    border-bottom: 1px solid #3d4247;
}

.admin-sidebar-sublink {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: #adb5bd;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    gap: 0.75rem;
}

.admin-sidebar-sublink:hover {
    background-color: #495057;
    color: white;
}

.admin-sidebar-sublink.active,
.admin-sidebar-sublink.active:hover {
    background-color: #0d6efd;
    color: white;
}

.admin-sidebar-sublink i {
    width: 20px;
    text-align: center;
    font-size: 0.875rem;
}

.admin-sidebar.collapsed .admin-sidebar-submenu {
    display: none;
}

.admin-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 56px);
}

.admin-sidebar.collapsed + .admin-content {
    margin-left: 50px;
}

/* Responsive adjustments for sidebar */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-200px);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .admin-sidebar.collapsed ~ .admin-content {
        margin-left: 0;
    }
} 
