@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #000000;
    --glass: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.12);
    --primary: #6366f1; /* Indigo Neon */
    --accent: #a855f7;  /* Purple Neon */
    --text: #ffffff;
    --text-dim: #94a3b8;
}

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

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top center, #1e1b4b 0%, #000000 60%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Navbar */
.navbar {
    width: 100%; max-width: 1000px;
    padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px;
}
.brand { font-size: 24px; font-weight: 700; color: white; text-decoration: none; letter-spacing: -0.5px; }
.brand span { color: var(--primary); }
.nav-btn { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.3s; }
.nav-btn:hover { color: white; }

/* Main Container */
.container { width: 100%; max-width: 500px; z-index: 10; }
.dashboard-width { max-width: 800px; }

/* Glass Card */
.card {
    background: var(--glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 40px; border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.card h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.card p { color: var(--text-dim); margin-bottom: 30px; font-size: 15px; }

/* Inputs */
.form-group { margin-bottom: 20px; text-align: left; }
label { color: var(--text-dim); font-size: 13px; margin-bottom: 8px; display: block; font-weight: 600; }
input {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    color: white; padding: 16px; border-radius: 12px; font-size: 16px; outline: none; transition: 0.3s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); background: rgba(0,0,0,0.5); }

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border: none; padding: 16px; width: 100%;
    border-radius: 12px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3); transition: 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4); }
.btn-danger { background: #ef4444; box-shadow: none; width: auto; padding: 8px 15px; font-size: 13px; border-radius: 8px; }

/* Dashboard List */
.link-item {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    padding: 20px; border-radius: 16px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center; text-align: left;
}
.link-info { max-width: 70%; }
.short-url { color: var(--primary); font-weight: 600; font-size: 18px; text-decoration: none; display: block; margin-bottom: 5px; }
.original-url { color: var(--text-dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.stats-badge { background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 20px; font-size: 12px; color: white; display: inline-block; margin-top: 8px; }

/* Grid for Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.stat-box { background: var(--glass); padding: 20px; border-radius: 16px; border: 1px solid var(--border); text-align: center; }
.stat-box h3 { font-size: 28px; color: white; margin: 0; }
.stat-box span { font-size: 13px; color: var(--text-dim); }

/* Alerts */
.alert { padding: 15px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; border: 1px solid transparent; }
.error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); color: #86efac; }
