/* Global Styles */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.container-fluid {
    height: 100vh;
    padding: 0;
}

.row {
    margin: 0;
}

/* Sidebar Styles */
.sidebar {
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #444;
    background-color: #2d2d2d !important;
    box-shadow: 2px 0 4px rgba(0,0,0,0.3);
    position: relative;
}

.sidebar-content {
    padding: 1.5rem !important;
    position: relative;
}

@media (max-width: 768px) {
    .sidebar-content {
        padding-top: 4rem !important; /* Space for close button */
    }
}

.sidebar h4 {
    color: #4fc3f7;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.sidebar h5 {
    color: #b0b0b0;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Main Content Styles */
.main-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tagline {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    color: #bdc3c7;
    font-weight: 300;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    padding: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.chat-input-container {
    padding: 0.5rem;
    background-color: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-top: 0.5rem;
}

/* Enhanced Chat Input Styles */
.chat-input-wrapper {
    background: #3a3a3a;
    border-radius: 8px;
    border: 1px solid #555;
    padding: 0.75rem;
    margin: 0;
}

.input-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.input-controls small {
    font-size: 0.75em;
    color: #999;
}

.input-section {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.input-area {
    position: relative;
    flex: 1;
}

.input-area textarea {
    resize: vertical;
    min-height: 60px;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    width: 100%;
    background-color: #404040;
    color: #e0e0e0;
}

.input-area textarea:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25);
}

.markdown-preview {
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.75rem;
    background-color: #404040;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
    color: #e0e0e0;
}

.markdown-preview:empty:before {
    content: "Preview will appear here...";
    color: #999;
    font-style: italic;
}

.input-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.input-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Message Styles */
.message {
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    text-align: right;
}

.message.assistant {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: white;
}

.message.assistant .message-bubble {
    background-color: #404040;
    border: 1px solid #555;
    color: #e0e0e0;
}

.message-bubble h1,
.message-bubble h2,
.message-bubble h3,
.message-bubble h4,
.message-bubble h5,
.message-bubble h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #bdc3c7;
    font-weight: 600;
}

.message-bubble h1 { font-size: 1.5rem; }
.message-bubble h2 { font-size: 1.3rem; }
.message-bubble h3 { font-size: 1.1rem; }
.message-bubble h4 { font-size: 1rem; }
.message-bubble h5 { font-size: 0.9rem; }
.message-bubble h6 { font-size: 0.8rem; }

.message-bubble p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.message-bubble ul,
.message-bubble ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.message-bubble li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.message-bubble blockquote {
    border-left: 4px solid #4fc3f7;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: rgba(79, 195, 247, 0.1);
    font-style: italic;
}

.message-bubble pre {
    background-color: #2d2d2d;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.message-bubble code {
    background-color: #2d2d2d;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 0.2rem 0.4rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.message-bubble pre code {
    background-color: transparent;
    border: none;
    padding: 0;
}

.message-bubble table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.message-bubble th,
.message-bubble td {
    border: 1px solid #555;
    padding: 0.5rem;
    text-align: left;
}

.message-bubble th {
    background-color: #2d2d2d;
    font-weight: 600;
}

.message-bubble a {
    color: #4fc3f7;
    text-decoration: none;
}

.message-bubble a:hover {
    text-decoration: underline;
}

.message-bubble hr {
    border: none;
    border-top: 1px solid #555;
    margin: 1.5rem 0;
}

.message-bubble img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5rem 0;
}

/* Enhanced Code Syntax Highlighting */
.message-bubble pre[class*="language-"] {
    background-color: #2d2d2d;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    position: relative;
}

.message-bubble pre[class*="language-"]:before {
    content: attr(class);
    content: "";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7em;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}

.message-bubble code[class*="language-"] {
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

/* Custom Prism theme adjustments */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #999;
    font-style: italic;
}

.token.punctuation {
    color: #e0e0e0;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #d63384;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #198754;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #fd7e14;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #0d6efd;
}

.token.function,
.token.class-name {
    color: #6f42c1;
}

.token.regex,
.token.important,
.token.variable {
    color: #dc3545;
}

/* Copy button for code blocks */
.message-bubble pre[class*="language-"] {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7em;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.message-bubble pre[class*="language-"]:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Citation content markdown styles */
.citation-content h1,
.citation-content h2,
.citation-content h3,
.citation-content h4,
.citation-content h5,
.citation-content h6 {
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    color: #495057;
    font-weight: 600;
}

.citation-content p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.citation-content code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 0.1rem 0.3rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
}

