/*
 * Custom application styles.
 * Bootstrap and Bootstrap Icons are loaded via CDN in the Blade layouts.
 * This file replaces the former resources/sass/app.scss (compiled by Vite).
 */

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

/* Sidebar styles */
.sidebar {
    min-height: 100vh;
    background-color: #212529;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
}

.sidebar .sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .sidebar-brand a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

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

.sidebar .nav-link i {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}

.sidebar .sidebar-heading {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 1rem 1rem 0.5rem;
    font-weight: 600;
}

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Top navbar inside main content */
.top-navbar {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1.5rem;
}

/* Card improvements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.stat-card {
    border-left: 4px solid;
}

.stat-card.border-primary { border-left-color: #0d6efd; }
.stat-card.border-success { border-left-color: #198754; }
.stat-card.border-info { border-left-color: #0dcaf0; }
.stat-card.border-warning { border-left-color: #ffc107; }
.stat-card.border-danger { border-left-color: #dc3545; }

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    max-width: 450px;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

/* Chat styles */
.chat-container {
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-message {
    max-width: 80%;
    margin-bottom: 1rem;
}

.chat-message.user-message {
    margin-left: auto;
}

.chat-message.user-message .message-bubble {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 1rem 1rem 0 1rem;
}

.chat-message.assistant-message {
    margin-right: auto;
}

.chat-message.assistant-message .message-bubble {
    background-color: #e9ecef;
    color: #212529;
    border-radius: 1rem 1rem 1rem 0;
}

.chat-message .message-bubble {
    padding: 0.75rem 1rem;
    display: inline-block;
}

.chat-message .message-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.chat-input-area {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    background-color: #fff;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -260px;
    }

    .sidebar.show {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Welcome page */
.welcome-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Performance badge */
.performance-badge {
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
}
