/**
 * File: darkmode.css
 * Description: Complete color palette and theme properties.
 */

/* Core Backgrounds and Text */
.app-body {
    background-color: #121212;
    color: #e0e0e0;
}

/* Sidebar Theme */
.sidebar {
    background-color: #1a1a1a;
    border-right: 1px solid #2d2d2d;
}

.brand {
    color: #ffffff;
}

.nav-link {
    color: #a0a0a0;
}

.nav-link:hover {
    background-color: #252525;
    color: #ffffff;
}

.active-nav {
    background-color: #2a2a2a;
    color: #ffffff;
}

/* Structural Borders */
.border-bottom-custom {
    border-bottom-color: #2d2d2d;
}

/* Module Containers */
.module-container {
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
}

/* Inputs and Forms */
.custom-input, .custom-select {
    background-color: #121212;
    color: #e0e0e0;
    border-color: #333333;
}

.custom-input:focus, .custom-select:focus {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #555555;
    box-shadow: none;
}

/* Semantic Labels: Gold, No Underline */
.semantic-label {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Table Theme */
.custom-table {
    color: #e0e0e0;
}

.custom-table th {
    color: #888888;
    border-bottom-color: #333333;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.custom-table td {
    border-bottom-color: #252525;
}

/* Badges and Buttons */
.custom-badge {
    background-color: #2d2d2d;
    color: #a0a0a0;
    border: 1px solid #444444;
}

.btn-icon {
    background-color: transparent;
    color: #888888;
}

.btn-icon:hover {
    color: #ffffff;
    background-color: #333333;
}

.btn-icon:hover {
    color: #ffffff;
    background-color: #333333;
}

/* --- Database Module Colors --- */

/* Left Sidebar Links */
.db-link {
    color: #e0e0e0;
}

.db-link:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

.table-link {
    color: #a0a0a0;
}

.table-link:hover, .table-link.active {
    color: #FFD700; /* Gold semantic signaling for active table */
    background-color: #252525;
}

/* Right Panel Tabs */
.custom-tabs {
    border-bottom-color: #2d2d2d;
}

.custom-tabs .nav-link {
    color: #888888;
    background-color: transparent;
}

.custom-tabs .nav-link:hover {
    color: #e0e0e0;
}

.custom-tabs .nav-link.active {
    color: #FFD700; /* Gold semantic signaling for active action */
    background-color: #252525;
}

/* Custom styling for the Site Stage Radio Buttons */
.btn-check:checked + .btn-outline-warning {
    background-color: #ffc107;
    color: #000 !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.btn-check:checked + .btn-outline-success {
    background-color: #198754;
    color: #fff !important;
    border-color: #198754 !important;
    box-shadow: 0 0 15px rgba(25, 135, 84, 0.4);
}

/* Drag and Drop Utilities */
.cursor-grab {
    cursor: grab !important;
}
.cursor-grab:active {
    cursor: grabbing !important;
}
.canvas-block-wrapper {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.canvas-block-wrapper:hover {
    border-color: rgba(197, 160, 89, 0.5) !important; /* Gold hover hint */
    background-color: rgba(255,255,255, 0.02);
}