/* BotFactory AI Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #ffffff;
    --light-color: #1a1a1a;
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(255, 255, 255, 0.175);
}

/* Global Styles - Dark Mode Only */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #505050;
    background-color: #2d2d2d;
    color: #ffffff;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1.25rem 1.5rem;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 10;
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Navigation */
.navbar {
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

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

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    font-weight: 600;
    border-top: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

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

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-dismissible .btn-close {
    padding: 1.25rem 1.5rem;
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1.5rem;
}

/* Payment Methods */
.payment-method {
    cursor: pointer;
    display: block;
    width: 100%;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-card {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.payment-method:hover .payment-card {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.payment-method.active .payment-card {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

/* Dashboard Statistics */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Bot Status */
.bot-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-active {
    background-color: var(--success-color);
}

.status-inactive {
    background-color: var(--secondary-color);
}

/* Subscription Status */
.subscription-status {
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
    margin-top: 3rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-title {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .payment-card {
        padding: 1rem 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Dark mode styles applied as default - Always active */

/* Override body background to force dark theme */
body {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Card dark styles */
.card {
    background-color: #2d2d2d !important;
    border-color: #505050 !important;
    color: #ffffff !important;
}

/* Table dark styles */
.table {
    --bs-table-bg: #2d2d2d !important;
    color: #ffffff !important;
}

.table th {
    color: #ffffff !important;
    border-bottom-color: #505050 !important;
}

.table td {
    color: #ffffff !important;
    border-top-color: #505050 !important;
}

/* Form dark styles */
.form-control, .form-select {
    background-color: #2d2d2d !important;
    border-color: #505050 !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: #adb5bd !important;
}

.form-label {
    color: #ffffff !important;
    font-weight: 600;
}

/* Text dark styles */
.text-body {
    color: #ffffff !important;
}

.text-muted {
    color: #d1d1d1 !important;
}

.text-secondary {
    color: #e9ecef !important;
}

small, .small {
    color: #d1d1d1 !important;
}

p, span, div, label {
    color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Alert dark styles */
.alert-info {
    background-color: rgba(13, 202, 240, 0.15) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: #ffffff !important;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.15) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
    color: #ffffff !important;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: #ffffff !important;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.15) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: #ffffff !important;
}

/* Modal dark styles */
.modal-content {
    background-color: #2d2d2d !important;
    border-color: #505050 !important;
    color: #ffffff !important;
}

.modal-header, .modal-footer {
    border-color: #505050 !important;
}

.modal-title {
    color: #ffffff !important;
}

/* Navigation dark styles */
.nav-link {
    color: #ffffff !important;
}

.navbar-brand {
    color: #ffffff !important;
}

/* Button dark styles */
.btn-outline-secondary {
    color: #ffffff !important;
    border-color: #6c757d !important;
}

.btn-outline-secondary:hover {
    color: #000000 !important;
    background-color: #6c757d !important;
}

/* Additional card dark styles */
.card-header {
    background-color: #383838 !important;
    color: #ffffff !important;
    border-bottom-color: #505050 !important;
}

.card-body {
    color: #ffffff !important;
}

.card-title {
    color: #ffffff !important;
}

.card-text {
    color: #ffffff !important;
}

/* List and dropdown dark styles */
.list-group-item {
    background-color: #2d2d2d !important;
    border-color: #505050 !important;
    color: #ffffff !important;
}

.list-group-item:hover {
    background-color: #383838 !important;
    color: #ffffff !important;
}

.dropdown-menu {
    background-color: #2d2d2d !important;
    border-color: #505050 !important;
}

.dropdown-item {
    color: #ffffff !important;
}

.dropdown-item:hover {
    background-color: #383838 !important;
    color: #ffffff !important;
}

/* Badge dark styles */
.badge-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

.badge-info {
    background-color: #17a2b8 !important;
    color: #ffffff !important;
}

.badge-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

.badge-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Additional form and interface dark styles */
.form-text {
    color: #d1d1d1 !important;
}

.input-group-text {
    background-color: #383838 !important;
    border-color: #505050 !important;
    color: #ffffff !important;
}

.status-text {
    color: #ffffff !important;
}

.chat-message {
    color: #ffffff !important;
}

.bot-name {
    color: #ffffff !important;
}

.platform-info {
    color: #d1d1d1 !important;
}

/* Knowledge base dark styles */
.knowledge-item, .knowledge-file {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid #505050 !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.375rem !important;
}

.knowledge-item:hover, .knowledge-file:hover {
    background-color: #383838 !important;
}

.knowledge-item .badge {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

.knowledge-item small, .knowledge-file small {
    color: #d1d1d1 !important;
}

.knowledge-item .text-muted {
    color: #d1d1d1 !important;
}

.knowledge-item span, .knowledge-file span {
    color: #ffffff !important;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg) !important;
}

.border-radius {
    border-radius: var(--border-radius) !important;
}

/* Enhanced text contrast utilities */
.text-high-contrast {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.text-readable {
    color: #ffffff !important;
    font-weight: 500;
}

.bg-dark-improved {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Ensure critical UI elements are always visible */
.always-visible {
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Force high contrast for form elements */
.form-control-dark {
    background-color: #2d2d2d !important;
    border-color: #505050 !important;
    color: #ffffff !important;
}

.form-control-dark::placeholder {
    color: #adb5bd !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}
