/* CRM Documentation Styles */

:root {
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    color: var(--gray-800);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: white;
    box-shadow: var(--shadow-lg);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    padding: 20px 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 12px 20px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-links a:hover {
    background: var(--gray-50);
    border-left-color: var(--primary-blue);
    padding-left: 25px;
}

.nav-links a.active {
    background: var(--gray-100);
    color: var(--primary-blue);
    font-weight: 600;
    border-left-color: var(--primary-blue);
}

.nav-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 15px 20px;
}

/* Main Content */
.content {
    margin-left: 280px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
}

.doc-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-blue);
}

.doc-header h1 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
}

/* Documentation Sections */
.doc-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.doc-section h2 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.doc-section h3 {
    color: var(--gray-800);
    font-size: 1.25rem;
    margin: 20px 0 10px 0;
}

.doc-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.doc-section ul, .doc-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.doc-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* Documentation Links Grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.doc-link-card {
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.doc-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.doc-link-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.doc-link-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.doc-link-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Cost Comparison */
.cost-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cost-card {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 250px;
}

.your-cost {
    border: 3px solid var(--success-green);
}

.commercial-cost {
    border: 3px solid var(--gray-300);
}

.cost-card h3 {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cost-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.cost-period {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 15px;
}

.cost-list {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
    text-align: left;
}

.cost-list li {
    padding: 5px 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-400);
}

.savings-banner {
    background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Architecture Stats */
.architecture-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-box {
    padding: 25px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Start Steps */
.quick-start-steps {
    counter-reset: step-counter;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.quick-start-steps li {
    counter-increment: step-counter;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-blue);
    position: relative;
    padding-left: 60px;
}

.quick-start-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Support Info */
.support-info {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.support-info p {
    margin-bottom: 10px;
}

.support-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Code Blocks */
pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

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

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

th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

tr:hover {
    background: var(--gray-50);
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Alerts/Notices */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--primary-blue);
    color: #1e3a8a;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success-green);
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--warning-yellow);
    color: #92400e;
}

/* Footer */
.doc-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-200);
    text-align: center;
    color: var(--gray-600);
}

.doc-footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .doc-header h1 {
        font-size: 2rem;
    }

    .feature-grid,
    .docs-grid,
    .architecture-stats {
        grid-template-columns: 1fr;
    }

    .cost-comparison {
        flex-direction: column;
    }

    .vs {
        transform: rotate(90deg);
    }
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
    }

    .doc-link-card,
    .feature-card {
        break-inside: avoid;
    }
}
