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

:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #a855f7;
    --bg-main: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

/* Navigation */
.al_nav {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    padding: 2.5rem 1.5rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3.5rem;
}

.title i {
    display: block;
    font-size: 0.7rem;
    font-style: normal;
    -webkit-text-fill-color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 1px;
}

.al_btn {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    margin-bottom: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.al_btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    transform: translateX(8px);
    border-color: var(--border);
}

.al_btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

/* Content */
.content {
    margin-left: 280px;
    padding: 2.5rem 4rem;
    max-width: 1400px;
}

.content.login-view {
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 2rem; }

/* Cards & Components */
.al_card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-5px); }
.stat-card .val { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-top: 0.5rem; }

/* Table */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table th {
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.table tr td {
    background: rgba(30, 41, 59, 0.4);
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.table tr td:first-child { border-left: 1px solid var(--border); border-radius: 16px 0 0 16px; }
.table tr td:last-child { border-right: 1px solid var(--border); border-radius: 0 16px 16px 0; }

.table tr:hover td { background: rgba(30, 41, 59, 0.8); }

/* Forms */
input, select, textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    color: white;
    width: 100%;
    margin-top: 10px;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

.al_btn.al_submit {
    background: var(--primary);
    color: white;
    width: 100%;
    justify-content: center;
    margin-top: 2rem;
    border: none;
    font-size: 1.1rem;
    padding: 1rem;
}

.al_btn.al_delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.al_btn.al_delete:hover {
    background: var(--danger);
    color: white;
}

.badge-status {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.al_alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content > div { animation: fadeIn 0.5s ease-out; }
