/* EasySign Documentation Styles */

:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --bg-dark: #0f172a;
    --bg-main: #1e293b;
    --surface: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.doc-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.doc-sidebar {
    width: 280px;
    background: var(--bg-main);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.doc-sidebar .brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.doc-sidebar .brand h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.doc-sidebar .brand span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.doc-nav {
    list-style: none;
}

.doc-nav li {
    margin-bottom: 0.25rem;
}

.doc-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.doc-nav a:hover,
.doc-nav a.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border-left-color: var(--primary);
}

.doc-nav .section-title {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Main Content */
.doc-main {
    flex: 1;
    margin-left: 280px;
    padding: 3rem;
    max-width: 900px;
}

.doc-main h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.doc-main h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-main);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.doc-main h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary-light);
}

.doc-main p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.doc-main ul,
.doc-main ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.doc-main li {
    margin-bottom: 0.5rem;
}

/* Code blocks */
pre {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--primary-light);
}

pre code {
    color: var(--text-main);
}

.inline-code {
    background: var(--surface);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--surface);
    font-weight: 600;
    color: var(--text-main);
}

td {
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.feature-card h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: #1a1a1a;
}

/* Steps */
.steps {
    counter-reset: step;
    margin: 1.5rem 0;
}

.step {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .doc-sidebar {
        display: none;
    }

    .doc-main {
        margin-left: 0;
        padding: 1.5rem;
    }
}