/* --- Global & Theme Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap'); /* For Nova Tokens */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: #0f172a; 
    background-image: radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.1) 0, transparent 50%), 
                      radial-gradient(at 50% 100%, rgba(99, 102, 241, 0.1) 0, transparent 50%);
    background-attachment: fixed;
    color: #f1f5f9;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(16px);
    padding: 10px 5%; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); height: 70px; position: sticky; top: 0; z-index: 1000;
}
.navbar .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; height: 100%; }
.navbar .logo .icon-box {
    width: 40px; height: 40px; border-radius: 8px; background: transparent;
    display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 5px; 
}
.navbar .logo .icon-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.navbar .logo-text { font-size: 1.5rem; font-weight: 700; color: #3b82f6; display: flex; align-items: center; line-height: 1; }

/* Logo Animation */
.logo-letter {
    display: inline-block; opacity: 0; transform: translate(0, 0);
    animation-duration: 0.5s; animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes comeFromTop { 0% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes comeFromBottom { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes comeFromRight { 0% { opacity: 0; transform: translateX(30px); } 100% { opacity: 1; transform: translateX(0); } }
.anim-top { animation-name: comeFromTop; }
.anim-bottom { animation-name: comeFromBottom; }
.anim-right { animation-name: comeFromRight; }


/* Main Container */
.main-container { max-width: 1200px; width: 95%; margin: 60px auto; padding: 0; flex: 1; }

/* Tool Container */
.tool-container {
    position: relative; padding: 40px 30px; border-radius: 20px; overflow: hidden;
    /* Special Gradient for NovaGlyph */
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #312e81 50%, #2e1065 75%, #0f172a 100%);
    background-size: 400% 400%; animation: gradientFlowNormal 15s ease infinite; 
    border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
@keyframes gradientFlowNormal { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Header */
.tool-header {
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    gap: 10px; margin-bottom: 40px; padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 2;
}
.tool-logo {
    width: 80px; height: 80px; border-radius: 14px; background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.2); overflow: hidden; flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 111, 177, 0.3); /* Pink glow for NovaGlyph */
}
.tool-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tool-title { margin: 0; color: #ffffff; font-size: 2rem; font-weight: 600; }
.tool-subtitle { color: #cfc6d8; font-size: 0.9rem; }


/* --- NOVA GLYPH SPECIFIC --- */

/* Grid Layout */
.nova-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 25px; position: relative; z-index: 2;
}

/* Card Style */
.nova-card {
    background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 15px;
}
.card-header h3 { font-size: 1.1rem; color: #f1f5f9; display: flex; align-items: center; gap: 10px; }
.card-header h3 i { color: #ff6fb1; } /* Accent Color */

/* Textarea */
textarea {
    width: 100%; height: 150px; padding: 15px;
    background-color: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px;
    color: #ffffff; font-family: 'Inter', sans-serif; font-size: 15px;
    resize: vertical; outline: none; transition: all 0.3s ease;
}
textarea:focus { border-color: #ff6fb1; background-color: rgba(0, 0, 0, 0.3); }

/* Buttons */
.action-buttons { display: flex; gap: 10px; margin-bottom: 10px; }
.btn {
    padding: 8px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; 
    cursor: pointer; transition: transform 0.2s; flex: 1;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: linear-gradient(90deg, #ff6fb1, #9a7bff); color: white; } /* Nova Gradient */
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); color: white; }

/* Output Area (Tokens) */
.output-area { display: flex; flex-direction: column; gap: 8px; }
.output-area label { font-size: 0.85rem; color: #cfc6d8; }

.tokens {
    width: 100%; min-height: 120px; padding: 15px;
    border-radius: 10px; background: rgba(0, 0, 0, 0.4);
    font-family: monospace; color: #ffdff0; /* Soft Pink Text */
    overflow-y: auto; white-space: pre-wrap; word-break: break-all;
    border: 1px dashed rgba(255, 111, 177, 0.3);
}

.btn-copy {
    align-self: flex-end; padding: 6px 15px; font-size: 13px;
    background: transparent; border: 1px solid rgba(255, 111, 177, 0.3);
    color: #ff6fb1; border-radius: 6px; cursor: pointer; transition: 0.3s;
}
.btn-copy:hover { background: rgba(255, 111, 177, 0.1); }

/* Footer */
footer {
    text-align: center; padding: 30px; color: #94a3b8; background-color: #0b0f19;
    margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.credits { margin-top: 5px; font-size: 0.9rem; }
.highlight { color: #ff6fb1; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .nova-grid { grid-template-columns: 1fr; }
    textarea { height: 120px; }
}