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

:root {
    /* Modern Violet/Indigo Theme (Matches Admin) */
    --ftm-primary: #6366f1;
    --ftm-primary-dark: #4f46e5;
    --ftm-primary-subtle: #e0e7ff;
    --ftm-secondary: #64748b;
    --ftm-success: #10b981;
    --ftm-success-subtle: #d1fae5;
    --ftm-info: #0ea5e9;
    --ftm-info-subtle: #e0f2fe;
    --ftm-warning: #f59e0b;
    --ftm-warning-subtle: #fef3c7;
    --ftm-danger: #ef4444;
    --ftm-danger-subtle: #fee2e2;

    --ftm-dark: #0f172a;
    --ftm-dark-bg: #1e293b;
    --ftm-light: #f8fafc;
    --ftm-white: #ffffff;
    --ftm-border: #e2e8f0;

    --ftm-font-sans: 'Outfit', sans-serif;
    --ftm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ftm-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ftm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--ftm-font-sans);
    background-color: var(--ftm-light);
    color: #334155;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ftm-dark);
}

a {
    color: var(--ftm-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--ftm-primary-dark);
}

/* Utilities */
.text-justify {
    text-align: justify;
}

.fw-medium {
    font-weight: 500 !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--ftm-primary) 0%, var(--ftm-primary-dark) 100%);
}

.shadow-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--ftm-shadow-lg) !important;
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary {
    background-color: var(--ftm-primary);
    border-color: var(--ftm-primary);
}

.btn-primary:hover {
    background-color: var(--ftm-primary-dark);
    border-color: var(--ftm-primary-dark);
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: var(--ftm-shadow-sm);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ftm-primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--ftm-secondary) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ftm-primary) !important;
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid var(--ftm-border);
    padding: 3rem 0;
    margin-top: auto;
}

/* Auth Cards */
.auth-card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--ftm-shadow-lg);
    background: #fff;
    overflow: hidden;
}

.auth-side-img {
    background: url('https://images.unsplash.com/photo-1549488497-6060683a54b9?q=80&w=2670&auto=format&fit=crop') center/cover no-repeat;
    min-height: 100%;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://images.unsplash.com/photo-1570145820404-45d315eb3797?q=80&w=2576&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

/* Tree Canvas */
.tree-canvas {
    width: 100%;
    height: 75vh;
    border: 1px solid var(--ftm-border);
    background: #fff;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ftm-shadow);
}

/* User Dashboard Sidebar (if used separately from Admin) */
.user-sidebar .nav-link {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.user-sidebar .nav-link.active {
    background-color: var(--ftm-primary-subtle);
    color: var(--ftm-primary) !important;
}