/* Custom styles for VS Lex */

/* Base styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

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

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link i {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

/* Card enhancements */
.card {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card-header {
    background-color: var(--bs-secondary-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.card-title i {
    margin-right: 0.5rem;
}

/* Dashboard statistics cards */
.dashboard-stat {
    text-align: center;
    padding: 1.5rem;
}

.dashboard-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Protocol-specific styling */
.protocol-card {
    transition: transform 0.2s ease-in-out;
}

.protocol-card:hover {
    transform: translateY(-2px);
}

.protocol-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Support logging form */
.support-form {
    max-width: 800px;
}

.support-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-text {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

/* Lex session interface */
.lex-interface {
    background-color: var(--bs-secondary-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.lex-response {
    background-color: var(--bs-light-bg);
    border-left: 4px solid var(--bs-primary);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

.lex-command {
    font-family: 'Courier New', monospace;
    background-color: var(--bs-secondary-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

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

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

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

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: var(--bs-secondary-bg);
}

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

/* Button enhancements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn i {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

.btn-sm i {
    margin-right: 0.25rem;
    width: 14px;
    height: 14px;
}

/* Modal enhancements */
.modal-header {
    border-bottom: 1px solid var(--bs-border-color);
}

.modal-footer {
    border-top: 1px solid var(--bs-border-color);
}

/* Alert enhancements */
.alert {
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert i {
    margin-right: 0.5rem;
}

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

.loading::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--bs-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .dashboard-stat h3 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem;
        margin-bottom: 0.25rem;
    }
}

/* Protocol field styling */
.protocol-field {
    background-color: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.protocol-field h6 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

/* Session token styling */
.session-token {
    font-family: 'Courier New', monospace;
    background-color: var(--bs-secondary-bg);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* Utility classes */
.text-small {
    font-size: 0.875rem;
}

.text-tiny {
    font-size: 0.75rem;
}

.border-dashed {
    border-style: dashed !important;
}

.cursor-pointer {
    cursor: pointer;
}

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

textarea::-webkit-scrollbar-track {
    background: var(--bs-secondary-bg);
}

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

textarea::-webkit-scrollbar-thumb:hover {
    background: var(--bs-secondary);
}

/* Focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Animation for cards */
.card {
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .modal,
    footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* Chat Interface Dark Theme Styling */
.chat-messages {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.message {
    color: var(--bs-body-color);
}

.message-content {
    color: var(--bs-body-color);
    font-weight: 400;
}

.lex-message {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border-left: 4px solid var(--bs-primary);
}

.user-message {
    background-color: rgba(25, 135, 84, 0.15);
    color: var(--bs-body-color);
    border-left: 4px solid var(--bs-success);
}

.message-time {
    color: var(--bs-secondary-color);
}
