@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --accent: #8E24AA;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }

nav { 
	height: 70px; 
	padding: 0 5%; 
	display: flex; 
	justify-content: space-between; 
	align-items: center; 
	background: white; 
	border-bottom: 1px solid var(--border); 
	position: fixed; 
	width: 100%; 
	top: 0; 
	z-index: 100; 
}

.logo img { 
	width: 80px; 
}

.nav-cta { 
	background: var(--primary); 
	color: white; 
	border: none; 
	padding: 8px 16px; 
	border-radius: 8px; 
	font-weight: 700; 
	cursor: pointer; 
}

main { 
	margin-top: 70px; 
	flex: 1; 
	display: flex; 
	padding: 20px; 
	align-items: center; 
	justify-content: center; 
}

/* Drop Zone Styles */
.drop-zone { width: 100%; max-width: 500px; height: 300px; border: 2px dashed var(--border); border-radius: 20px; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.drop-zone:hover, .drop-zone.over { border-color: var(--primary); background: #FFF5F8; }
.drop-zone svg { width: 48px; color: var(--text-muted); margin-bottom: 10px; }

/* Desktop Editor Layout */
.editor-layout { display: none; width: 100%; max-width: 1200px; height: 80vh; gap: 20px; flex-direction: row; }

.sidebar-controls { flex: 0 0 320px; background: white; padding: 24px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 20px; }

.canvas-display { flex: 1; background: #0F172A; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }

/* Controls UI */
.mode-toggle { display: flex; background: #F1F5F9; padding: 4px; border-radius: 10px; margin-top: 8px; }
.mode-btn { flex: 1; border: none; padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 600; background: transparent; }
.mode-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.control-box label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.badge { background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; }
input[type=range] { width: 100%; accent-color: var(--primary); margin-top: 8px; }

/* Responsive Mobile Layout */
@media (max-width: 850px) {
    .editor-layout { flex-direction: column; height: auto; }
    .canvas-display { height: 400px; order: 1; }
    .sidebar-controls { order: 2; width: 100%; }
}

/* Canvas & Overlays */
.canvas-container { position: relative; max-width: 100%; max-height: 100%; }
#outputCanvas { max-width: 100%; max-height: 70vh; display: block; cursor: move; }
.hint { color: #94A3B8; font-size: 0.8rem; margin-top: 15px; }

.btn { width: 100%; padding: 12px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; margin-bottom: 8px; }
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: #F1F5F9; color: var(--text); }

/* Loader & Toast */
.loader { position: absolute; inset: 0; background: rgba(15,23,42,0.8); display: none; align-items: center; justify-content: center; z-index: 10; }
.loader.active { display: flex; }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-left-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: #1E293B; color: white; padding: 12px 24px; border-radius: 10px; opacity: 0; transition: 0.4s; z-index: 1000; }
.toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }

.app-header {
	position: absolute;
	text-align: center;
	top: 20vh;
}

.app-header h1 {
    /* Set the gradient as the background */
    background-image: linear-gradient(135deg, var(--primary), var(--accent));
    
    /* Clip the background to the text characters */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Make the original text color transparent so the background shows through */
    -webkit-text-fill-color: transparent;
    color: transparent; 
}
