310 lines
5.5 KiB
CSS
310 lines
5.5 KiB
CSS
.settings {
|
|
padding: 1rem;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.heading {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1.5rem;
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.loading {
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: var(--text-secondary, #666);
|
|
}
|
|
|
|
.error {
|
|
padding: 0.5rem 0.75rem;
|
|
background: #fde8e8;
|
|
color: var(--color-error, #d32f2f);
|
|
border-radius: 6px;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.success {
|
|
padding: 0.5rem 0.75rem;
|
|
background: #e8f5e9;
|
|
color: #2e7d32;
|
|
border-radius: 6px;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.section {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.sectionTitle {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.75rem;
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.field {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.label {
|
|
display: block;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.3rem;
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.select, .input {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid var(--border-color, #ddd);
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
background: var(--bg-input, #fff);
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.voiceRow {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.voiceRow .select {
|
|
flex: 1;
|
|
}
|
|
|
|
.testBtn {
|
|
padding: 0.5rem 1rem;
|
|
background: var(--primary-color, #F25843);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.testBtn:hover:not(:disabled) { filter: brightness(1.08); }
|
|
.testBtn:disabled {
|
|
background: var(--color-medium-gray, #ccc);
|
|
color: var(--text-secondary, #888);
|
|
cursor: not-allowed;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.checkboxLabel {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.checkboxLabel input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.statsGrid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.statItem {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0.75rem;
|
|
background: var(--bg-card, #fff);
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.statValue {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--primary-color, #F25843);
|
|
}
|
|
|
|
.statLabel {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary, #666);
|
|
}
|
|
|
|
.saveBtn {
|
|
width: 100%;
|
|
padding: 0.6rem;
|
|
background: var(--primary-color, #F25843);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.saveBtn:hover:not(:disabled) { filter: brightness(1.08); }
|
|
.saveBtn:disabled {
|
|
background: var(--color-medium-gray, #ccc);
|
|
color: var(--text-secondary, #888);
|
|
cursor: not-allowed;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.settings {
|
|
padding: 0.75rem;
|
|
max-width: 100%;
|
|
}
|
|
.statsGrid {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.5rem;
|
|
}
|
|
.voiceRow {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* Tab Bar */
|
|
.tabBar {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 2px solid var(--border-color, #ddd);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.tab {
|
|
padding: 0.6rem 1.2rem;
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -2px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary, #666);
|
|
transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.tabActive {
|
|
color: var(--primary-color, #F25843);
|
|
border-bottom-color: var(--primary-color, #F25843);
|
|
}
|
|
|
|
/* Personas Tab */
|
|
.personasTab {
|
|
width: 100%;
|
|
}
|
|
|
|
.personasHeader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.textarea {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid var(--border-color, #ddd);
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
background: var(--bg-input, #fff);
|
|
color: var(--text-primary, #333);
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/* Modal */
|
|
.modalOverlay {
|
|
position: fixed;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal {
|
|
background: var(--bg-card, #fff);
|
|
border-radius: 12px;
|
|
width: 520px;
|
|
max-width: 90vw;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.modalHeader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.25rem;
|
|
border-bottom: 1px solid var(--border-color, #e0e0e0);
|
|
}
|
|
|
|
.modalHeader h3 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modalClose {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.2rem;
|
|
cursor: pointer;
|
|
color: var(--text-secondary, #666);
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.modalClose:hover {
|
|
background: var(--bg-hover, #f5f5f5);
|
|
}
|
|
|
|
.modalBody {
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.modalFooter {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.25rem;
|
|
border-top: 1px solid var(--border-color, #e0e0e0);
|
|
}
|
|
|
|
.btnSecondary {
|
|
padding: 0.4rem 1rem;
|
|
background: transparent;
|
|
color: var(--text-primary, #333);
|
|
border: 1px solid var(--border-color, #ddd);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.btnSecondary:hover {
|
|
background: var(--bg-hover, #f5f5f5);
|
|
border-color: var(--primary-color, #F25843);
|
|
color: var(--primary-color, #F25843);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.settings { padding: 0.75rem; max-width: 100%; }
|
|
.statsGrid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
|
|
.statItem { padding: 0.5rem; }
|
|
.statValue { font-size: 1.2rem; }
|
|
.voiceRow { flex-direction: column; }
|
|
.modal { width: 95vw; }
|
|
}
|