/* Theme content markdown styles */
.themes-section p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.themes-section ul,
.themes-section ol {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
}

.themes-section li {
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: #404040;
    border-radius: 8px;
    border: 1px solid #555;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4fc3f7;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-top: 0.25rem;
}

/* Metric Cards */
.metric-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #404040;
    border-radius: 8px;
    border: 1px solid #555;
    height: 100%;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4fc3f7;
}

.metric-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-top: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

.loading-text {
    margin-top: 1rem;
    color: #e0e0e0;
    font-weight: 500;
}

/* Chart Container */
.chart-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 2rem;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    border: none;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    border: none;
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    border: none;
    color: white;
}

/* Additional Dark Theme Styles */
.form-text {
    color: #999 !important;
}

.text-muted {
    color: #999 !important;
}

.btn-outline-secondary {
    color: #b0b0b0;
    border-color: #555;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #555;
    border-color: #555;
}

.btn-outline-info {
    color: #4fc3f7;
    border-color: #4fc3f7;
    background-color: transparent;
}

.btn-outline-info:hover {
    color: #fff;
    background-color: #4fc3f7;
    border-color: #4fc3f7;
}

.btn-outline-warning {
    color: #ff9800;
    border-color: #ff9800;
    background-color: transparent;
}

.btn-outline-warning:hover {
    color: #fff;
    background-color: #ff9800;
    border-color: #ff9800;
}

.btn-outline-primary {
    color: #4fc3f7;
    border-color: #4fc3f7;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #4fc3f7;
    border-color: #4fc3f7;
}

.input-group-text {
    background-color: #404040;
    border-color: #555;
    color: #e0e0e0;
}

.spinner-border {
    border-color: #4fc3f7 transparent #4fc3f7 transparent;
}

/* Welcome message styling */
.welcome-message .alert-info {
    background: linear-gradient(135deg, #1976d2, #1e88e5);
    color: #e3f2fd;
    border: 1px solid #555;
}

/* Citation content styling */
.citation-content {
    background-color: #404040;
    border: 1px solid #555;
    color: #e0e0e0;
}

.citation-content h1,
.citation-content h2,
.citation-content h3,
.citation-content h4,
.citation-content h5,
.citation-content h6 {
    color: #bdc3c7;
}

.citation-content code {
    background-color: #2d2d2d;
    border: 1px solid #555;
    color: #e0e0e0;
}

/* Copy button styling */
.code-copy-btn {
    background: rgba(45, 45, 45, 0.9);
    border: 1px solid #555;
    color: #e0e0e0;
}

.code-copy-btn:hover {
    background: rgba(45, 45, 45, 0.95);
}

/* Processing modal styling */
.modal .spinner-border {
    border-color: #4fc3f7;
    border-right-color: transparent;
}

/* Dropdown and select styling */
.dropdown-menu {
    background-color: #2d2d2d;
    border: 1px solid #555;
}

.dropdown-item {
    color: #e0e0e0;
}

.dropdown-item:hover {
    background-color: #404040;
    color: #fff;
}

/* Close button styling */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
        padding-top: 4rem; /* Space for mobile menu button */
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-top: 0;
    }
    
    .header {
        padding: 1rem 0 2rem 0 !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-input-wrapper {
        margin: 0.5rem;
        padding: 0.75rem;
    }
    
    .input-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .input-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .input-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .chat-container {
        height: calc(100vh - 6rem);
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #4fc3f7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #29b6f6;
    transform: scale(1.05);
}

.mobile-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.3);
}

/* Mobile Close Button */
.mobile-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.mobile-close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Animation for processing */
.processing-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* File upload area */
.file-upload-area {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
    background-color: #404040;
    color: #e0e0e0;
}

.file-upload-area:hover {
    border-color: #4fc3f7;
    background-color: #4a4a4a;
}

.file-upload-area.dragover {
    border-color: #4fc3f7;
    background-color: rgba(79, 195, 247, 0.1);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: #e8f5e8;
}

