/* Estilos generales */ body { background-color: #1a1a1a; font-family: 'Segoe UI', Arial, sans-serif; color: #e0e0e0; } .container { max-width: 1200px; margin: 0 auto; padding-top: 20px; } /* Estilos de la tarjeta */ .card { background-color: #2d2d2d; border-radius: 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); border: 1px solid #3d3d3d; } .card-header { background-color: #363636; border-radius: 15px 15px 0 0; padding: 1rem; border-bottom: 1px solid #3d3d3d; } /* Estilos de las pestaƱas */ .nav-tabs { border-bottom: 1px solid #3d3d3d; padding: 10px 10px 0; background-color: #2d2d2d; border-radius: 10px 10px 0 0; } .nav-tabs .nav-link { color: #a0a0a0; padding: 0.8rem 1.5rem; margin-right: 0.5rem; border-radius: 8px 8px 0 0; transition: all 0.3s ease; border: 1px solid transparent; } .nav-tabs .nav-link:hover { background-color: #363636; color: #fff; border-color: #3d3d3d; } .nav-tabs .nav-link.active { background-color: #363636; color: #fff; border-color: #3d3d3d; border-bottom-color: transparent; } /* Estilos del chat */ .chat-container { max-width: 800px; margin: 20px auto; padding: 20px; background-color: #2d2d2d; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); display: flex; gap: 20px; } .chat-main { flex: 1; display: flex; flex-direction: column; } #chatBox { height: 400px; overflow-y: auto; padding: 20px; border: 1px solid #404040; border-radius: 5px; margin-bottom: 20px; background-color: #222222; } .message { margin: 10px 0; padding: 12px; border-radius: 10px; max-width: 80%; position: relative; animation: fadeIn 0.3s ease-in; display: flex; align-items: flex-start; } .message-icon { margin-right: 8px; font-size: 1.2em; } .message-text { word-wrap: break-word; flex: 1; } .user-message { background-color: #0056b3; color: #ffffff; margin-left: auto; flex-direction: row-reverse; } .user-message .message-icon { margin-right: 0; margin-left: 8px; } .bot-message { background-color: #404040; color: #e0e0e0; margin-right: auto; } /* Control Panel */ .control-panel { background-color: #333333; padding: 15px; border-radius: 5px; margin-bottom: 20px; border: 1px solid #404040; } .status-label { font-size: 0.9em; color: #b0b0b0; margin-top: 10px; text-align: center; font-style: normal; padding: 8px; background-color: transparent; border: none; transition: all 0.3s ease; } .status-label.error { color: #ff4444; } .status-label.success { color: #00c851; } .recording-button { transition: all 0.3s ease; width: 50px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center; position: relative; border-radius: 0 5px 5px 0; background-color: #404040; border-color: #505050; } .recording-button.active { background-color: #00c851; border-color: #00a844; animation: pulse 1.5s infinite; } .recording-button:hover { transform: scale(1.05); background-color: #505050; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .input-group { margin: 5px 15px; } #textInput { border-radius: 5px 0 0 5px; border: 1px solid #404040; padding: 8px 12px; background-color: #333333; color: #e0e0e0; } #textInput:focus { background-color: #404040; border-color: #505050; color: #ffffff; outline: none; box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25); } #sendText { border-radius: 0; margin-right: -1px; background-color: #0056b3; border-color: #004494; } #startRecording { border-radius: 0 5px 5px 0; background-color: #404040; border-color: #505050; } .form-select { cursor: pointer; background-color: #333333; color: #e0e0e0; border-color: #404040; } .form-select:focus { background-color: #404040; color: #ffffff; border-color: #505050; box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25); } .form-label { font-weight: 500; margin-bottom: 5px; color: #b0b0b0; } /* URL Display */ #ngrokUrl { font-size: 0.9em; background-color: #333333; border-color: #404040; color: #e0e0e0; min-width: 250px; } /* Responsive */ @media (max-width: 768px) { .chat-container { margin: 10px; padding: 15px; } .message { max-width: 90%; } .control-panel { padding: 15px; } .voice-commands { width: 100%; margin-top: 20px; } } /* Voice Commands */ .voice-commands { width: 200px; height: fit-content; margin-top: 0; padding: 15px; background-color: #333333; border-radius: 5px; border: 1px solid #404040; position: sticky; top: 20px; } .voice-commands h5 { color: #4d94ff; margin-bottom: 10px; font-size: 0.9em; text-align: center; } .command-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; } .command-pill { background-color: #404040; color: #e0e0e0; padding: 8px 12px; border-radius: 15px; font-size: 0.85em; display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; } .command-pill.stop { background-color: #dc3545; color: white; } .command-pill.greet { background-color: #198754; color: white; } .command-pill.interest { background-color: #0d6efd; color: white; } .permission-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; } .permission-modal.show { display: flex; } .permission-content { background-color: #2d2d2d; padding: 20px; border-radius: 10px; max-width: 400px; width: 90%; text-align: center; color: #e0e0e0; box-shadow: 0 4px 15px rgba(0,0,0,0.3); } .permission-content img { max-width: 200px; margin: 20px 0; } .permission-buttons { display: flex; justify-content: center; gap: 10px; margin-top: 20px; } .alert-warning { background-color: #332d1a; border: 1px solid #403d1a; color: #ffd966; padding: 10px; border-radius: 5px; margin: 10px 0; } /* Scrollbar Styling */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #333333; } ::-webkit-scrollbar-thumb { background: #505050; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #606060; } /* Button Hover States */ .btn-primary:hover { background-color: #0062cc; border-color: #005cbf; } .btn-secondary:hover { background-color: #505050; border-color: #606060; } /* Focus States */ .btn:focus, .form-control:focus { box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25); }