* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 40px;
color: white;
}
header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
header p {
font-size: 1.1rem;
opacity: 0.9;
}
.dashboard {
display: grid;
gap: 24px;
}
.card {
background: white;
border-radius: 16px;
padding: 24px;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
border: 1px solid rgba(255,255,255,0.2);
}
.card h2 {
color: #2d3748;
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 8px;
}
/* Upload Area */
.upload-area {
border: 2px dashed #cbd5e0;
border-radius: 12px;
padding: 40px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: #f7fafc;
}
.upload-area:hover {
border-color: #667eea;
background: #edf2f7;
}
.upload-area.dragover {
border-color: #667eea;
background: #e6fffa;
}
.upload-icon {
width: 48px;
height: 48px;
margin: 0 auto 16px;
color: #718096;
}
.upload-content p {
font-size: 1.1rem;
color: #4a5568;
margin-bottom: 8px;
}
.upload-content small {
color: #718096;
}
.image-preview {
text-align: center;
margin-top: 16px;
}
.image-preview img {
max-width: 300px;
max-height: 300px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hidden {
display: none;
}
/* Form Styles */
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 6px;
font-weight: 600;
color: #2d3748;
}
input[type="text"],
input[type="email"],
select,
textarea {
width: 100%;
padding: 12px;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 14px;
transition: border-color 0.3s ease;
}
input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
/* Trait Selector */
.trait-selector {
margin-bottom: 12px;
}
.trait-pills {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.trait-pill {
padding: 6px 12px;
border: 2px solid #e2e8f0;
border-radius: 20px;
background: white;
cursor: pointer;
transition: all 0.2s ease;
font-size: 13px;
}
.trait-pill:hover {
border-color: #667eea;
}
.trait-pill.selected {
background: #667eea;
color: white;
border-color: #667eea;
}
.selected-traits {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.selected-trait {
background: #48bb78;
color: white;
padding: 4px 12px;
border-radius: 16px;
font-size: 13px;
display: flex;
align-items: center;
gap: 6px;
}
.remove-trait {
background: none;
border: none;
color: white;
cursor: pointer;
font-size: 16px;
line-height: 1;
}
/* Backstory Enhancement */
.backstory-actions {
display: flex;
justify-content: flex-end;
margin-top: 8px;
}
/* Reference Images */
.reference-images {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
align-items: start;
}
.reference-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.reference-grid img {
width: 100%;
height: 120px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.style-details {
background: #f7fafc;
padding: 16px;
border-radius: 8px;
}
.style-details h4 {
margin-bottom: 12px;
color: #2d3748;
}
.style-details ul {
list-style: none;
}
.style-details li {
padding: 4px 0;
color: #4a5568;
}
.style-details li:before {
content: "✓ ";
color: #48bb78;
font-weight: bold;
}
/* Production Options */
.production-options {
margin-bottom: 24px;
}
.checkbox-option {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
cursor: pointer;
}
.checkbox-option input {
width: auto;
}
/* Buttons */
.btn-primary,
.btn-secondary {
padding: 12px 24px;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
}
.btn-primary {
background: #667eea;
color: white;
width: 100%;
font-size: 16px;
padding: 16px;
}
.btn-primary:hover:not(:disabled) {
background: #5a67d8;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.btn-primary:disabled {
background: #cbd5e0;
cursor: not-allowed;
}
.btn-secondary {
background: #edf2f7;
color: #4a5568;
border: 2px solid #e2e8f0;
}
.btn-secondary:hover {
background: #e2e8f0;
border-color: #cbd5e0;
}
/* Progress Indicator */
.progress-indicator {
margin-bottom: 24px;
}
.progress-bar {
width: 100%;
height: 8px;
background: #edf2f7;
border-radius: 4px;
overflow: hidden;
margin-bottom: 8px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea, #764ba2);
width: 0%;
transition: width 0.3s ease;
}
#progress-text {
color: #4a5568;
font-size: 14px;
}
/* Production Log */
.production-log {
background: #1a202c;
color: #e2e8f0;
padding: 16px;
border-radius: 8px;
font-family: 'Courier New', monospace;
font-size: 13px;
max-height: 300px;
overflow-y: auto;
margin-bottom: 24px;
}
.log-entry {
margin-bottom: 4px;
line-height: 1.4;
}
.log-entry.success {
color: #68d391;
}
.log-entry.error {
color: #fc8181;
}
.log-entry.info {
color: #63b3ed;
}
/* Character Results */
.character-results {
display: grid;
gap: 16px;
}
.result-item {
padding: 16px;
background: #f7fafc;
border-radius: 8px;
border-left: 4px solid #667eea;
}
.result-item h4 {
margin-bottom: 8px;
color: #2d3748;
}
.character-images {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-top: 16px;
}
.character-image {
text-align: center;
}
.character-image img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.character-image p {
margin-top: 8px;
font-size: 14px;
color: #4a5568;
}
/* Voice Selection Styles */
.voice-selector {
display: flex;
gap: 12px;
align-items: center;
margin-bottom: 8px;
}
.voice-selector select {
flex: 1;
}
.btn-voice-sample {
background: #667eea;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
white-space: nowrap;
font-size: 14px;
}
.btn-voice-sample:hover:not(:disabled) {
background: #5a67d8;
}
.btn-voice-sample:disabled {
background: #cbd5e0;
cursor: not-allowed;
}
.voice-info {
margin-top: 4px;
color: #4a5568;
}
/* Character Validation Styles */
.validation-status {
margin-top: 4px;
}
.validation-status .error {
color: #e53e3e;
}
.validation-status .success {
color: #38a169;
}
.validation-status .warning {
color: #d69e2e;
}
.validation-status .checking {
color: #4299e1;
}
/* Audio Player Styles */
#voice-audio {
margin-top: 8px;
width: 100%;
max-width: 300px;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 12px;
}
header h1 {
font-size: 2rem;
}
.reference-images {
grid-template-columns: 1fr;
}
.reference-grid {
grid-template-columns: repeat(2, 1fr);
}
.trait-pills {
gap: 6px;
}
.trait-pill {
font-size: 12px;
padding: 4px 8px;
}
.voice-selector {
flex-direction: column;
align-items: stretch;
}
.btn-voice-sample {
align-self: center;
width: 150px;
}
}