/* Estilos personalizados para o painel */
body {
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #1f2937;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background-color: #4f46e5;
    border-radius: 4px;
}

.loading-screen {
    position: fixed;
    inset: 0;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

#sidebar.active {
    transform: translateX(0);
}

@media (min-width: 768px) {
    #sidebar {
        transform: translateX(0);
    }
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    background-color: #1f2937;
    color: #e5e7eb;
}

.form-control:disabled {
    background-color: #374151;
    cursor: not-allowed;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn:disabled {
    background-color: #4b5563;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #4338ca;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #1f2937;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    border-radius: 0.5rem;
}

.chat-bubble {
    max-width: 75%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    word-wrap: break-word;
}

.user-bubble {
    background-color: #374151;
    align-self: flex-start;
}

.admin-bubble {
    background-color: #4f46e5;
    align-self: flex-end;
}