/* --- 1. VARIABLES --- */
:root {
    /* Soft Mesh Gradient Background */
    --bg-mesh: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
               radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
               radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    
    --bg-body: #f8fafc; /* Very light slate */
    --surface: #ffffff;
    --primary: #4f46e5; /* Indigo */
    --primary-hover: #4338ca;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Section Colors (Pastel Accents) */
    --blue-accent: #e0f2fe;
    --blue-text: #0284c7;
    --orange-accent: #ffedd5;
    --orange-text: #c2410c;
    --green-accent: #dcfce7;
    --green-text: #15803d;
}

/* --- 2. RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    /* Subtle mesh background image */
    background-image: radial-gradient(circle at 15% 50%, rgba(238, 242, 255, 1), transparent 25%), 
                      radial-gradient(circle at 85% 30%, rgba(254, 243, 199, 1), transparent 25%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.app-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- 3. HEADER --- */
header { text-align: center; margin-bottom: 20px; }
.logo-area { font-size: 32px; font-weight: 800; letter-spacing: -1px; color: #0f172a; margin-bottom: 5px; }
.logo-area i { color: var(--primary); }
.logo-area span { color: var(--primary); }
header p { color: var(--text-muted); font-size: 15px; }

/* --- 4. MAIN INTERFACE CARD --- */
.interface-card {
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    padding: 30px;
}

/* --- 5. TOOLBAR --- */
.toolbar {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
    margin-bottom: 30px;
    align-items: end;
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
}

.dropdown-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }

.select-wrapper { position: relative; }
.select-wrapper i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    font-size: 15px;
    color: var(--text-main);
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
}
select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    height: 45px; /* Match Input Height */
}
.primary-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* --- 6. DATA GRID --- */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.section-label {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blue-lbl { background: var(--blue-accent); color: var(--blue-text); }
.orange-lbl { background: var(--orange-accent); color: var(--orange-text); }
.green-lbl { background: var(--green-accent); color: var(--green-text); }

/* Fields */
.field-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 500;
}

.full { grid-column: 1 / -1; }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 15px; /* Space for copy button */
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-main);
    background: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.2s;
}
.input-wrapper input.mono { font-family: 'Courier New', monospace; letter-spacing: -0.5px; font-weight: 600; }
.input-wrapper input.big { font-size: 16px; letter-spacing: 1px; }
.input-wrapper input:read-only { background: #fafafa; cursor: default; }
.input-wrapper input:focus { border-color: var(--primary); }

/* Copy Button */
.copy-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}
.copy-btn:hover { color: var(--primary); background: #f1f5f9; }
.copy-btn.copied { color: #10b981; }

/* --- 7. FOOTER --- */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 20px;
}
footer a { color: var(--primary); text-decoration: none; }

/* Responsive */
@media (max-width: 600px) {
    .toolbar { grid-template-columns: 1fr; }
    .primary-btn { width: 100%; }
    .app-container { padding: 0; }
}