.alert-danger {
    background: linear-gradient(135deg, #c62828, #d32f2f);
    color: #ffebee;
}

.alert-info {
    background: linear-gradient(135deg, #1976d2, #1e88e5);
    color: #e3f2fd;
}

/* Bootstrap Component Overrides for Dark Theme */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Bootstrap Labels */
.form-label {
    color: #e0e0e0;
}

/* Bootstrap HR elements */
hr {
    border-color: #555;
    opacity: 0.3;
}

/* Bootstrap Headers in Modal */
.modal h5, .modal h6 {
    color: #e0e0e0;
}

.modal-body h6 {
    color: #bdc3c7;
    margin-bottom: 0.75rem;
}

/* Bootstrap Row and Column elements in modals */
.modal .row {
    margin: 0;
}

/* Bootstrap Strong elements */
.modal strong {
    color: #e0e0e0;
}

/* Bootstrap List elements */
.modal ul, .modal ol {
    color: #e0e0e0;
}

.modal li {
    color: #e0e0e0;
}

/* Bootstrap Text elements */
.text-center {
    color: inherit;
}

/* Modal body paragraph elements */
.modal-body p {
    color: #e0e0e0;
}

/* Chart container styling */
.chart-container {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #555;
}

/* Processing message styling */
#processingMessage {
    color: #e0e0e0;
}

/* Visually hidden elements */
.visually-hidden {
    color: inherit;
}

/* Bootstrap Row margin fix for dark theme */
.row.mb-3 {
    margin-bottom: 1rem !important;
}

/* Table styling in modals */
.modal table {
    color: #e0e0e0;
}

/* Bootstrap utility classes override */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

/* File input styling */
input[type="file"] {
    background-color: #404040;
    border: 1px solid #555;
    color: #e0e0e0;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #555;
    color: #e0e0e0;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

/* Chart.js tooltip styling override */
.chartjs-tooltip {
    background-color: #2d2d2d !important;
    border: 1px solid #555 !important;
    color: #e0e0e0 !important;
}

/* Loading spinner text color */
.spinner-border.text-primary {
    border-color: #4fc3f7 transparent #4fc3f7 transparent;
}

/* Bootstrap fade show classes */
.fade.show {
    opacity: 1;
}

/* Alert dismissible button styling */
.alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Bootstrap responsive utilities */
@media (max-width: 768px) {
    .col-3 {
        margin-bottom: 1rem;
    }
}

/* Chart.js Dark Theme Styling */
.chart-container canvas {
    background-color: transparent;
}

/* Override Chart.js default colors for dark theme */
.modal .chart-container {
    background-color: #404040;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Ensure chart legends are visible in dark theme */
.chartjs-legend {
    color: #e0e0e0 !important;
}

.chartjs-legend-item {
    color: #e0e0e0 !important;
}

/* Summary modal specific styling */
#summaryModal .modal-content {
    background-color: #2d2d2d;
    border: 1px solid #555;
}

#summaryModal .modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-bottom: 1px solid #555;
}

#summaryModal .modal-body {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

/* Processing modal specific styling */
#processingModal .modal-content {
    background-color: #2d2d2d;
    border: 1px solid #555;
}

#processingModal .modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-bottom: 1px solid #555;
}

#processingModal .modal-body {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

/* Markdown Help modal specific styling */
#markdownHelpModal .modal-content {
    background-color: #2d2d2d;
    border: 1px solid #555;
}

#markdownHelpModal .modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-bottom: 1px solid #555;
}

#markdownHelpModal .modal-body {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

/* Ensure all modal text is properly colored */
.modal-body br + br {
    line-height: 1.5;
}

/* Code examples in markdown help modal */
#markdownHelpModal code {
    background-color: #404040;
    border: 1px solid #555;
    color: #4fc3f7;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

#markdownHelpModal pre {
    background-color: #404040;
    border: 1px solid #555;
    color: #e0e0e0;
    padding: 0.75rem;
    border-radius: 4px;
}

/* Arrow symbols in markdown help */
#markdownHelpModal .modal-body {
    color: #e0e0e0;
}

#markdownHelpModal .modal-body → {
    color: #4fc3f7;
}

/* Strong and em elements in modals */
#markdownHelpModal strong {
    color: #e0e0e0;
}

#markdownHelpModal em {
    color: #bdc3c7;
}

/* Ensure proper spacing for modal content */
.modal-body .row .col-md-6 {
    margin-bottom: 1rem;
}

/* Fix for any remaining white backgrounds */
.bg-light {
    background-color: #2d2d2d !important;
}
