/* Custom Black Background */
body {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Ensure content areas have proper contrast */
.card, .modal-content, .dropdown-menu, .list-group-item, .form-control, .input-group-text {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

/* Fix text colors for better readability */
.text-dark, .text-muted, .text-body {
    color: #ffffff !important;
}

/* Fix links for better visibility */
a, .text-primary {
    color: #ffffff !important;
}

a:hover {
    color: #6cb2ff !important;
}

/* Fix form controls */
.form-control, .form-control:focus {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #444444 !important;
}

/* Fix dropdowns */
.dropdown-divider {
    border-top: 1px solid #444444 !important;
}

/* Fix tables */
.table {
    color: #ffffff !important;
}

.table th, .table td {
    border-color: #444444 !important;
}

/* Fix modals */
.modal-header, .modal-footer {
    border-color: #444444 !important;
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #1a1a1a;
        z-index: 1000;
        padding: 1rem;
        overflow-y: auto;
        display: none;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        height: calc(100vh - 60px);
        transform: translateY(-20px);
    }
    
    .navbar-collapse.show {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem;
        margin: 0.25rem 0 !important;
        display: block;
        color: #fff !important;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0.5rem 0;
        border: 1px solid #444;
        background: #2a2a2a !important;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: #fff !important;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        background: transparent;
    }
    
    .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(205, 162, 95, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.5em;
        height: 1.5em;
    }
    
    .navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23CDA25F'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Fix badges */
.badge-light {
    background-color: #444444 !important;
    color: #ffffff !important;
}
