:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background glows */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
}

body::before {
    background: #3b82f6;
    top: -200px;
    left: -100px;
}

body::after {
    background: #8b5cf6;
    bottom: -200px;
    right: -100px;
}

[v-cloak] { display: none; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Forms */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.input-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.error-msg {
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 16px;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 0;
    border-right: 1px solid var(--glass-border);
    border-top: none;
    border-bottom: none;
    border-left: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.nav-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.nav-item.active {
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

.sidebar-footer {
    margin-top: auto;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
}

.btn-logout:hover {
    color: var(--danger);
}

/* Main Content */
.main-content {
    padding: 40px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
}

.header .btn-primary {
    width: auto;
    padding: 10px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.dest-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.dest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dest-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.routing-badge {
    background: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-family: monospace;
}

.dest-body {
    flex: 1;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.dest-body p {
    margin-bottom: 12px;
    word-break: break-all;
}

.dest-body strong {
    color: var(--text-color);
    font-weight: 500;
}

.blurred {
    filter: blur(4px);
    transition: filter 0.3s;
    cursor: pointer;
}

.blurred:hover {
    filter: blur(0);
}

.dest-footer {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 16px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 1;
}

.text-danger {
    color: var(--danger);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    padding: 32px;
}

.modal-card h3 {
    margin-bottom: 24px;
    font-size: 22px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}
