/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .navbar-dark {
    background-color: #212529 !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2b3035 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

/* Tables */
.table th {
    font-weight: 600;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    color: inherit;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

/* Code and Pre blocks */
pre {
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

[data-bs-theme="light"] pre {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] pre {
    background-color: #212529;
    color: #f8f9fa;
}

code {
    color: #d63384;
    font-size: 87.5%;
}

[data-bs-theme="dark"] code {
    color: #e685b5;
}

/* Dashboard stats */
.stats-card {
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

/* Copy button success animation */
.btn-copy-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

/* Log Details */
.log-data {
    max-height: 300px;
    overflow-y: auto;
}

/* Modal tweaks */
[data-bs-theme="light"] .modal-header,
[data-bs-theme="light"] .modal-footer {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    background-color: #343a40;
    border-color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-responsive {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* Theme toggle button */
#theme-toggle {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.15s ease-in-out;
}

#theme-toggle:hover {
    color: #fff;
}

[data-bs-theme="dark"] #theme-toggle {
    color: rgba(255, 255, 255, 0.85);
}

[data-bs-theme="light"] .navbar-dark #theme-toggle {
    color: rgba(255, 255, 255, 0.85);
}