/* QuasarBurst Custom Styles - Replicating docs.ag-ui.com design */

/* Import Inter font family to match original */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root variables for consistent theming */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
    --sidebar-bg: #f8f9fa;
    --sidebar-border: #e9ecef;
}

/* Global typography matching docs.ag-ui.com */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
    background-color: #ffffff;
}

/* Logo styling */
.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-size: 18px;
}

/* Navigation styling to match original */
.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: #212529 !important;
}

.nav-link {
    font-weight: 500;
    color: #6c757d !important;
    transition: color 0.15s ease-in-out;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd !important;
}

/* Sidebar styling matching docs.ag-ui.com */
.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    min-height: calc(100vh - 76px);
    padding: 0;
}

.sidebar .nav-link {
    color: #495057;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all 0.15s ease-in-out;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    border-right: 3px solid #0d6efd;
}

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Main content area */
main {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: #495057;
}

/* Button styling */
.btn {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* Card styling */
.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.alert-success {
    background-color: #d1e7dd;
    color: #0a3622;
}

.alert-primary {
    background-color: #cfe2ff;
    color: #084298;
}

/* Form styling */
.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Footer styling */
footer {
    background-color: #212529 !important;
    color: #ffffff;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

footer a:hover {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--sidebar-border);
    }
    
    main {
        padding-top: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Animation for smooth interactions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Pricing card specific styling */
.border-primary {
    border-color: #0d6efd !important;
    border-width: 2px !important;
}

.border-success {
    border-color: #198754 !important;
    border-width: 2px !important;
}

.border-warning {
    border-color: #ffc107 !important;
    border-width: 2px !important;
}

/* Icon styling */
.fa-3x {
    font-size: 3rem;
}

.fa-4x {
    font-size: 4rem;
}

/* List styling */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Text utilities */
.text-muted {
    color: var(--text-muted) !important;
}

/* Spacing utilities */
.mt-5 {
    margin-top: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Success message styling */
#successMessage {
    border-left: 4px solid #198754;
}

/* Contact form specific styling */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Pricing display styling */
.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Responsive text sizing */
@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Loading animation for form submission */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
