/* css/style.css */
body { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); color: #e2e8f0; min-height: 100vh; display: flex; flex-direction: column; }
* { box-sizing: border-box; }

/* HEADER */
header { background: rgba(15, 23, 42, 0.95); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; }
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-icon { width: 45px; height: 45px; background: linear-gradient(135deg, #8b5cf6, #ec4899); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; }
.logo-text { font-size: 24px; font-weight: 700; color: #fff; }
.logo-text span { color: #ec4899; }
.back-btn { text-decoration: none; color: #e2e8f0; background: rgba(255,255,255,0.05); padding: 8px 20px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.back-btn:hover { background: #ec4899; border-color: #ec4899; }

/* MAIN TOOL AREA */
main { flex: 1; padding: 30px 20px; max-width: 1100px; margin: 0 auto; width: 100%; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* UPLOAD SECTION */
.upload-card { background: rgba(30, 41, 59, 0.6); border: 2px dashed #475569; border-radius: 12px; padding: 30px; text-align: center; transition: 0.3s; position: relative; }
.upload-card:hover { border-color: #8b5cf6; background: rgba(30, 41, 59, 0.8); }
.file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* CONTROLS SECTION */
.controls-card { background: rgba(30, 41, 59, 0.9); border: 1px solid #334155; border-radius: 12px; padding: 25px; }
.section-title { font-size: 18px; color: #fff; margin-bottom: 15px; border-bottom: 1px solid #475569; padding-bottom: 10px; }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; color: #94a3b8; font-size: 14px; margin-bottom: 5px; }
.form-row { display: flex; gap: 10px; }
.form-control { width: 100%; background: #0f172a; border: 1px solid #334155; color: white; padding: 10px; border-radius: 6px; outline: none; }
.form-control:focus { border-color: #8b5cf6; }

/* BUTTONS */
.btn-action { width: 100%; background: linear-gradient(135deg, #8b5cf6, #d946ef); border: none; padding: 12px; color: white; font-weight: bold; border-radius: 8px; cursor: pointer; margin-top: 10px; font-size: 16px; transition: 0.2s; }
.btn-action:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-secondary { background: #334155; color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }

/* PREVIEW */
.preview-box { margin-top: 20px; text-align: center; display: none; }
.preview-img { max-width: 100%; max-height: 300px; border-radius: 8px; border: 2px solid #334155; margin-bottom: 10px; }
.stats { font-size: 13px; color: #ec4899; margin-bottom: 10px; }

/* FOOTER */
footer { background: #0f172a; border-top: 1px solid #1e293b; padding: 20px; text-align: center; font-size: 14px; color: #64748b; margin-top: auto; }
.powered-by { color: #ec4899; }

/* Responsive */
@media (max-width: 768px) { .tool-grid { grid-template-columns: 1fr; } }