/* RemoteOC Portal Dark Theme Styles */

:root {
    --bs-body-bg: #1a1a2e;
    --bs-body-color: #e0e0e0;
}

body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

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

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

/* Navigation */
.nav-link {
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    transition: box-shadow 0.2s ease;
}

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

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
}

.table-dark th {
    border-color: #3a3a5a !important;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table-dark td {
    border-color: #3a3a5a !important;
    vertical-align: middle;
}

.table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-control::placeholder {
    color: #666;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.65em;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
}

/* Modals */
.modal-content {
    border-radius: 0.75rem;
}

/* Font monospace for code/IDs */
.font-monospace {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Source Code Pro', monospace;
}

/* Loading states */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Input groups */
.input-group-text {
    border-color: #3a3a5a;
}

/* Status indicators */
.status-online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    margin-right: 0.5rem;
}

.status-offline::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6c757d;
    margin-right: 0.5rem;
}

/* Transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Focus states */
*:focus {
    outline: none;
}

.btn:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Dark mode form check */
.form-check-input {
    background-color: #3a3a5a;
    border-color: #5a5a7a;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

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