/* Custom styles for CRWV Moon application */

/* Use Bootstrap variables for consistency */
:root {
    --moon-primary: var(--bs-info);
    --moon-secondary: var(--bs-secondary);
}

/* Body and layout */
body {
    font-size: 0.9rem;
}

/* Brand styling */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid var(--bs-border-color);
    background-color: var(--bs-light);
}

/* Price display styling */
.display-1 {
    font-size: 3rem;
    line-height: 1;
}

/* Status badges */
.badge.fs-6 {
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem;
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: var(--bs-light);
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form styling */
.form-control:focus {
    border-color: var(--moon-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-info-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--moon-primary);
    border-color: var(--moon-primary);
}

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

.btn-outline-primary:hover {
    background-color: var(--moon-primary);
    border-color: var(--moon-primary);
}

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

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert .feather {
    width: 1.125rem;
    height: 1.125rem;
    vertical-align: text-top;
}

/* Footer */
footer {
    margin-top: auto;
}

footer h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .card-header {
    background-color: var(--bs-dark);
    border-bottom-color: var(--bs-gray-700);
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: var(--bs-gray-800);
}

[data-bs-theme="dark"] .bg-light {
    background-color: var(--bs-gray-200) !important;
    color: var(--bs-dark) !important;
}

/* Animation for icons */
.feather {
    width: 1rem;
    height: 1rem;
    vertical-align: text-top;
}

/* Utility classes */
.text-moon-primary {
    color: var(--moon-primary) !important;
}

.bg-moon-primary {
    background-color: var(--moon-primary) !important;
}

/* Code styling */
code {
    font-size: 0.875rem;
    padding: 0.2rem 0.4rem;
    background-color: var(--bs-gray-100);
    border-radius: 0.25rem;
}

[data-bs-theme="dark"] code {
    background-color: var(--bs-gray-800);
    color: var(--bs-gray-200);
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--bs-gray-200);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--bs-gray-400);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}

[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-track {
    background: var(--bs-gray-700);
}

[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-thumb {
    background: var(--bs-gray-600);
}

[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}
