:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.btn-action {
    margin: 0 2px;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.badge {
    padding: 0.5em 0.75em;
    font-size: 0.875em;
}

code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    color: #e83e8c;
}

.alert {
    position: fixed;
    top: 70px;
    right: 20px;
    min-width: 300px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading {
    text-align: center;
    padding: 2rem;
}

.loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.filter-section {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn-group-action {
    display: flex;
    gap: 0.5rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.json-viewer {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.json-viewer pre {
    margin: 0;
    font-size: 0.875rem;
}

.stat-card {
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.status-active {
    color: var(--success-color);
}

.status-inactive {
    color: var(--danger-color);
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.img-thumbnail-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}
