/* =====================================================
   Botany Virtual Lab — Global Styles
   ===================================================== */

:root {
    --bg: #0a0e1a;
    --bg-2: #131825;
    --bg-3: #1a2035;
    --border: rgba(255,255,255,0.08);
    --text: #ffffff;
    --text-2: #a0a8c0;
    --accent: #00ff88;
    --accent-2: #00aaff;
    --danger: #ff4466;
    --warning: #ffdd00;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(0,0,0,0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =====================================================
   Layout
   ===================================================== */
.site-main {
    min-height: calc(100vh - 140px);
}

.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-2);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #0a0e1a;
}
.btn-primary:hover {
    background: #00dd77;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
}
.btn-ghost:hover { color: var(--text); text-decoration: none; }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* =====================================================
   Forms
   ===================================================== */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.1);
}

.form-control::placeholder { color: rgba(160,168,192,0.5); }

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-2);
}

.link-subtle { color: var(--text-2); font-size: 13px; }
.link-subtle:hover { color: var(--accent); }
.link-primary { color: var(--accent); font-weight: 600; }

/* =====================================================
   Alerts & Toasts
   ===================================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 3px solid;
}

.alert-error {
    background: rgba(255,68,102,0.1);
    border-color: var(--danger);
    color: #ffb0c0;
}

.alert-success {
    background: rgba(0,255,136,0.1);
    border-color: var(--accent);
    color: #b0ffdd;
}

.alert-info {
    background: rgba(0,170,255,0.1);
    border-color: var(--accent-2);
    color: #b0e0ff;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    border-left: 4px solid;
    box-shadow: var(--shadow);
    font-size: 14px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.toast-success { border-color: var(--accent); color: var(--accent); }
.toast-error   { border-color: var(--danger); color: var(--danger); }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* =====================================================
   Auth Layout
   ===================================================== */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(0,255,136,0.06), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0,170,255,0.06), transparent 50%),
                var(--bg);
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon { font-size: 28px; }
.logo-text { font-size: 18px; font-weight: 700; }

.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-2);
    font-size: 14px;
    margin-bottom: 28px;
}

.auth-form { margin-top: 20px; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-2);
}

.role-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.role-tab {
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    transition: all 0.2s;
}

.role-tab:hover { text-decoration: none; color: var(--text); }

.role-tab.active {
    background: var(--accent);
    color: #0a0e1a;
}

/* =====================================================
   Navigation (public)
   ===================================================== */
.site-nav {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

/* =====================================================
   Hero Section (home)
   ===================================================== */
.hero {
    padding: 80px 24px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(0,255,136,0.08), transparent 60%);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-2);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,255,136,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-2);
    font-size: 14px;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 480px) {
    .auth-card { padding: 32px 20px; }
    .form-row-2 { grid-template-columns: 1fr; }
}