/* QuantEngine Admin UI - Tabler Customization */

:root {
    --primary-color: #3f51b5;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table-vcenter tbody tr td {
    vertical-align: middle;
}

.table thead th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    color: #2c3e50;
    padding: 0.75rem;
}

.table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:hover {
    background-color: #f5f7fa;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Status indicators */
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.active {
    background-color: #28a745;
}

.status-dot.inactive {
    background-color: #dc3545;
}

.status-dot.pending {
    background-color: #ffc107;
}

/* Stats Cards */
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.stat-card-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #7a8a99;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: #d0d8e0;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #7a8a99;
    margin-bottom: 1.5rem;
}

/* Forms */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #d0d8e0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 0.2rem rgba(63, 81, 181, 0.25);
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Alert */
.alert {
    border: none;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
}

.page-link {
    color: #3f51b5;
    border: 1px solid #d0d8e0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
}

.page-link:hover {
    background-color: #3f51b5;
    color: white;
}

.page-link.active {
    background-color: #3f51b5;
    border-color: #3f51b5;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}
