Spaces:
Sleeping
Sleeping
/* Main theme colors */ | |
:root { | |
--primary-color: #3a506b; | |
--secondary-color: #5bc0be; | |
--accent-color: #ffd166; | |
--background-color: #f8f9fa; | |
--text-color: #1c2541; | |
--border-radius: 8px; | |
--box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
} | |
/* Global styles */ | |
body { | |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
background-color: var(--background-color); | |
color: var(--text-color); | |
} | |
/* Header styling */ | |
.app-header { | |
display: flex; | |
align-items: center; | |
gap: 20px; | |
padding: 16px 24px; | |
background: linear-gradient(135deg, var(--primary-color), #1c2541); | |
color: white; | |
border-radius: var(--border-radius); | |
margin-bottom: 24px; | |
box-shadow: var(--box-shadow); | |
} | |
.app-header img { | |
width: 48px; | |
height: 48px; | |
border-radius: 50%; | |
background-color: white; | |
padding: 6px; | |
} | |
.app-header h1 { | |
margin: 0; | |
font-size: 1.8rem; | |
font-weight: 700; | |
} | |
.app-header p { | |
margin: 4px 0 0 0; | |
opacity: 0.9; | |
font-size: 0.9rem; | |
} | |
.app-header a { | |
color: var(--accent-color); | |
text-decoration: none; | |
transition: opacity 0.2s; | |
} | |
.app-header a:hover { | |
opacity: 0.8; | |
text-decoration: underline; | |
} | |
/* Accordion styling */ | |
.accordion-container { | |
margin-bottom: 20px; | |
border: 1px solid rgba(0, 0, 0, 0.1); | |
border-radius: var(--border-radius); | |
overflow: hidden; | |
} | |
.accordion-header { | |
background-color: var(--primary-color); | |
color: white; | |
padding: 12px 16px; | |
font-weight: 600; | |
} | |
.accordion-content { | |
padding: 16px; | |
background-color: white; | |
} | |
/* Main content area */ | |
.main-container { | |
display: flex; | |
gap: 24px; | |
margin-bottom: 24px; | |
} | |
/* Input column */ | |
.input-column { | |
flex: 1; | |
background-color: white; | |
padding: 20px; | |
border-radius: var(--border-radius); | |
box-shadow: var(--box-shadow); | |
} | |
/* Output column */ | |
.output-column { | |
flex: 1; | |
background-color: white; | |
padding: 20px; | |
border-radius: var(--border-radius); | |
box-shadow: var(--box-shadow); | |
} | |
/* Button styling */ | |
.generate-button { | |
background-color: var(--secondary-color); | |
color: white; | |
border: none; | |
border-radius: var(--border-radius); | |
padding: 12px 24px; | |
font-weight: 600; | |
cursor: pointer; | |
transition: background-color 0.2s; | |
width: 100%; | |
margin-top: 16px; | |
} | |
.generate-button:hover { | |
background-color: #4ca8a6; | |
} | |
/* Image upload area */ | |
.image-upload { | |
border: 2px dashed rgba(0, 0, 0, 0.1); | |
border-radius: var(--border-radius); | |
padding: 20px; | |
text-align: center; | |
transition: border-color 0.2s; | |
} | |
.image-upload:hover { | |
border-color: var(--secondary-color); | |
} | |
/* Input fields */ | |
input[type="text"], input[type="password"], textarea { | |
width: 100%; | |
padding: 10px 12px; | |
border: 1px solid rgba(0, 0, 0, 0.1); | |
border-radius: var(--border-radius); | |
margin-bottom: 16px; | |
font-family: inherit; | |
} | |
input[type="text"]:focus, input[type="password"]:focus, textarea:focus { | |
border-color: var(--secondary-color); | |
outline: none; | |
} | |
/* Gallery output */ | |
.gallery-container { | |
min-height: 300px; | |
border-radius: var(--border-radius); | |
overflow: hidden; | |
background-color: #f5f5f5; | |
} | |
/* Examples section */ | |
.examples-header { | |
margin: 32px 0 16px 0; | |
font-weight: 600; | |
color: var(--primary-color); | |
} | |
.examples-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | |
gap: 16px; | |
margin-top: 16px; | |
} | |
.example-item { | |
background-color: white; | |
border-radius: var(--border-radius); | |
padding: 12px; | |
box-shadow: var(--box-shadow); | |
cursor: pointer; | |
transition: transform 0.2s; | |
} | |
.example-item:hover { | |
transform: translateY(-4px); | |
} | |
.example-item img { | |
width: 100%; | |
border-radius: 4px; | |
margin-bottom: 8px; | |
} | |
.example-item p { | |
margin: 0; | |
font-size: 0.9rem; | |
} | |
/* Responsive adjustments */ | |
@media (max-width: 768px) { | |
.main-container { | |
flex-direction: column; | |
} | |
.app-header { | |
flex-direction: column; | |
text-align: center; | |
} | |
.examples-grid { | |
grid-template-columns: 1fr 1fr; | |
} | |
} | |
/* Loading indicator */ | |
.loading-spinner { | |
display: inline-block; | |
width: 40px; | |
height: 40px; | |
border: 4px solid rgba(0, 0, 0, 0.1); | |
border-radius: 50%; | |
border-top-color: var(--secondary-color); | |
animation: spin 1s ease-in-out infinite; | |
} | |
@keyframes spin { | |
to { transform: rotate(360deg); } | |
} | |
/* Footer */ | |
.app-footer { | |
text-align: center; | |
padding: 16px; | |
margin-top: 32px; | |
color: rgba(0, 0, 0, 0.5); | |
font-size: 0.8rem; | |
} |