/* css/style.css */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; text-decoration: none; }
body { background: #0f172a; color: #fff; min-height: 100vh; display: flex; flex-direction: column; }

/* --- HEADER --- */
header { 
    background-color: #0f172a; 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #1e293b; 
    height: 80px;
}

.logo-area { display: flex; align-items: center; gap: 15px; }

/* Cube Icon */
.logo-icon { 
    width: 45px; height: 45px; 
    background: linear-gradient(135deg, #8b5cf6, #d946ef); 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 24px; color: white; 
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* MyCSP (White) Pro (Pink) */
.logo-text { font-size: 28px; font-weight: 700; color: #ffffff; letter-spacing: 0.5px; }
.text-pro { color: #f43f5e; font-weight: 800; } 

/* Back Button */
.back-btn { 
    color: #e2e8f0; 
    background: rgba(255,255,255,0.08); 
    padding: 10px 25px; 
    border-radius: 8px; 
    font-size: 14px; 
    transition: all 0.3s ease; 
    border: 1px solid rgba(255,255,255,0.1);
}
.back-btn:hover { background: #f43f5e; color: white; border-color: #f43f5e; }

/* --- TOOL UI --- */
main { flex: 1; padding: 40px 20px; max-width: 1100px; margin: 0 auto; width: 100%; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.upload-card { background: rgba(30, 41, 59, 0.6); border: 2px dashed #475569; border-radius: 12px; padding: 40px 20px; text-align: center; transition: 0.3s; position: relative; cursor: pointer; }
.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-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: 12px; border-radius: 6px; outline: none; }
.form-control:focus { border-color: #8b5cf6; }

.btn-action { width: 100%; background: linear-gradient(135deg, #8b5cf6, #d946ef); border: none; padding: 14px; 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; }

.preview-box { margin-top: 20px; text-align: center; display: none; }
.preview-img { max-width: 100%; max-height: 250px; border-radius: 8px; border: 2px solid #334155; margin-bottom: 10px; }

/* --- FOOTER --- */
footer { 
    background: #000000; 
    padding: 20px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 14px; 
    color: #94a3b8; 
    border-top: 1px solid #1e293b;
    margin-top: auto;
}
.footer-link { color: #ec4899; font-weight: 600; transition: 0.3s; }
.footer-link:hover { text-decoration: underline; color: #f472b6; }

@media (max-width: 768px) { 
    .tool-grid { grid-template-columns: 1fr; } 
    footer { flex-direction: column; gap: 10px; text-align: center; }
    header { padding: 10px 20px; }
}