:root {
    --fm-green: #10b981;
    --fm-green-dark: #059669;
    --fm-green-light: #34d399;
    --fm-black: #111827;
    --fm-dark: #1f2937;
    --fm-dark-light: #2d3748;
    --fm-gray: #374151;
    --fm-light: #f3f4f6;
    --fm-white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--fm-light);
    color: var(--fm-black);
    min-height: 100vh;
}

/* Navbar */
.navbar-fm {
    background: var(--fm-dark) !important;
    padding: .75rem 0;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(270deg, var(--fm-green) 0%, var(--fm-green-light) 40%, transparent 100%);
    border-image-slice: 1;
}
.navbar-fm .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--fm-green) !important;
}

/* Horizontal sub-nav */
.subnav-fm {
    background: var(--fm-dark-light);
}
.subnav-fm .nav-link {
    color: rgba(255,255,255,.65);
    font-weight: 500;
    font-size: .875rem;
    padding: .5rem 1rem;
    border-radius: .375rem;
    transition: all .15s;
}
.subnav-fm .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.subnav-fm .nav-link.active {
    color: #fff;
    background: var(--fm-green);
}
.navbar-fm .navbar-brand span { color: var(--fm-white); }
.navbar-fm .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    transition: color .2s;
}
.navbar-fm .nav-link:hover { color: var(--fm-green) !important; }

/* Hero / Splash */
.splash-hero {
    background: linear-gradient(135deg, var(--fm-black) 0%, var(--fm-dark) 50%, var(--fm-gray) 100%);
    color: var(--fm-white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.splash-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.splash-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.splash-hero h1 span { color: var(--fm-green); }
.splash-hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 2rem;
    max-width: 600px;
}
.btn-fm {
    background: var(--fm-green);
    border: none;
    color: var(--fm-white);
    padding: .75rem 2rem;
    font-weight: 600;
    border-radius: .5rem;
    transition: all .2s;
}
.btn-fm:hover {
    background: var(--fm-green-dark);
    color: var(--fm-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,.4);
}
.btn-fm-outline {
    background: transparent;
    border: 2px solid var(--fm-green);
    color: var(--fm-green);
    padding: .75rem 2rem;
    font-weight: 600;
    border-radius: .5rem;
    transition: all .2s;
}
.btn-fm-outline:hover {
    background: var(--fm-green);
    color: var(--fm-white);
    transform: translateY(-2px);
}

/* Features section */
.features-section {
    padding: 5rem 0;
    background: var(--fm-white);
}
.features-section h2 { font-weight: 700; margin-bottom: 3rem; }
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: all .3s;
    border: 1px solid #e5e7eb;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    border-color: var(--fm-green);
}
.feature-card .icon {
    width: 64px;
    height: 64px;
    background: rgba(16,185,129,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--fm-green);
}
.feature-card h5 { font-weight: 600; margin-bottom: .75rem; }
.feature-card p { color: #6b7280; font-size: .9rem; }

/* Pricing */
.pricing-section {
    padding: 5rem 0;
    background: var(--fm-light);
}
.pricing-card {
    background: var(--fm-white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all .3s;
    height: 100%;
}
.pricing-card:hover { border-color: var(--fm-green); }
.pricing-card.featured {
    border-color: var(--fm-green);
    box-shadow: 0 0 30px rgba(16,185,129,.15);
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fm-green);
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 1.5rem 0;
}
.pricing-card ul li {
    padding: .5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.pricing-card ul li::before {
    content: '✓';
    color: var(--fm-green);
    font-weight: 700;
    margin-right: .5rem;
}

/* Dashboard */
.dashboard-sidebar {
    background: var(--fm-black);
    min-height: calc(100vh - 56px);
    color: var(--fm-white);
    padding: 1.5rem;
}
.dashboard-sidebar .nav-link {
    color: rgba(255,255,255,.7);
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: .25rem;
    transition: all .2s;
}
.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: rgba(16,185,129,.15);
    color: var(--fm-green);
}
.stat-card {
    background: var(--fm-white);
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.5rem;
    transition: all .2s;
}
.stat-card:hover { border-color: var(--fm-green); box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fm-green);
}
.stat-card .stat-label {
    color: #6b7280;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Upload area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    background: var(--fm-light);
}
.upload-area:hover,
.upload-area.dragover {
    border-color: var(--fm-green);
    background: rgba(16,185,129,.05);
}
.upload-area .upload-icon {
    font-size: 3rem;
    color: var(--fm-green);
    margin-bottom: 1rem;
}
.progress-fm {
    height: .5rem;
    border-radius: .25rem;
    background: #e5e7eb;
}
.progress-fm .progress-bar {
    background: var(--fm-green);
    transition: width .3s ease;
}

/* Admin */
.admin-sidebar {
    background: var(--fm-black);
    min-height: 100vh;
    color: var(--fm-white);
}
.admin-sidebar .brand {
    padding: 1.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .brand span { color: var(--fm-green); }
.admin-sidebar .nav-link {
    color: rgba(255,255,255,.7);
    padding: .75rem 1.25rem;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--fm-white);
    background: rgba(16,185,129,.1);
    border-left-color: var(--fm-green);
}

/* Cards */
.card-fm {
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}
.card-fm .card-header {
    background: var(--fm-black);
    color: var(--fm-white);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Tables */
.table-fm th {
    background: var(--fm-black);
    color: var(--fm-white);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border: none;
}
.table-fm td { vertical-align: middle; }
.table-fm tr:hover td { background: rgba(16,185,129,.03); }

/* Badges */
.badge-fm { background: var(--fm-green); color: var(--fm-white); }
.badge-dark { background: var(--fm-black); color: var(--fm-white); }

/* Footer */
.footer-fm {
    background: var(--fm-black);
    color: rgba(255,255,255,.6);
    padding: 2rem 0;
}

/* Misc */
.text-fm { color: var(--fm-green); }
.bg-fm { background: var(--fm-green); }
.bg-fm-dark { background: var(--fm-black); }
.border-fm { border-color: var(--fm-green) !important; }

/* Dropdown for file list */
.file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    margin-bottom: .5rem;
    transition: all .2s;
}
.file-item:hover { border-color: var(--fm-green); background: rgba(16,185,129,.02); }
.file-icon {
    width: 40px;
    height: 40px;
    background: rgba(16,185,129,.1);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-green);
    margin-right: 1rem;
    font-size: 1.25rem;
}
.file-info { flex: 1; }
.file-info .name { font-weight: 600; }
.file-info .meta { font-size: .8rem; color: #6b7280; }
.file-actions .btn { padding: .375rem .75rem; font-size: .85rem; }

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--fm-light);
}
.auth-card {
    background: var(--fm-white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}
.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-card .auth-logo h2 {
    font-weight: 800;
    color: var(--fm-black);
}
.auth-card .auth-logo h2 span { color: var(--fm-green); }
.auth-card .form-control {
    border-radius: .5rem;
    padding: .75rem 1rem;
    border: 1px solid #d1d5db;
}
.auth-card .form-control:focus {
    border-color: var(--fm-green);
    box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

/* API docs code blocks */
.code-block {
    background: #0d1117;
    color: #e6edf3;
    border: 1px solid #30363d;
    border-radius: .5rem;
    padding: .75rem;
    font-size: .8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}
.code-block code { color: #e6edf3; }

/* Responsive */
@media (max-width: 768px) {
    .splash-hero h1 { font-size: 2.5rem; }
    .splash-hero { padding: 5rem 0 3rem; }
    .dashboard-sidebar { min-height: auto; }
}
