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

:root {
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --primary-light: #bae6fd;
    --bg-grad-1: #f0f9ff;
    --bg-grad-2: #e0f2fe;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.1);
    --danger: #ef4444;
    --success: #10b981;
}

body {
    margin: 0;
    font-family: 'Outfit', -apple-system, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Nav & Container */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); text-decoration: none; }
.nav-links a { margin-left: 15px; color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary-dark); }

main.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

/* Inputs & Buttons */
input, select, textarea {
    width: 100%; padding: 14px; margin-bottom: 15px;
    border: 2px solid transparent; background: rgba(255, 255, 255, 0.9);
    border-radius: 12px; font-family: inherit; font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    box-sizing: border-box; transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); background: #fff;
}

.btn {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none;
    display: inline-block; text-align: center; box-sizing: border-box;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4); transform: translateY(-2px); color: white;}
.btn-secondary { background: white; color: var(--text-dark); border: 1px solid var(--primary-light); }
.btn-secondary:hover { background: var(--bg-grad-1); border-color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }

.alert { padding: 12px; border-radius: 10px; margin-bottom: 15px; font-weight: 600; font-size: 0.9rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #d1fae5; color: #065f46; }

/* Dashboard Grids */
h1.page-title { text-align: center; margin-bottom: 30px; font-weight: 700; color: var(--primary-dark);}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.dashboard-card {
    text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px 20px; text-align: center; gap: 15px;
}
.dashboard-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.2); }
.card-icon { font-size: 3rem; margin-bottom: 10px; }
.card-title { font-size: 1.25rem; font-weight: 700; margin: 0;}
.card-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0;}

/* Micro animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-enter { animation: fadeIn 0.5s ease forwards; }

/* Table Styles */
.table-responsive { overflow-x: auto; border-radius: 12px; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); }
th { background: rgba(56, 189, 248, 0.1); font-weight: 600; color: var(--primary-dark); }
tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
    .glass-panel { padding: 1.5rem; }
    header { padding: 10px 15px; }
    .grid { grid-template-columns: 1fr; }
}
