:root {
    --bg-color: #030706;
    --card-bg: rgba(15, 22, 20, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #F8F9FA;
    --text-secondary: #8E9995;
    --primary-color: #BEF08E;
    --primary-hover: #A0DF6D;
    --gradient-start: #BEF08E;
    --gradient-end: #A0DF6D;
    --success: #BEF08E;
    --font-sans: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    background-attachment: fixed;
}

.view-container {
    display: none;
    flex: 1;
    width: 100vw;
    height: 100vh;
}

.view-container.active {
    display: flex;
}

#auth-view {
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 25px 50px -12px rgba(190, 240, 142, 0.1);
}

.glass-card.full-width {
    max-width: 1000px;
    margin: 3rem auto;
}

/* Sidebar Layout */
#dashboard-view {
    display: none;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    background: transparent;
}

#dashboard-view.active {
    display: flex;
}

.sidebar {
    width: 35%;
    min-width: 350px;
    background-color: #030706; /* Solid dark background */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    border-right: 1px solid var(--border-color);
    z-index: 10;
}

.sidebar h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0;
}

.logout-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow-y: auto;
    position: relative;
}

/* Typography */
.gradient-text {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 500; }
h2 { font-size: 1.8rem; font-weight: 500; }
h3 { font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 500; }
p { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* Forms */
.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.2rem 1rem 0.6rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(190, 240, 142, 0.05);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-mono);
}

/* Floating Label Animation */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 0.6rem;
    font-size: 0.7rem;
    color: var(--primary-color);
    transform: translateY(0);
}

/* Buttons */
button {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px; /* Pill shape */
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--primary-color);
    color: #030706; /* Dark text for contrast */
    width: 100%;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(190, 240, 142, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(190, 240, 142, 0.1);
}

/* Dashboard Specifics removed to rely on main-content flex layout */

.header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-action .btn-primary {
    width: auto;
    padding: 0.8rem 1.5rem;
}

/* Tables */
.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th, .modern-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.modern-table th {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.modern-table tbody tr {
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.status-badge.active {
    background: rgba(190, 240, 142, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(190, 240, 142, 0.3);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 500px;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
}

.modal-actions button {
    width: auto;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.message {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    min-height: 1.2rem;
    font-family: var(--font-mono);
}

.message.error { color: #ef4444; }
.message.success { color: var(--success); }
