/* =========================================================================
   1. GLOBAL & LAYOUT
   ========================================================================= */
#main-content {
    min-height: 100vh;
    padding: 0 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}
 
.content {
    padding: 20px;
}

/* Form Controls Dark Mode Fix */
/* Only dark modals and dark panels should use dark inputs */
.dark-panel .form-control,
.dark-modal .form-control {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}
/* Global SaaS input override */
.saas-input-sm,
.saas-input,
.saas-search-input {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}


.form-control:focus {
    background-color: #0d1117 !important;
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.3) !important;
}

/* =========================================================================
   2. THEMES (Dashboard vs Management)
   ========================================================================= */
/* Dashboard Theme: Pitch Black */



/* =========================================================================
   3. COMPONENTS (Health, Events, Assets)
   ========================================================================= */
/* Health Timeline & Bits */
.health-timeline {
    display: flex;
    gap: 2px;
    align-items: center;
    min-height: 20px;
	 
}
.health-timeline.compact {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 85px;
    white-space: nowrap;
}
.health-bit {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bit-blue   { background-color: #0084ff; box-shadow: 0 0 3px rgba(0,132,255,0.5); }
.bit-yellow { background-color: #ffcc00; }
.bit-black  { background-color: #000000; border: 1px solid #444; }

/* Status Indicators (Glows) */
.status-glow {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.glow-online  { background-color: #2ea043; box-shadow: 0 0 8px #2ea043; }
.glow-offline { background-color: #da3633; box-shadow: 0 0 8px #da3633; }

/* Asset Library Cards */
.asset-card {
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    transition: transform 0.2s, border-color 0.2s;
    color: #e6edf3;
}
.asset-card:hover {
    border-color: #8b949e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.asset-card .card-footer {
    background-color: #161b22;
    border-top: 1px solid #30363d;
}
.asset-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9d1d9;
}

/* Event Logs */
.event-log-container { padding: 10px; }
.event-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}
.event-row:hover { background: #222; }
.event-label {
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}
.event-label i { margin-right: 8px; width: 16px; text-align: center; }

/* Modal Adjustments */
/* Modal Body */
#assetTransferModal .modal-body {
    background: #ffffff !important;
    padding: 20px;
}

/* List Items */
#assetTransferModal .list-group-item {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #334155 !important;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.15s ease;
}

#assetTransferModal .list-group-item:hover {
    background: #f8fafc !important;
    border-color: #dbeafe !important;
}

/* Footer */
#assetTransferModal .modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
}


/* Sortable/Drag Handles */
.handle { padding: 5px; color: #484f58; cursor: grab; }
.handle:hover { color: #58a6ff; }
#sortable-playlist-items .list-group-item { cursor: grab; }

/* =========================================================================
   4. UTILITIES & ANIMATIONS
   ========================================================================= */
@keyframes pulse-opacity {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
.pulse-animation { animation: pulse-opacity 2s infinite ease-in-out; }

/* Text Visibility */
.text-primary { color: #00a2ff !important; }
.text-warning { color: #ffcc00 !important; }
.text-danger  { color: #ff4444 !important; }

.status-text-blue   { color: #00a2ff; }
.status-text-yellow { color: #ffcc00; }
.status-text-black  { color: #ff4444; }

/* Pulsing effect for the active status dot */
.pulse-blue {
    animation: pulse-blue-glow 2s infinite;
    text-shadow: 0 0 5px rgba(23, 162, 184, 0.5);
}

@keyframes pulse-blue-glow {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}
.extra-small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Normal Sidebar State */
.sidebar {
    width: 200px;
    transition: all 0.3s ease;
    background-color: #1a1d20;
    overflow: hidden;
}

.sidebar.minimized {
    width: 65px;
}

/* Completely hide logo and text labels */
.sidebar.minimized .sidebar-text {
    display: none !important;
}
/* By default, hide the mini logo */
.logo-mini {
    display: none !important;
}

/* When sidebar is MINIMIZED */
.sidebar.minimized .logo-full {
    display: none !important;
}

.sidebar.minimized .logo-mini {
    display: block !important;
    text-align: center;
    margin: 0 auto;
}

/* Ensure the header area centers everything when minimized */
.sidebar.minimized .p-3 {
    padding: 15px 5px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Adjust the toggle arrow when minimized so it sits under Logo 2 */
.sidebar.minimized #toggle-icon {
    margin-top: 15px;
    display: block;
}
/* Center the icons and toggle button when minimized */
/* Sidebar Link Defaults */
.nav-link {
    color: #ffffff !important; /* All menu items white */
    padding: 10px 10px;
    transition: background 0.2s ease;
    border-radius: 4px;
    margin: 4px 10px;
}

/* Hover Effect */
.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}
/* SELECTED / ACTIVE STATE */
.nav-link.active {
    background-color: #007bff !important; /* Blue background */
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Adjustments for Minimized State */
.sidebar.minimized .nav-link {
    margin: 4px 5px;
    padding: 12px 0;
    text-align: center;
}

.sidebar.minimized .nav-link i {
    margin-right: 0 !important;
}
/* Ensure the toggle button stays visible and centered */
.sidebar.minimized #toggle-icon {
    margin-left: 0;
}

/* Sidebar Link Styles */
#cms-tabs .nav-link {
    color: #ffffff !important; 
    padding: 12px 10px !important;
    margin: 4px 10px !important;
    border-radius: 8px !important; /* Rounded "pill" look */
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
}

/* HOVER STATE: Subtle grey highlight */
#cms-tabs .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* ACTIVE STATE: The Blue Pill */
#cms-tabs .nav-link.active {
    background-color: #007bff !important; /* Bright Blue */
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Ensure icons remain white */
#cms-tabs .nav-link i {
    width: 25px;
    text-align: center;
}

/* Minimized adjustments */
.sidebar.minimized #cms-tabs .nav-link {
    margin: 4px 5px !important;
    justify-content: center !important;
}
/* Fix the height of the manager containers and enable scrolling */
.manager-column-scroll {
    height: calc(100vh - 120px); /* Adjusts for the top header height */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for a darker, professional look */
.manager-column-scroll::-webkit-scrollbar {
    width: 6px;
}
.manager-column-scroll::-webkit-scrollbar-thumb {
    background: #444;
    width: 8px;                      /* Thickness of the scrollbar */
    background-color: #000;
}
/* Styling for the specific Manager panels */
#groups-sidebar, 
#players-table-container {
    scrollbar-width: thin;          /* For Firefox */
    scrollbar-color: #444 #000;      /* For Firefox: Thumb color / Track color */
}

/* Chrome, Edge, and Safari */
#groups-sidebar::-webkit-scrollbar,
#players-table-container::-webkit-scrollbar {
    width: 8px;                      /* Thickness of the scrollbar */
    background-color: #000;          /* The background (Track) - set to pure black */
}

#groups-sidebar::-webkit-scrollbar-track,
#players-table-container::-webkit-scrollbar-track {
    background: #000;                /* Match the background */
}

#groups-sidebar::-webkit-scrollbar-thumb,
#players-table-container::-webkit-scrollbar-thumb {
    background-color: #333;          /* The draggable "thumb" */
    border-radius: 10px;             /* Rounded edges for a modern look */
    border: 2px solid #000;          /* Padding effect using border */
}

#groups-sidebar::-webkit-scrollbar-thumb:hover,
#players-table-container::-webkit-scrollbar-thumb:hover {
    background-color: #555;          /* Lighter grey when hovering */
}
/* Shared Dark Scrollbar Logic */
.black-scroll-container {
    background-color: #000 !important;
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
}

/* Chrome, Edge, Safari */
.black-scroll-container::-webkit-scrollbar {
    width: 8px;
    background-color: #000;
}

.black-scroll-container::-webkit-scrollbar-track {
    background: #000;
}

.black-scroll-container::-webkit-scrollbar-thumb {
    background-color: #222;
    border-radius: 10px;
    border: 2px solid #000; /* Spacing effect */
}

.black-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #444;
}

/* Remove default Bootstrap list borders for a cleaner look */
.list-group-item {
    border-right: none !important;
    border-left: none !important;
}
/* Make the log display look like a real terminal */
/* Custom Dark Theme Styles */


#commandModal .nav-tabs .nav-link {
    border-radius: 4px 4px 0 0;
    margin-right: 2px;
}

#commandModal .nav-tabs .nav-link.active {
    background-color: #1a1d20 !important;
    border-bottom-color: #1a1d20 !important;
    color: #17a2b8 !important;
}

/* Custom scrollbar for the dark area */
.tab-content::-webkit-scrollbar {
    width: 6px;
}
.tab-content::-webkit-scrollbar-track {
    background: #1a1d20;
}
.tab-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}
.tab-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Make date picker icon visible on dark backgrounds */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0);
    opacity: 0.8;
    cursor: pointer;
}

/* Optional hover polish */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}


/* Chrome / Edge / Safari */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.9;
}
 /* Dark list group override */
#selected-file-list .list-group-item {
    background-color: #161b22 !important;
    color: #ffffff !important;
    border-color: #30363d !important;
	font-weight: 600 !important;
}

 /* Force SaaS white input for small search bars */
.saas-panel-search .saas-input-sm {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
    box-shadow: none !important;
}