openWa / dashboard /src /pages /MessageTester.css
harsh
Deploy: Initial commit without binaries
525d39f
Raw History Blame Contribute Delete
4.5 kB
.message-tester {
padding: 2rem;
width: 100%;
box-sizing: border-box;
}
.message-tester .page-header {
margin-bottom: 2rem;
}
/* H1 inherited from global */
.message-tester .page-header p {
margin: 0;
font-size: 0.9375rem;
color: var(--text-secondary);
}
.tester-panels {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}
.compose-panel,
.response-panel {
background: var(--bg-white);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow-sm);
border: 1px solid var(--border);
}
.compose-panel h2,
.response-panel h2 {
/* Inherits from H2 */
margin-bottom: 1.5rem;
}
.form-group {
margin-bottom: 1.25rem;
}
.form-group label {
display: block;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 0.75rem 1rem;
font-size: 0.9375rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg-white);
transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary);
}
.form-group textarea {
resize: vertical;
min-height: 100px;
}
.form-group .hint {
display: block;
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 0.375rem;
}
.toggle-group {
display: flex;
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.toggle-group button {
flex: 1;
padding: 0.625rem 1rem;
font-size: 0.875rem;
font-weight: 500;
background: var(--bg-white);
border: none;
cursor: pointer;
transition: all 0.2s;
color: var(--text-secondary);
}
.toggle-group button:first-child {
border-right: 1px solid var(--border);
}
.toggle-group button.active {
background: var(--primary);
color: white;
}
.send-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
width: 100%;
padding: 0.875rem 1.5rem;
font-size: 1rem;
font-weight: 600;
color: white;
background: var(--primary);
border: none;
border-radius: var(--radius);
cursor: pointer;
transition: background 0.2s;
}
.send-btn:hover:not(:disabled) {
background: var(--primary-hover);
}
.send-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.response-status {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
border-radius: var(--radius);
font-weight: 600;
font-size: 0.9375rem;
margin-bottom: 1rem;
}
.response-status.success {
background: rgba(37, 211, 102, 0.1);
color: var(--primary);
}
.response-status.error {
background: #FEE2E2;
color: #DC2626;
}
.response-details {
margin-bottom: 1rem;
}
.detail-row {
display: flex;
justify-content: space-between;
padding: 0.625rem 0;
border-bottom: 1px solid var(--border);
}
.detail-row:last-child {
border-bottom: none;
}
.detail-label {
font-size: 0.875rem;
color: var(--text-secondary);
}
.detail-value {
font-size: 0.875rem;
color: var(--text-primary);
font-weight: 500;
}
.detail-value.mono {
font-family: monospace;
}
.response-json {
background: #1E293B;
border-radius: var(--radius);
padding: 1rem;
overflow-x: auto;
}
.response-json pre {
margin: 0;
color: #E2E8F0;
font-size: 0.8125rem;
font-family: 'JetBrains Mono', monospace;
white-space: pre-wrap;
}
.response-empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 200px;
background: var(--bg-light);
border-radius: var(--radius);
}
.response-empty p {
color: var(--text-muted);
margin: 0;
}
@media (max-width: 1000px) {
.tester-panels {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.message-tester {
padding: 1rem;
}
.compose-panel,
.response-panel {
padding: 1rem;
}
.toggle-group {
flex-wrap: wrap;
border: none;
gap: 0.5rem;
overflow: visible;
}
.toggle-group button {
min-width: 0;
padding: 0.5rem 0.875rem;
font-size: 0.8125rem;
border: 1px solid var(--border) !important;
border-radius: 6px;
}
.toggle-group button.active {
border-color: var(--primary) !important;
}
.send-btn {
font-size: 0.9375rem;
padding: 0.75rem 1rem;
}
.form-group input,
.form-group select,
.form-group textarea {
font-size: 0.875rem;
padding: 0.625rem 0.75rem;
}
}