/* ChatGPT-style theme for Agentic AI Chatbot */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Compact Modal Styles */
.modal-compact .modal-dialog {
    max-width: 90vw;
    margin: 1rem auto;
}

.modal-compact .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-compact .modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.modal-compact .modal-header h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.modal-compact .modal-body {
    padding: 0.75rem 1rem;
    overflow-y: auto;
    flex: 1;
    font-size: 0.9rem;
}

.modal-compact .modal-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
}

/* Compact form elements in modals */
.modal-compact .form-group,
.modal-compact .mb-3 {
    margin-bottom: 0.75rem;
}

.modal-compact .form-label {
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.modal-compact .form-control,
.modal-compact .form-select {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

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

/* Compact tables in modals */
.modal-compact table {
    font-size: 0.85rem;
}

.modal-compact .table td,
.modal-compact .table th {
    padding: 0.5rem;
    vertical-align: top;
}

/* Compact lists in modals */
.modal-compact .list-group-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Compact cards in modals */
.modal-compact .card {
    margin-bottom: 0.75rem;
}

.modal-compact .card-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-compact .card-body {
    padding: 0.75rem;
    font-size: 0.875rem;
}

/* Demographic and Training specific compact styles */
.demographics-modal .modal-dialog,
.training-modal .modal-dialog {
    max-width: 95vw;
}

.demographics-modal .modal-body,
.training-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.demographics-modal .row,
.training-modal .row {
    margin-bottom: 0.5rem;
}

.demographics-modal .col-form-label,
.training-modal .col-form-label {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* Responsive compact modals */
@media (max-width: 768px) {
    .modal-compact .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .modal-compact .modal-body {
        max-height: 75vh;
    }
}

/* ChatGPT-style sidebar with collapsible functionality */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
    background-color: #f7f7f8;
    border-right: 1px solid #e5e5e5;
    width: 16.66667%;
    box-shadow: none;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Collapsed sidebar state */
.sidebar.collapsed {
    width: 60px;
    padding: 20px 0;
}

/* Sidebar header with toggle button */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 16px 16px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar.collapsed .sidebar-header {
    padding: 0 0 16px 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.sidebar-logo {
    text-align: center;
    transition: all 0.3s ease;
}

/* Collapsed header with mini logo */
.sidebar-collapsed-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.collapsed-logo {
    margin-bottom: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.collapsed-logo:hover {
    background-color: #ececf1;
}

.mini-logo {
    width: 28px;
    height: 28px;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-logo:hover {
    transform: scale(1.05);
}

.sidebar-logo .logo {
    max-width: 90px;
    max-height: 45px;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-logo .logo:hover {
    transform: scale(1.05);
}

/* Toggle button */
.sidebar-toggle {
    background: none;
    border: none;
    color: #565869;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.sidebar-toggle:hover {
    background-color: #ececf1;
    color: #202123;
}

.sidebar.collapsed .sidebar-toggle {
    margin-left: 0;
    margin-top: 0;
}

/* Show expand indicator when collapsed */
.sidebar.collapsed .sidebar-toggle i {
    font-size: 12px;
}

.sidebar .nav-link {
    color: #565869;
    padding: 12px 16px;
    margin: 0;
    border-radius: 0;
    transition: all 0.15s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-link {
    padding: 12px 0;
    justify-content: center;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar .nav-link:hover {
    color: #202123;
    background-color: #ececf1;
    transform: none;
}

.sidebar .nav-link.active,
.sidebar .nav-link:focus {
    color: #202123;
    background-color: #ececf1;
    border-left-color: #10a37f;
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 16px;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

/* Navigation section headers */
.nav-section-header {
    margin-top: 20px;
    margin-bottom: 8px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-section-header {
    display: none;
}

.nav-section-header:first-child {
    margin-top: 0;
}

.nav-section-title {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
    padding-bottom: 6px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 8px;
    white-space: nowrap;
    text-decoration: none;
    display: block;
}

.nav-section-title.clickable {
    color: #6b7280;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    border-bottom: none;
    margin-bottom: 8px;
}

.nav-section-title.clickable:hover {
    color: #10a37f;
    background-color: rgba(16, 163, 127, 0.1);
    text-decoration: none;
    transform: translateX(2px);
}

.nav-section-title.clickable i {
    transition: all 0.2s ease;
}

.nav-section-title.clickable:hover i {
    color: #10a37f;
}

/* Main content area */
.main-content {
    margin-left: 16.66667%;
    min-height: 100vh;
    background-color: #ffffff;
    transition: margin-left 0.3s ease;
    padding: 0 24px;
    width: calc(100% - 16.66667%);
}

/* Main content when sidebar is collapsed */
body.sidebar-collapsed .main-content {
    margin-left: 60px;
    width: calc(100% - 60px);
}

.main-header {
    padding-top: 18px;
    padding-bottom: 16px;
    margin-bottom: 2rem;
}

/* Chat interface styles - new layout */
.chat-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px); /* Account for header and padding */
    position: relative;
}

.chat-messages-fullscreen {
    flex: 1;
    overflow-y: auto;
    background-color: #ffffff;
    border: none;
    padding: 20px;
    border-radius: 0;
    padding-bottom: 120px; /* Space for fixed input */
}

.chat-input-fixed {
    position: fixed;
    bottom: 0;
    left: 16.66667%; /* Account for sidebar width */
    right: 0;
    background-color: #ffffff;
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    z-index: 100;
    transition: left 0.3s ease;
}

/* Chat input when sidebar is collapsed */
body.sidebar-collapsed .chat-input-fixed {
    left: 60px;
}

/* Remove old chat-messages class styling */
.chat-messages {
    height: 500px;
    overflow-y: auto;
    background-color: #ffffff;
    border: none;
    padding: 20px;
    border-radius: 0;
}

/* ChatGPT-style message bubbles - COMPACT VERSION */
.message-bubble {
    margin-bottom: 8px;
    border: none !important;
    border-radius: 8px;
    padding: 8px 12px;
    animation: fadeIn 0.3s ease-in;
    border-left: none !important;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.35;
}

/* User messages - right aligned */
.message-bubble.user-message {
    margin-left: auto;
    margin-right: 0;
}

/* AI messages - left aligned */
.message-bubble.ai-message {
    margin-left: 0;
    margin-right: auto;
}

/* User messages - light grey, right aligned */
.alert-primary {
    background-color: #f7f7f8 !important;
    color: #202123 !important;
    border: none !important;
}

/* AI messages - white, left aligned */
.alert-success,
.alert-warning {
    background-color: #ffffff !important;
    color: #202123 !important;
    border: none !important;
}

/* Error messages */
.alert-danger {
    background-color: #fff5f5 !important;
    color: #d73a49 !important;
    border: 1px solid #fecaca !important;
}

/* Info messages */
.alert-info {
    background-color: #f0f9ff !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    color: #8e8ea0;
    font-size: 14px;
    padding-left: 20px;
}

/* Remove card styling - no longer using cards for chat */
.chat-container {
    background-color: #ffffff;
    border-radius: 0;
    border: none;
}

.chat-body {
    padding: 0;
}

/* Input styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: all 0.15s ease;
    padding: 12px 16px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
    outline: none;
}

/* Button styling - ChatGPT green theme */
.btn-primary {
    background-color: #10a37f;
    border-color: #10a37f;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background-color: #0d8f6c;
    border-color: #0d8f6c;
    transform: none;
    box-shadow: none;
}

.btn-outline-secondary {
    border-color: #d1d5db;
    color: #6b7280;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
}

.btn-outline-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    transform: none;
    box-shadow: none;
}

/* Header user dropdown styling - for admin pages (base template) */
.main-content #userDropdown,
body:not(.homepage) #userDropdown {
    border-color: #d1d5db !important;
    color: #6b7280 !important;
    background: transparent !important;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

.main-content #userDropdown:hover,
body:not(.homepage) #userDropdown:hover {
    background-color: #f9fafb !important;
    border-color: #10a37f !important;
    color: #10a37f !important;
    transform: none;
    box-shadow: none;
}

.main-content #userDropdown:focus,
body:not(.homepage) #userDropdown:focus {
    border-color: #10a37f !important;
    color: #10a37f !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 163, 127, 0.25);
}

/* Homepage user dropdown styling - white text for dark background */
.nav-header #userDropdown {
    border-color: transparent;
    color: white !important;
    background: transparent;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

.nav-header #userDropdown:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #10a37f;
    color: #10a37f !important;
    transform: none;
    box-shadow: none;
}

.nav-header #userDropdown:focus {
    border-color: #10a37f;
    color: #10a37f !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 163, 127, 0.25);
}

.btn-outline-primary {
    border-color: #10a37f;
    color: #10a37f;
    border-radius: 6px;
}

.btn-outline-primary:hover {
    background-color: #10a37f;
    border-color: #10a37f;
    transform: none;
    box-shadow: none;
}

/* Remove transforms and shadows from buttons */
.btn {
    border-radius: 6px;
    transition: all 0.15s ease;
    font-weight: 500;
}

.btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Table styles - cleaner */
.table {
    margin-bottom: 0;
    font-size: 14px;
}

/* Compact tables in message bubbles */
.message-bubble table {
    font-size: 13px;
    margin: 4px 0;
}

.message-bubble table td, 
.message-bubble table th {
    padding: 4px 8px;
    line-height: 1.2;
}

.table thead th {
    border-top: none;
    font-weight: 500;
    color: #374151;
    background-color: #f9fafb;
}

.table td {
    vertical-align: middle;
    border-color: #e5e5e5;
}

.question-text, .response-text {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge styles */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
    border-radius: 4px;
    font-weight: 500;
}

.bg-warning {
    background-color: #fbbf24 !important;
}

/* Code blocks - ChatGPT style - COMPACT */
code {
    background-color: #f6f8fa;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #24292f;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

pre {
    background-color: #f6f8fa !important;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 8px 12px;
    color: #24292f;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    margin: 4px 0;
}

/* Compact code blocks in messages */
.message-bubble pre {
    margin: 4px 0;
}

/* Blockquotes - compact style */
.message-bubble blockquote {
    margin: 4px 0;
    padding: 4px 0 4px 12px;
    border-left: 3px solid #e1e4e8;
    color: #6a737d;
    font-size: 0.95em;
}

/* Horizontal rules - compact */
.message-bubble hr {
    margin: 6px 0;
    border: 0;
    border-top: 1px solid #e1e4e8;
}

/* Header styles for formatted content */
h1, h2, h3, h4, h5, h6 {
    color: #202123;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.25;
}

/* Compact formatting for chat messages - MORE AGGRESSIVE */
.message-bubble h1, .message-bubble h2, .message-bubble h3, .message-bubble h4, .message-bubble h5, .message-bubble h6 {
    margin-top: 6px;
    margin-bottom: 3px;
    line-height: 1.15;
}

.message-bubble h1:first-child, .message-bubble h2:first-child, .message-bubble h3:first-child, .message-bubble h4:first-child {
    margin-top: 0;
}

.message-bubble p {
    margin-bottom: 2px;
    line-height: 1.3;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble ol, .message-bubble ul {
    margin-top: 2px;
    margin-bottom: 4px;
    padding-left: 1rem;
}

.message-bubble li {
    margin-bottom: 1px;
    line-height: 1.25;
}

.message-bubble li:last-child {
    margin-bottom: 0;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Smaller headers in message bubbles for compactness */
.message-bubble h1 { font-size: 1.3rem; }
.message-bubble h2 { font-size: 1.15rem; }
.message-bubble h3 { font-size: 1.05rem; }
.message-bubble h4 { font-size: 0.95rem; }

/* List styles */
ul, ol {
    padding-left: 20px;
    margin: 8px 0;
}

li {
    margin-bottom: 2px;
    line-height: 1.4;
}

/* Modal enhancements */
.modal-content {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    background-color: #f7f7f8;
    color: #202123;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e5e5e5;
}

/* Scrollbar customization - ChatGPT style */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* History page specific styles */
.history-item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.conversation-pair .alert {
    margin-bottom: 12px;
}

/* Mobile overlay for sidebar */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px; /* Slightly wider for better touch */
        z-index: 1050; /* Higher z-index for mobile overlay */
        position: fixed;
        height: 100vh;
        left: 0;
        top: 0;
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 0 16px; /* Reduced padding for mobile */
    }
    
    body.sidebar-collapsed .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .question-text, .response-text {
        max-width: 150px; /* Shorter for small screens */
    }
    
    .chat-messages-fullscreen {
        padding: 12px; /* Reduced padding */
        padding-bottom: 140px; /* More space for mobile keyboard */
    }
    
    .chat-input-fixed {
        left: 0; /* No sidebar on mobile */
        padding: 16px; /* Consistent padding */
    }
    
    body.sidebar-collapsed .chat-input-fixed {
        left: 0;
    }
    
    .chat-layout {
        height: calc(100vh - 80px); /* Better mobile height */
    }
    
    /* Mobile toggle button - ensure visibility */
    .sidebar-toggle {
        display: block !important;
        position: relative;
        z-index: 1051;
        background-color: #f7f7f8;
        border: 1px solid #e5e5e5;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile header with toggle button */
    .main-header {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .main-header .sidebar-toggle {
        order: -1;
        margin-right: auto;
    }
    
    /* Better mobile form controls */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px; /* Larger touch targets */
    }
    
    /* Mobile button improvements */
    .btn {
        min-height: 44px; /* Apple's recommended touch target */
        font-size: 16px;
    }
    
    /* Mobile message bubbles */
    .message-bubble {
        max-width: 95%; /* Use more screen real estate */
        font-size: 16px; /* Better readability */
    }
    
    /* Mobile table improvements */
    .table-responsive {
        font-size: 14px;
    }
    
    /* Mobile modal adjustments */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    /* Mobile card spacing */
    .card {
        margin-bottom: 16px;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar {
        width: 220px; /* Narrower sidebar for tablets */
    }
    
    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
        padding: 0 20px;
    }
    
    .chat-input-fixed {
        left: 220px;
    }
    
    body.sidebar-collapsed .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }
    
    body.sidebar-collapsed .chat-input-fixed {
        left: 60px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.5rem; /* Smaller header text */
    }
    
    .sidebar {
        width: 260px; /* Slightly narrower for small phones */
    }
    
    .chat-input-fixed {
        padding: 12px; /* Tighter padding on small screens */
    }
    
    .nav-link {
        padding: 16px 20px; /* Larger touch targets in sidebar */
    }
    
    .btn {
        min-height: 48px; /* Even larger touch targets */
        padding: 12px 20px;
    }
    
    .message-bubble {
        font-size: 15px; /* Slightly smaller on very small screens */
        padding: 10px 14px;
    }
    
    .form-control {
        padding: 16px; /* Larger input padding */
    }
}

/* Mobile landscape orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .chat-layout {
        height: calc(100vh - 60px); /* Adjust for landscape */
    }
    
    .chat-messages-fullscreen {
        padding-bottom: 100px; /* Less space needed in landscape */
    }
    
    .main-header {
        padding-top: 12px;
        padding-bottom: 12px;
        margin-bottom: 1rem;
    }
}

/* Touch-specific improvements */
@media (pointer: coarse) {
    .nav-link {
        padding: 16px 20px; /* Larger touch areas */
    }
    
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .sidebar-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .main-content,
    .chat-input-fixed,
    .message-bubble,
    .btn {
        transition: none !important;
        animation: none !important;
    }
    
    .loading-spinner {
        animation: none !important;
    }
}

/* Footer logo styling */
footer img[src*="Logo2.svg"] {
    transition: all 0.3s ease;
    cursor: pointer;
}

footer img[src*="Logo2.svg"]:hover {
    transform: scale(1.05);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Avatar Creation Styles */
.avatar-container {
    padding: 0;
}

.upload-section {
    margin-bottom: 1rem;
}

.upload-section .form-control {
    border: 2px dashed #d1d5db;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.upload-section .form-control:hover {
    border-color: #10a37f;
}

.upload-section .form-control:focus {
    border-color: #10a37f;
    border-style: solid;
}

.status-indicator {
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    color: #0369a1;
    font-size: 14px;
}

.script-editor {
    min-height: 300px;
    font-family: 'Inter', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.script-controls {
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
}

.preview-container {
    min-height: 400px;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
}

.preview-container video,
.preview-container audio {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: #10a37f;
    transition: width 0.3s ease;
}

/* Avatar profile status */
.alert-info {
    background-color: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

.alert-info h6 {
    color: #0369a1;
    margin-bottom: 12px;
}

/* File upload enhancements */
.form-control::-webkit-file-upload-button {
    background-color: #10a37f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    font-size: 14px;
}

.form-control::-webkit-file-upload-button:hover {
    background-color: #0d8f6c;
}

/* Card enhancements for avatar page */
.avatar-container .card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.avatar-container .card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.avatar-container .card-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e5e5;
}

.avatar-container .card-header h5 {
    color: #374151;
    font-weight: 600;
}

/* Responsive adjustments for avatar page */
@media (max-width: 767.98px) {
    .avatar-container .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .script-editor {
        min-height: 200px;
    }
    
    .preview-container {
        min-height: 300px;
    }
}

/* Button variations for avatar actions */
.btn-success {
    background-color: #10a37f;
    border-color: #10a37f;
}

.btn-success:hover {
    background-color: #0d8f6c;
    border-color: #0d8f6c;
}

.btn-outline-primary {
    color: #10a37f;
    border-color: #10a37f;
}

.btn-outline-primary:hover {
    background-color: #10a37f;
    border-color: #10a37f;
    color: white;
}

.btn-outline-secondary {
    color: #6b7280;
    border-color: #d1d5db;
}

.btn-outline-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* Agent Management Styles */
.agent-card {
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.agent-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.agent-card .card-body {
    padding: 1rem;
}

.agent-card .card-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 0.75rem 1rem;
}

.agent-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.agent-card .badge.bg-success {
    background-color: #28a745 !important;
}

.agent-card .badge.bg-secondary {
    background-color: #6c757d !important;
}

.agent-card .badge.bg-info {
    background-color: #17a2b8 !important;
}

.agent-card ul {
    margin-bottom: 0.5rem;
}

.agent-card ul li {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Modal styling improvements for agent editing */
.modal-lg {
    max-width: 900px;
}

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

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Section headers in modal */
.modal-body h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-body h6.text-primary {
    border-bottom-color: #007bff;
}

.modal-body h6.text-success {
    border-bottom-color: #28a745;
}

.modal-body h6.text-warning {
    border-bottom-color: #ffc107;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background-color: #28a745;
}

.status-indicator.offline {
    background-color: #dc3545;
}

.status-indicator.disabled {
    background-color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .agent-card {
        margin-bottom: 1rem;
    }
    
    .modal-lg {
        max-width: 95%;
    }
}

/* Animation for loading states */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Extra compact mode - when body has .compact-mode class */
body.compact-mode .message-bubble {
    padding: 6px 10px;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.25;
}

body.compact-mode .message-bubble h1 { font-size: 1.1rem; }
body.compact-mode .message-bubble h2 { font-size: 1rem; }
body.compact-mode .message-bubble h3 { font-size: 0.95rem; }
body.compact-mode .message-bubble h4 { font-size: 0.9rem; }

body.compact-mode .message-bubble p {
    margin-bottom: 1px;
    line-height: 1.2;
}

body.compact-mode .message-bubble ul,
body.compact-mode .message-bubble ol {
    margin: 1px 0 2px 0;
    padding-left: 0.8rem;
}

body.compact-mode .message-bubble li {
    margin-bottom: 0;
    line-height: 1.15;
}

body.compact-mode .message-bubble pre {
    padding: 4px 8px;
    font-size: 12px;
    margin: 2px 0;
}

body.compact-mode .message-bubble code {
    font-size: 0.8em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced button styling */
.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Form enhancements */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* Alert enhancements */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

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

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

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

/* Administrator Agent Card */
.administrator-card {
    background: linear-gradient(135deg, #10a37f 0%, #0d8768 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.administrator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
}

.administrator-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.administrator-card .card-body {
    padding: 1.5rem;
}

.administrator-card .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.administrator-card .routing-logic {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.administrator-card .routing-step {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.administrator-card .routing-step:last-child {
    margin-bottom: 0;
}

.administrator-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.administrator-card .managed-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.administrator-card .managed-agent-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.administrator-card .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.administrator-card .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

/* Orchestrator Agent Card */
.orchestrator-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.orchestrator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9ff3 0%, #f368e0 100%);
}

.orchestrator-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.orchestrator-card .card-body {
    padding: 1.5rem;
}

.orchestrator-card .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.orchestrator-card .workflow-capabilities {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.orchestrator-card .workflow-step {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    font-size: 0.875rem;
}

.orchestrator-card .workflow-step:last-child {
    margin-bottom: 0;
}

.orchestrator-card .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.orchestrator-card .orchestration-rules {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.orchestrator-card .rule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    font-size: 0.875rem;
}

.orchestrator-card .rule-item:last-child {
    margin-bottom: 0;
}

.orchestrator-card .rule-name {
    font-weight: 500;
    opacity: 0.9;
}

.orchestrator-card .rule-flow {
    font-size: 0.75rem;
    opacity: 0.8;
}

.orchestrator-card .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.orchestrator-card .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.orchestrator-card.disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.orchestrator-card.disabled::before {
    background: linear-gradient(90deg, #bdc3c7 0%, #95a5a6 100%);
}

/* Custom Login Button Styling */
.btn-outline-primary {
    background: white !important;
    color: #374151 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 25px !important;
    transition: all 0.2s ease !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-color: #3b82f6 !important;
    color: white !important;
    transform: translateY(-1px);
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

/* Admin expandable section styles */
.admin-expand-toggle {
    margin-bottom: 0;
}

.admin-expand-btn {
    color: #6c757d !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-expand-btn:hover {
    color: #495057 !important;
    background-color: rgba(0, 0, 0, 0.05);
}

.admin-expand-icon {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
    margin-right: 8px;
}

.admin-expand-icon.fa-chevron-down {
    transform: rotate(0deg);
}

.admin-expand-icon.fa-chevron-right {
    transform: rotate(0deg);
}

.admin-expandable-section {
    transition: all 0.3s ease;
    overflow: hidden;
}

.admin-expandable-section .nav-item {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
    position: relative;
}

.admin-expandable-section .nav-item::before {
    display: none;
}

.admin-expandable-section .nav-link {
    padding-left: 16px;
    color: #6c757d;
    font-size: 0.85rem;
    position: relative;
}

.admin-expandable-section .nav-link i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.admin-expandable-section .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Collapsed sidebar admin expand styles */
.sidebar.collapsed .admin-expand-toggle {
    display: none;
}

.sidebar.collapsed .admin-expandable-section {
    display: none !important;
}

/* AI Technologies Page - Modern Design */

/* Hero Section */
.ai-hero-section {
    position: relative;
    padding: 20px 0 25px;
    background: linear-gradient(135deg, #10a37f 0%, #0d8768 100%);
    overflow: hidden;
}

.ai-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 163, 127, 0.2) 0%, transparent 50%);
}

.ai-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.ai-hero-main {
    flex: 1;
    text-align: left;
}

.ai-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out;
}

.ai-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.ai-hero-description {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.9;
    max-width: 450px;
    margin: 0 auto 20px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.ai-hero-stats {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.ai-stat-item {
    text-align: center;
}

.ai-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Main Content */
.ai-main-content {
    padding: 50px 0;
    background: #fafbfc;
}

.ai-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.ai-section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Technologies Grid */
.ai-technologies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tool Cards */
.ai-tool-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-tool-card:not(.disabled):hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #10a37f;
}

.ai-tool-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8fafc;
}

.ai-tool-card.admin-tool {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-color: #f59e0b;
}

.ai-tool-card.admin-tool:hover {
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.25);
}

/* Card Header */
.ai-card-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ai-tool-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10a37f 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 163, 127, 0.3);
}

.ai-tool-icon.admin-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.ai-tool-card.disabled .ai-tool-icon {
    background: #9ca3af;
    box-shadow: none;
}

.ai-tool-card:hover .ai-tool-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 163, 127, 0.4);
}

/* Card Badge */
.ai-card-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-card-badge.available {
    background: #dcfce7;
    color: #16a34a;
}

.ai-card-badge.locked {
    background: #fef2f2;
    color: #dc2626;
}

.ai-card-badge.admin {
    background: #fff7ed;
    color: #ea580c;
}

/* Card Content */
.ai-card-content {
    padding: 16px 20px;
    flex: 1;
}

.ai-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.ai-card-description {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.ai-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-feature-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.ai-feature-tag.admin {
    background: #fef3c7;
    color: #92400e;
}

/* Card Footer */
.ai-card-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
}

.ai-card-footer i {
    color: #10a37f;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ai-tool-card:hover .ai-card-footer i {
    transform: translateX(4px);
}

/* CTA Section */
.ai-cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 50px auto 0;
    max-width: 700px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(16, 163, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.ai-cta-content {
    position: relative;
    z-index: 2;
}

.ai-cta-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10a37f 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
    box-shadow: 0 15px 30px rgba(16, 163, 127, 0.3);
}

.ai-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.ai-cta-description {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 24px;
}

.ai-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ai-btn-primary, .ai-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ai-btn-primary {
    background: linear-gradient(135deg, #10a37f 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 163, 127, 0.3);
}

.ai-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 163, 127, 0.4);
    color: white;
    text-decoration: none;
}

.ai-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .ai-technologies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .ai-hero-section {
        padding: 25px 0 30px;
    }
    
    .ai-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .ai-hero-main {
        text-align: center;
    }
    
    .ai-hero-title {
        font-size: 1.8rem;
    }
    
    .ai-hero-description {
        font-size: 0.9rem;
    }
    
    .ai-hero-stats {
        justify-content: center;
        gap: 16px;
    }
    
    .ai-main-content {
        padding: 40px 0;
    }
    
    .ai-section-header {
        margin-bottom: 30px;
    }
    
    .ai-technologies-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .ai-card-header,
    .ai-card-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .ai-card-footer {
        padding: 0 16px 16px 16px;
    }
    
    .ai-cta-section {
        padding: 32px 24px;
        margin: 40px 16px 0;
    }
    
    .ai-cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ai-hero-section {
        padding: 15px 0 20px;
    }
    
    .ai-hero-content {
        gap: 15px;
    }
    
    .ai-hero-title {
        font-size: 1.5rem;
    }
    
    .ai-hero-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    
    .ai-hero-stats {
        gap: 12px;
    }
    
    .ai-stat-number {
        font-size: 1.3rem;
    }
    
    .ai-stat-label {
        font-size: 0.75rem;
    }
    
    .ai-section-title {
        font-size: 1.6rem;
    }
    
    .ai-tool-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .ai-card-title {
        font-size: 1.1rem;
    }
    
    .ai-card-description {
        font-size: 0.85rem;
    }
}

/* FINAL OVERRIDE: User dropdown styling - highest specificity */
.main-content #userDropdown.btn.btn-outline-secondary.dropdown-toggle,
.main-content #userDropdown.btn-outline-secondary,
.main-content #userDropdown,
body:not(.homepage) #userDropdown.btn.btn-outline-secondary.dropdown-toggle,
body:not(.homepage) #userDropdown.btn-outline-secondary,
body:not(.homepage) #userDropdown {
    border-color: #d1d5db !important;
    color: #6b7280 !important;
    background: transparent !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

.main-content #userDropdown.btn.btn-outline-secondary.dropdown-toggle:hover,
.main-content #userDropdown.btn-outline-secondary:hover,
.main-content #userDropdown:hover,
body:not(.homepage) #userDropdown.btn.btn-outline-secondary.dropdown-toggle:hover,
body:not(.homepage) #userDropdown.btn-outline-secondary:hover,
body:not(.homepage) #userDropdown:hover {
    background-color: #f9fafb !important;
    border-color: #10a37f !important;
    color: #10a37f !important;
    transform: none !important;
    box-shadow: none !important;
}

.main-content #userDropdown.btn.btn-outline-secondary.dropdown-toggle:focus,
.main-content #userDropdown.btn-outline-secondary:focus,
.main-content #userDropdown:focus,
body:not(.homepage) #userDropdown.btn.btn-outline-secondary.dropdown-toggle:focus,
body:not(.homepage) #userDropdown.btn-outline-secondary:focus,
body:not(.homepage) #userDropdown:focus {
    border-color: #10a37f !important;
    color: #10a37f !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 163, 127, 0.25) !important;
}