promptforge / frontend /simple.css
Really-amin's picture
Upload PromptForge v1.0 — Structured prompt generator for Google AI Studio
b5c0b27 verified
:root {
--bg: #0f172a;
--surface: #1e293b;
--surface-hover: #334155;
--border: #334155;
--text: #f1f5f9;
--text-muted: #94a3b8;
--accent: #3b82f6;
--accent-glow: rgba(59, 130, 246, 0.5);
--success: #10b981;
--error: #ef4444;
--radius: 16px;
--shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--font: 'Inter', system-ui, sans-serif;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: var(--bg);
color: var(--text);
font-family: var(--font);
line-height: 1.6;
min-height: 100vh;
padding: 24px;
}
.app {
max-width: 800px;
margin: 0 auto;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
font-weight: 700;
font-size: 1.6rem;
letter-spacing: -0.025em;
}
.logo-icon {
font-size: 1.8rem;
}
.badge {
background: var(--accent);
color: white;
padding: 2px 10px;
border-radius: 40px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
margin-left: 8px;
vertical-align: middle;
}
.btn-outline {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
border: 1px solid var(--border);
border-radius: 40px;
background: var(--surface);
color: var(--text);
text-decoration: none;
font-size: 0.95rem;
font-weight: 500;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline:hover {
border-color: var(--accent);
background: var(--surface-hover);
transform: translateY(-1px);
box-shadow: 0 0 20px var(--accent-glow);
}
/* Cards */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
margin-bottom: 24px;
box-shadow: var(--shadow);
}
/* Key card */
.key-header {
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
user-select: none;
font-weight: 600;
color: var(--text);
}
.key-header .chevron {
margin-left: auto;
transition: transform 0.3s ease;
color: var(--text-muted);
}
.open .chevron {
transform: rotate(180deg);
}
.key-body {
margin-top: 20px;
display: block;
}
.key-body.hidden {
display: none;
}
.input-group {
display: flex;
gap: 10px;
margin-bottom: 12px;
}
.input-group input {
flex: 1;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px 16px;
color: white;
font-family: var(--font);
font-size: 1rem;
outline: none;
transition: border-color 0.2s;
}
.input-group input:focus {
border-color: var(--accent);
}
.icon-btn {
width: 48px;
height: 48px;
background: var(--surface-hover);
border: 1px solid var(--border);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--text-muted);
transition: all 0.2s;
}
.icon-btn:hover:not(:disabled) {
border-color: var(--accent);
color: var(--text);
}
.icon-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.key-status {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.9rem;
color: var(--text-muted);
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-muted);
}
.dot.ok {
background: var(--success);
box-shadow: 0 0 10px var(--success);
}
.dot.err {
background: var(--error);
box-shadow: 0 0 10px var(--error);
}
.btn-link {
background: none;
border: none;
color: var(--accent);
cursor: pointer;
font-size: 0.9rem;
text-decoration: none;
padding: 0 4px;
font-weight: 500;
}
.btn-link:hover {
text-decoration: underline;
}
/* Model selector */
.model-card label {
display: block;
margin-bottom: 12px;
font-weight: 600;
color: var(--text-muted);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.model-card select {
width: 100%;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 12px;
padding: 14px 18px;
font-size: 1rem;
color: var(--text);
outline: none;
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 18px;
}
.model-card select:focus {
border-color: var(--accent);
}
/* Input area */
.textarea-wrapper {
position: relative;
}
.textarea-wrapper textarea {
width: 100%;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 16px;
padding: 20px 60px 20px 20px;
font-family: var(--font);
font-size: 1.1rem;
color: white;
resize: vertical;
outline: none;
min-height: 140px;
transition: border-color 0.2s;
}
.textarea-wrapper textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.mic-btn {
position: absolute;
top: 20px;
right: 20px;
background: var(--surface-hover);
border: 1px solid var(--border);
border-radius: 12px;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--text-muted);
transition: all 0.2s;
}
.mic-btn:hover {
border-color: var(--accent);
color: var(--text);
}
.mic-btn.recording {
background: var(--error);
color: white;
border-color: var(--error);
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* Generate button */
.btn-primary {
width: 100%;
background: var(--accent);
border: none;
border-radius: 16px;
padding: 18px 24px;
font-size: 1.25rem;
font-weight: 700;
color: white;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
cursor: pointer;
transition: all 0.2s;
margin-bottom: 40px;
box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
/* Output area */
.output-area {
animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.output-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
}
.output-header h3 {
font-size: 1.25rem;
font-weight: 700;
}
.btn-secondary {
background: var(--surface-hover);
border: 1px solid var(--border);
border-radius: 12px;
padding: 10px 18px;
display: flex;
align-items: center;
gap: 8px;
font-size: 0.95rem;
font-weight: 600;
color: var(--text);
cursor: pointer;
transition: all 0.2s;
}
.btn-secondary:hover {
border-color: var(--text-muted);
background: var(--border);
}
.quad-sections {
display: grid;
gap: 20px;
}
.quad-section {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 12px;
padding: 16px;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.section-header strong {
color: var(--accent);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: 800;
}
.copy-section {
background: var(--surface-hover);
border: 1px solid var(--border);
border-radius: 8px;
padding: 6px 12px;
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
color: var(--text);
transition: all 0.2s;
}
.copy-section:hover {
border-color: var(--accent);
color: var(--accent);
}
.section-content {
color: #e2e8f0;
font-family: 'JetBrains Mono', 'Fira Code', monospace;
font-size: 0.95rem;
white-space: pre-wrap;
word-break: break-word;
line-height: 1.5;
}
.hidden {
display: none !important;
}
/* Toast */
#toast {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%) translateY(100px);
background: var(--surface);
border: 1px solid var(--accent);
border-radius: 12px;
padding: 14px 28px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
color: white;
font-size: 1rem;
font-weight: 600;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
z-index: 1000;
white-space: nowrap;
}
#toast.show {
transform: translateX(-50%) translateY(0);
}
/* Footer Actions */
.footer-actions {
margin-top: 60px;
border-top: 1px solid var(--border);
padding-top: 40px;
padding-bottom: 40px;
}
.full-width {
width: 100%;
justify-content: center;
text-decoration: none;
font-weight: 600;
letter-spacing: 0.025em;
}
.spinner {
width: 20px;
height: 20px;
border: 3px solid rgba(255,255,255,0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}