/* Custom Admin Panel Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
}

.table td, .table th {
    vertical-align: middle;
}

/* Conversation History */
.conversation-history {
    max-height: 400px;
    overflow-y: auto;
}

.message {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Forms */
.form-label {
    font-weight: 500;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Statistics Cards */
.bg-primary .card-body,
.bg-success .card-body,
.bg-info .card-body,
.bg-warning .card-body {
    color: white;
}

.bg-primary .card-title,
.bg-success .card-title,
.bg-info .card-title {
    color: rgba(255,255,255,0.9);
}

.bg-warning .card-body {
    color: #212529;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Loading animation */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Image thumbnails */
img {
    border-radius: 4px;
}

/* Alert improvements */
.alert {
    border-radius: 6px;
}

/* Code blocks */
code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}
