Spaces:
Sleeping
Sleeping
.agent-modal-overlay { | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
background-color: rgba(0, 0, 0, 0.7); | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
z-index: 1000; | |
backdrop-filter: blur(5px); | |
} | |
.agent-form .form-group { | |
margin-bottom: 0.5rem; | |
} | |
.agent-modal-content { | |
background: rgba(20, 20, 20, 0.95); | |
backdrop-filter: blur(10px); | |
padding: 1rem 2rem; | |
border-radius: 12px; | |
width: 90%; | |
max-width: 600px; | |
border: 1px solid rgba(255, 255, 255, 0.1); | |
color: white; | |
position: relative; | |
} | |
.agent-modal-header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-bottom: 2rem; | |
} | |
.agent-modal-header h2 { | |
margin: 0; | |
font-size: 1.5rem; | |
background: linear-gradient(90deg, #fff, #999); | |
-webkit-background-clip: text; | |
background-clip: text; | |
color: transparent; | |
display: flex; | |
align-items: center; | |
gap: 1rem; | |
} | |
.close-button { | |
background: transparent; | |
border: none; | |
color: rgba(255, 255, 255, 0.6); | |
cursor: pointer; | |
padding: 0.5rem; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
border-radius: 50%; | |
transition: all 0.3s ease; | |
} | |
.close-button:hover { | |
color: white; | |
background: rgba(255, 255, 255, 0.1); | |
} | |
.agent-form { | |
display: flex; | |
flex-direction: column; | |
gap: 1rem; | |
} | |
.form-group { | |
display: flex; | |
flex-direction: column; | |
gap: 0.5rem; | |
} | |
.form-group label { | |
font-size: 0.9rem; | |
color: rgba(255, 255, 255, 0.8); | |
font-weight: 500; | |
} | |
.form-group input[type="text"], | |
.form-group textarea { | |
background: rgba(255, 255, 255, 0.05); | |
border: 1px solid rgba(255, 255, 255, 0.1); | |
border-radius: 8px; | |
padding: 0.75rem; | |
color: white; | |
font-size: 0.9rem; | |
transition: all 0.3s ease; | |
} | |
.form-group input[type="text"]:focus, | |
.form-group textarea:focus { | |
outline: none; | |
border-color: #6366f1; | |
background: rgba(255, 255, 255, 0.1); | |
} | |
/* Custom Dropdown Styles */ | |
.custom-dropdown { | |
position: relative; | |
width: 100%; | |
} | |
.dropdown-header { | |
background: rgba(255, 255, 255, 0.05); | |
border: 1px solid rgba(255, 255, 255, 0.1); | |
border-radius: 8px; | |
padding: 0.75rem; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
display: flex; | |
align-items: center; | |
justify-content: space-between; | |
} | |
.dropdown-header:hover { | |
background: rgba(255, 255, 255, 0.1); | |
border-color: rgba(99, 102, 241, 0.3); | |
} | |
.selected-voice, | |
.voice-info { | |
display: flex; | |
align-items: center; | |
gap: 0.75rem; | |
} | |
.voice-info { | |
flex-direction: column; | |
align-items: flex-start; | |
gap: 0.25rem; | |
} | |
.voice-info span { | |
font-size: 0.9rem; | |
color: white; | |
} | |
.voice-info small { | |
font-size: 0.8rem; | |
color: rgba(255, 255, 255, 0.6); | |
} | |
.dropdown-options { | |
position: absolute; | |
top: 100%; | |
left: 0; | |
right: 0; | |
margin-top: 0.5rem; | |
background: rgba(30, 30, 30, 0.95); | |
border: 1px solid rgba(255, 255, 255, 0.1); | |
border-radius: 8px; | |
max-height: 300px; | |
overflow-y: auto; | |
z-index: 10; | |
backdrop-filter: blur(10px); | |
scrollbar-width: thin; | |
scrollbar-color: rgba(99, 102, 241, 0.3) rgba(255, 255, 255, 0.05); | |
} | |
.dropdown-options::-webkit-scrollbar { | |
width: 6px; | |
} | |
.dropdown-options::-webkit-scrollbar-track { | |
background: rgba(255, 255, 255, 0.05); | |
border-radius: 3px; | |
} | |
.dropdown-options::-webkit-scrollbar-thumb { | |
background: rgba(99, 102, 241, 0.3); | |
border-radius: 3px; | |
transition: background 0.3s ease; | |
} | |
.dropdown-options::-webkit-scrollbar-thumb:hover { | |
background: rgba(99, 102, 241, 0.5); | |
} | |
.dropdown-option { | |
padding: 0.75rem; | |
cursor: pointer; | |
display: flex; | |
align-items: center; | |
gap: 0.75rem; | |
transition: all 0.3s ease; | |
} | |
.dropdown-option:hover { | |
background: rgba(99, 102, 241, 0.1); | |
} | |
/* Slider Styles */ | |
.slider-container { | |
display: flex; | |
align-items: center; | |
gap: 1rem; | |
} | |
.agent-form input#name { | |
width: auto; | |
} | |
.slider-container input[type="range"] { | |
padding: 2px 0; | |
border-radius: 5px; | |
background: #222; | |
} | |
.slider-container input[type="range"] { | |
flex: 1; | |
-webkit-appearance: none; | |
height: 0px; | |
background: rgba(255, 255, 255, 0.1); | |
border-radius: 2px; | |
outline: none; | |
} | |
.slider-container input[type="range"]::-webkit-slider-thumb { | |
-webkit-appearance: none; | |
width: 16px; | |
height: 16px; | |
background: #6366f1; | |
border-radius: 50%; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
} | |
.slider-container input[type="range"]::-webkit-slider-thumb:hover { | |
transform: scale(1.1); | |
background: #4f46e5; | |
} | |
.slider-value { | |
min-width: 48px; | |
font-size: 0.9rem; | |
color: rgba(255, 255, 255, 0.8); | |
text-align: right; | |
} | |
/* Radio Group Styles */ | |
.radio-group { | |
display: flex; | |
gap: 1rem; | |
} | |
.radio-label { | |
display: flex; | |
align-items: center; | |
gap: 0.5rem; | |
cursor: pointer; | |
} | |
.radio-label input[type="radio"] { | |
display: none; | |
} | |
.radio-label span { | |
padding: 0.5rem 1rem; | |
border-radius: 6px; | |
background: rgba(255, 255, 255, 0.05); | |
border: 1px solid rgba(255, 255, 255, 0.1); | |
font-size: 0.9rem; | |
color: rgba(255, 255, 255, 0.8); | |
transition: all 0.3s ease; | |
} | |
.radio-label input[type="radio"]:checked+span { | |
background: rgba(99, 102, 241, 0.1); | |
border-color: #6366f1; | |
color: #6366f1; | |
} | |
/* Modal Actions */ | |
.modal-actions { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-top: 1rem; | |
} | |
.right-actions { | |
display: flex; | |
gap: 1rem; | |
} | |
.test-voice-btn, | |
.save-btn, | |
.cancel-btn { | |
display: flex; | |
align-items: center; | |
gap: 0.5rem; | |
padding: 0.75rem 1.25rem; | |
border-radius: 8px; | |
font-size: 0.9rem; | |
font-weight: 500; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
} | |
.test-voice-btn { | |
background: rgba(99, 102, 241, 0.1); | |
border: 1px solid rgba(99, 102, 241, 0.3); | |
color: #6366f1; | |
} | |
.test-voice-btn:hover { | |
background: rgba(99, 102, 241, 0.2); | |
transform: translateY(-1px); | |
} | |
.save-btn { | |
background: #6366f1; | |
border: none; | |
color: white; | |
} | |
.save-btn:hover { | |
background: #4f46e5; | |
transform: translateY(-1px); | |
} | |
.cancel-btn { | |
background: transparent; | |
border: 1px solid rgba(255, 255, 255, 0.1); | |
color: rgba(255, 255, 255, 0.8); | |
} | |
.cancel-btn:hover { | |
background: rgba(255, 255, 255, 0.1); | |
transform: translateY(-1px); | |
} | |
/* Light Theme Adjustments */ | |
.light .agent-modal-content { | |
background: rgba(255, 255, 255, 0.95); | |
border-color: rgba(0, 0, 0, 0.1); | |
color: black; | |
} | |
.light .agent-modal-header h2 { | |
background: linear-gradient(90deg, #333, #666); | |
-webkit-background-clip: text; | |
} | |
.light .form-group label { | |
color: rgba(0, 0, 0, 0.8); | |
} | |
.light .form-group input[type="text"], | |
.light .form-group textarea { | |
background: rgba(0, 0, 0, 0.05); | |
border-color: rgba(0, 0, 0, 0.1); | |
color: black; | |
} | |
.light .form-group input[type="text"]:focus, | |
.light .form-group textarea:focus { | |
border-color: #6366f1; | |
background: rgba(0, 0, 0, 0.08); | |
} | |
.light .dropdown-header { | |
background: rgba(0, 0, 0, 0.05); | |
border-color: rgba(0, 0, 0, 0.1); | |
} | |
.light .dropdown-header:hover { | |
background: rgba(0, 0, 0, 0.08); | |
} | |
.light .voice-info span { | |
color: black; | |
} | |
.light .voice-info small { | |
color: rgba(0, 0, 0, 0.6); | |
} | |
.light .dropdown-options { | |
background: rgba(255, 255, 255, 0.95); | |
border-color: rgba(0, 0, 0, 0.1); | |
scrollbar-color: rgba(99, 102, 241, 0.3) rgba(0, 0, 0, 0.05); | |
} | |
.light .dropdown-options::-webkit-scrollbar-track { | |
background: rgba(0, 0, 0, 0.05); | |
} | |
.light .dropdown-options::-webkit-scrollbar-thumb { | |
background: rgba(99, 102, 241, 0.3); | |
} | |
.light .dropdown-options::-webkit-scrollbar-thumb:hover { | |
background: rgba(99, 102, 241, 0.5); | |
} | |
.light .slider-container input[type="range"] { | |
background: rgba(0, 0, 0, 0.1); | |
} | |
.light .slider-value { | |
color: rgba(0, 0, 0, 0.8); | |
} | |
.light .radio-label span { | |
background: rgba(0, 0, 0, 0.05); | |
border-color: rgba(0, 0, 0, 0.1); | |
color: rgba(0, 0, 0, 0.8); | |
} | |
.light .cancel-btn { | |
border-color: rgba(0, 0, 0, 0.1); | |
color: rgba(0, 0, 0, 0.8); | |
} | |
.light .cancel-btn:hover { | |
background: rgba(0, 0, 0, 0.1); | |
} | |
.toggle-group { | |
margin-top: 1rem; | |
margin-bottom: 1rem; | |
} | |
.toggle-container { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
gap: 10px; | |
padding: 8px 12px; | |
background: rgba(255, 255, 255, 0.05); | |
border-radius: 8px; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
} | |
.toggle-container:hover { | |
background: rgba(255, 255, 255, 0.1); | |
} | |
.toggle-container span { | |
color: rgba(255, 255, 255, 0.6); | |
font-size: 0.9rem; | |
} | |
.toggle-container span.active { | |
color: rgba(255, 255, 255, 1); | |
font-weight: 500; | |
} | |
.toggle-icon { | |
font-size: 1.5rem; | |
color: #6366f1; | |
transition: transform 0.3s ease; | |
} | |
.help-text { | |
display: block; | |
margin-top: 5px; | |
font-size: 0.8rem; | |
color: rgba(255, 255, 255, 0.5); | |
font-style: italic; | |
} |