body.admin-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
}

.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-header {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: white !important;
    font-weight: 600;
}

.admin-header .nav-link {
    font-size: 0.875rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    white-space: nowrap;
}

.admin-header .navbar-brand img {
    height: clamp(34px, 4vw, 44px);
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 1400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.client-selector {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.client-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #333;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.client-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.client-card .badge {
    font-size: 0.8rem;
}

.config-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.config-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-tabs .nav-link {
    color: #374151;
    background-color: #f3f4f6;
    border: none;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    font-weight: 600;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: #1f2937;
    background-color: #e5e7eb;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.tab-content {
    background: white;
    border-radius: 0 15px 15px 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 10px;
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.alert {
    border-radius: 10px;
    border: none;
}

.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prompt-card,
.parameter-card {
    transition: transform 0.2s;
}

.prompt-card:hover,
.parameter-card:hover {
    transform: translateY(-5px);
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.modal-lg {
    max-width: 900px;
}

.form-group {
    margin-bottom: 15px;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-configured {
    background-color: #28a745;
}

.status-not-configured {
    background-color: #dc3545;
}

.status-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.empty-state {
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}

.db-specific-config {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.oracle-config {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.sqlserver-config {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.mysql-config {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.postgresql-config {
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

.ai-config {
    display: none;
}
