/* File: static/css/console.css */

/* FRNChat Console Custom Styles */

:root {
    --frn-primary: #0d6efd;
    --frn-secondary: #6c757d;
    --frn-success: #198754;
    --frn-info: #0dcaf0;
    --frn-warning: #ffc107;
    --frn-danger: #dc3545;
    --frn-purple: #6f42c1;  /* Purple for forced MCP function calls */
    --frn-light: #f8f9fa;
    --frn-dark: #212529;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Login Page Styles */
.min-vh-100 {
    min-height: 100vh;
}

.card {
    border: none;
    border-radius: 15px;
}

.card.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075),
                0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Dashboard Cards */
.card-body {
    border-radius: 15px;
}

.bg-primary {
    background: linear-gradient(135deg, var(--frn-primary) 0%, #0b5ed7 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--frn-success) 0%, #157347 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, var(--frn-info) 0%, #0aa2c0 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--frn-warning) 0%, #ffca2c 100%) !important;
}

/* Stats Cards Animation */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4),
                0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* List Group Enhancements */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Badge Enhancements */
.badge {
    font-size: 0.85em;
    padding: 0.5em 0.75em;
}

.badge.rounded-pill {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.6);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Form Enhancements */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .h5 {
        font-size: 1.1rem;
    }

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

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

/* Success States */
.text-success {
    color: var(--frn-success) !important;
}

.text-info {
    color: var(--frn-info) !important;
}

.text-warning {
    color: var(--frn-warning) !important;
}

.text-danger {
    color: var(--frn-danger) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Processing Log Styles */
.log-entry {
    background-color: #f8f9fa;
    border-left: 3px solid #dee2e6;
    transition: all 0.2s ease;
}

.log-entry:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bg-light-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-light-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-light-purple {
    background-color: rgba(111, 66, 193, 0.1) !important;
}

.processing-logs .border-info {
    border-color: #0dcaf0 !important;
}

.processing-logs .border-success {
    border-color: #198754 !important;
}

.processing-logs .border-warning {
    border-color: #ffc107 !important;
}

.processing-logs .border-danger {
    border-color: #dc3545 !important;
}

.processing-logs .border-secondary {
    border-color: #6c757d !important;
}

.processing-logs .border-purple {
    border-color: #6f42c1 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bs-body-bg: #1a1a1a;
        --bs-body-color: #ffffff;
    }

    .log-entry {
        background-color: #2d2d2d;
        border-left-color: #495057;
    }

    .log-entry:hover {
        background-color: #3d3d3d;
    }

    .bg-light-info {
        background-color: rgba(13, 202, 240, 0.2) !important;
    }

    .bg-light-success {
        background-color: rgba(25, 135, 84, 0.2) !important;
    }

    .bg-light-warning {
        background-color: rgba(255, 193, 7, 0.2) !important;
    }

    .bg-light-danger {
        background-color: rgba(220, 53, 69, 0.2) !important;
    }

    .bg-light-purple {
        background-color: rgba(111, 66, 193, 0.2) !important;
    }
}
