body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sidebar {
    background-color: #f8f9fa;
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid #dee2e6;
    z-index: 1000;
}

main {
    margin-left: 250px;
    min-height: 100vh;
}

.top-row {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.content {
    padding-top: 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.nav-link.active {
    background-color: #007bff;
    color: white !important;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.btn {
    transition: all 0.2s ease;
}

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

.table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
    padding: 0.375rem 0.5rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.user-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.modal.show {
    display: block !important;
}

.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

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

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

.card {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    main {
        margin-left: 0;
    }
    
    .top-row {
        position: relative;
    }
}