deepsite / index.css
John79722's picture
Upload 10 files
1cacc77 verified
raw
history blame
7.73 kB
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f7f9;
color: #333;
line-height: 1.6;
}
#root {
display: flex;
justify-content: center;
padding: 20px;
min-height: 100vh;
box-sizing: border-box;
}
.container {
background-color: #fff;
padding: 30px;
border-radius: 12px; /* Slightly more rounded */
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* Softer shadow */
width: 100%;
max-width: 960px; /* Wider for more fields */
}
h1 {
color: #2c3e50;
text-align: center;
margin-bottom: 35px; /* Increased margin */
font-size: 2.2em; /* Slightly larger */
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax for wider layout */
gap: 25px; /* Increased gap */
margin-bottom: 30px; /* Increased margin */
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group label {
margin-bottom: 10px; /* Increased margin */
font-weight: 600;
color: #4a5568; /* Slightly different color */
}
.form-group select,
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea {
padding: 14px; /* Increased padding */
border: 1px solid #cbd5e0; /* Softer border */
border-radius: 8px; /* More rounded */
font-size: 1rem;
background-color: #fff;
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
color: #2d3748;
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #3182ce; /* Tailwind blue-500 */
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); /* Focus ring */
}
.form-group textarea {
min-height: 120px; /* Increased height */
resize: vertical;
}
.full-width {
grid-column: 1 / -1;
}
.output-controls {
margin-top: 10px;
}
.checkbox-group {
display: flex;
flex-direction: column; /* Stack checkboxes for better readability */
gap: 12px; /* Space between checkboxes */
padding: 10px;
background-color: #f9fafb;
border-radius: 6px;
border: 1px solid #e2e8f0;
}
.checkbox-group label {
display: flex;
align-items: center;
gap: 8px;
font-weight: 500;
color: #4a5568;
cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
width: 18px; /* Custom size */
height: 18px;
accent-color: #3182ce;
}
.generate-button {
display: block;
width: 100%;
padding: 16px; /* Increased padding */
background-color: #3182ce; /* Tailwind blue-600 */
color: white;
border: none;
border-radius: 8px; /* More rounded */
font-size: 1.15rem; /* Slightly larger */
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
margin-top: 15px;
margin-bottom: 35px; /* Increased margin */
}
.generate-button:hover:not(:disabled) {
background-color: #2b6cb0; /* Tailwind blue-700 */
}
.generate-button:disabled {
background-color: #a0aec0; /* Tailwind gray-500 */
cursor: not-allowed;
}
.output-section, .qa-section {
margin-top: 35px; /* Increased margin */
padding: 25px; /* Increased padding */
background-color: #f8fafc; /* Lighter gray */
border: 1px solid #e2e8f0; /* Softer border */
border-radius: 8px;
}
.output-section h2, .qa-section h2 {
margin-top: 0;
color: #2c5282; /* Tailwind blue-800 */
border-bottom: 2px solid #3182ce;
padding-bottom: 12px;
margin-bottom: 20px;
}
.variation-block {
background-color: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.variation-block h3 {
margin-top: 0;
margin-bottom: 15px;
color: #2d3748;
font-size: 1.2em;
}
.output-content {
white-space: pre-wrap;
word-wrap: break-word;
background-color: #fdfdff; /* Very light background */
padding: 15px;
border-radius: 4px;
border: 1px solid #edf2f7;
min-height: 100px;
font-family: 'Myanmar3', 'Padauk', 'Noto Sans Myanmar', sans-serif; /* Expanded Burmese fonts */
line-height: 1.7;
color: #1a202c; /* Darker text for readability */
}
.output-actions { /* No longer used, buttons are per variation or global export */
margin-top: 15px;
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.action-button {
padding: 10px 18px; /* Adjusted padding */
border-radius: 6px; /* More rounded */
font-size: 0.95rem; /* Slightly larger */
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
border: 1px solid transparent;
}
.copy-button {
background-color: #ebf8ff; /* Tailwind blue-100 */
color: #2b6cb0; /* Tailwind blue-700 */
border-color: #90cdf4; /* Tailwind blue-300 */
margin-top: 15px;
}
.copy-button:hover {
background-color: #bee3f8; /* Tailwind blue-200 */
border-color: #63b3ed; /* Tailwind blue-400 */
}
.export-button {
background-color: #38a169; /* Tailwind green-600 */
color: white;
border-color: #38a169;
}
.export-button:hover {
background-color: #2f855a; /* Tailwind green-700 */
border-color: #2f855a;
}
.export-all-button {
display: block; /* Make it full width */
width: auto; /* Or specific width if preferred */
margin-top: 25px; /* Space above */
padding: 12px 20px;
font-size: 1rem;
}
.qa-metrics {
list-style: none;
padding: 0;
}
.qa-metrics li {
margin-bottom: 12px; /* Increased margin */
padding: 10px 12px; /* Adjusted padding */
border-radius: 6px; /* More rounded */
background-color: #e9ecef;
color: #495057;
}
.qa-metrics li strong {
color: #2c3e50;
}
.loading-message, .error-message {
text-align: center;
padding: 18px; /* Increased padding */
margin-top: 25px; /* Increased margin */
border-radius: 8px; /* More rounded */
font-size: 1.05em;
}
.loading-message {
color: #2b6cb0; /* Tailwind blue-700 */
background-color: #ebf8ff; /* Tailwind blue-100 */
border: 1px solid #90cdf4; /* Tailwind blue-300 */
}
.error-message {
color: #c53030; /* Tailwind red-700 */
background-color: #fff5f5; /* Tailwind red-100 */
border: 1px solid #fc8181; /* Tailwind red-400 */
}
/* Responsive adjustments */
@media (max-width: 768px) {
.container {
padding: 20px;
}
h1 {
font-size: 1.9em;
}
.form-grid {
grid-template-columns: 1fr; /* Stack form groups on smaller screens */
}
.action-button {
flex-grow: 1;
}
.checkbox-group {
flex-direction: column; /* Ensure stacking on small screens too */
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.6em;
}
.form-group select,
.form-group input,
.form-group textarea,
.generate-button,
.action-button {
font-size: 0.95rem;
}
.generate-button {
padding: 14px;
}
.action-button {
padding: 10px 14px;
}
}
/* Ensure Burmese fonts are available if not system-wide */
@font-face {
font-family: 'Noto Sans Myanmar';
src: url('https://fonts.gstatic.com/s/notosansmyanmar/v10/AlNativeKyauk.woff2') format('woff2'); /* Replace with actual path or CDN */
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Padauk';
src: url('https://fonts.gstatic.com/s/padauk/v7/RrQRboJg-id7OnbBa0_g3Rs.woff2') format('woff2'); /* Replace with actual path or CDN */
font-weight: normal;
font-style: normal;
}