/* Paramus Documentation Styles - Dark Technical Theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1c1c1c;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
}

/* Layout Container */
.main-container {
    background: linear-gradient(135deg, #000000, #18127b47);
    padding: 0;
    min-height: 100vh;
}

.doc-container {
    max-width: 90%;
    margin: auto;
    background: #2e2e2e;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border-radius: 8px;
}

/* Header Styles */
.doc-header {
    text-align: center;
    padding: 20px 0;
}

.doc-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
}

.header-subtitle {
    margin: 10px 0 0;
    color: #c7c7c7;
    font-size: 1rem;
    font-weight: 400;
}

/* Navigation Links */
.nav-link {
    color: #007aff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-link:visited {
    color: #007aff;
}

/* Disabled/Empty Links */
.nav-link.disabled {
    color: #666 !important;
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
    opacity: 0.6;
}

.nav-link.disabled:hover {
    color: #666 !important;
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #ffffff;
}

h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    color: #ffffff;
}

h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #ffffff;
}

h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

p {
    margin-bottom: 16px;
    color: 1px solid #ffffff65;
    line-height: 1.6;
}

/* Lists */
ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 6px;
    color: #e0e0e0;
}

/* Tables - Fixed Layout with Dense Styling and White Borders */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #2e2e2e;
    border: 1px dotted #ffffffb2;
    border-radius: 8px;
    overflow: hidden;
    color: #e0e0e0a2;
    table-layout: fixed;
}

th {
    background-color: #333;
    color: #007aff;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ffffff65;
    font-size: 0.85rem;
    line-height: 1.2;
}

td {
    padding: 6px;
    border: 1px solid #ffffff65;
    background-color: #434242;
    color: #e0e0e0;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.3;
    vertical-align: top;
}

tbody tr:nth-child(odd) td {
    background-color: #333;
}

tbody tr:nth-child(even) td {
    background-color: #2e2e2e;
}

/* Agent Table - specific styling with dense layout */
.agent-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #2e2e2e;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dotted #ffffff;
    table-layout: fixed;
}

.agent-table th {
    background: #333;
    color: #007aff;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ffffff65;
    font-size: 0.8rem;
    line-height: 1.2;
}

.agent-table td {
    padding: 6px;
    border: 1px solid #ffffff65;
    background-color: #434242;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.3;
    vertical-align: top;
}

.agent-table tr:nth-child(odd) td {
    background-color: #333;
}

.agent-table tr:nth-child(even) td {
    background-color: #2e2e2e;
}

/* Version table specific column widths and styling */
.version-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #2e2e2e;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dotted #ffffff;
    table-layout: fixed;
}

.version-table th {
    background: #333;
    color: #007aff;
    padding: 6px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ffffff65;
    font-size: 0.85rem;
    line-height: 1.2;
}

.version-table td {
    padding: 6px;
    border: 1px solid #ffffff65;
    background-color: #434242;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.3;
    vertical-align: top;
}

.version-table tr:nth-child(odd) td {
    background-color: #333;
}

.version-table tr:nth-child(even) td {
    background-color: #2e2e2e;
}

.version-table th:nth-child(1), .version-table td:nth-child(1) { width: 15%; }
.version-table th:nth-child(2), .version-table td:nth-child(2) { width: 15%; }
.version-table th:nth-child(3), .version-table td:nth-child(3) { width: 70%; }

/* Table column widths - Standard layout */
table th:nth-child(1), table td:nth-child(1) { width: 15%; }
table th:nth-child(2), table td:nth-child(2) { width: 15%; }
table th:nth-child(3), table td:nth-child(3) { width: 30%; }
table th:nth-child(4), table td:nth-child(4) { width: 40%; }

/* Agent table specific widths */
.agent-table th:nth-child(1), .agent-table td:nth-child(1) { width: 20%; }
.agent-table th:nth-child(2), .agent-table td:nth-child(2) { width: 50%; }
.agent-table th:nth-child(3), .agent-table td:nth-child(3) { width: 30%; }

/* API Parameter table widths */
.tool-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #2e2e2e;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dotted #ffffff;
    table-layout: fixed;
}

.tool-table th {
    background: #333;
    color: #007aff;
    padding: 6px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ffffff65;
    font-size: 0.85rem;
    line-height: 1.2;
}

.tool-table td {
    padding: 6px;
    border: 1px solid #ffffff65;
    background-color: #434242;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.3;
    vertical-align: top;
}

.tool-table tr:nth-child(odd) td {
    background-color: #333;
}

.tool-table tr:nth-child(even) td {
    background-color: #2e2e2e;
}

.tool-table th:nth-child(5), .tool-table td:nth-child(5) { width: 20%; }

/* License table specific styling */
.license-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #2e2e2e;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dotted #ffffff;
    table-layout: fixed;
}

.license-table th {
    background: #333;
    color: #007aff;
    padding: 6px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ffffff65;
    font-size: 0.85rem;
    line-height: 1.2;
}

.license-table td {
    padding: 6px;
    border: 1px solid #ffffff65;
    background-color: #434242;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.3;
    vertical-align: top;
}

.license-table tr:nth-child(odd) td {
    background-color: #333;
}

.license-table tr:nth-child(even) td {
    background-color: #2e2e2e;
}

.license-table th:nth-child(1), .license-table td:nth-child(1) { width: 20%; }
.license-table th:nth-child(2), .license-table td:nth-child(2) { width: 20%; }
.license-table th:nth-child(3), .license-table td:nth-child(3) { width: 40%; }

/* Code and Pre-formatted text - White boxes on dark background */
pre, code {
    background-color: #ffffff;
    color: #000000;
    padding: 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 8px 0;
    border: 1px solid #ddd;
}

code {
    padding: 2px 6px;
    display: inline;
}

pre {
    display: block;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

/* Sections */
section {
    margin-bottom: 40px;
}

/* Professional Grid Layouts - Clean and Simple */
.feature-grid, .agent-grid {
    display: block;
    margin: 2rem 0;
}

.feature-card, .agent-card {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
    border: none;
    border-radius: 0;
}

.feature-card:hover, .agent-card:hover {
    background: transparent;
}

.feature-card h3, .agent-card h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p, .agent-card p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.feature-card ul, .agent-card ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.feature-card li, .agent-card li {
    padding: 0.25rem 0;
    color: #e0e0e0;
    position: relative;
    padding-left: 0;
}

.feature-card li:before, .agent-card li:before {
    content: none;
}

/* Capability list styling - Clean */
.capability-list {
    list-style: disc;
    padding-left: 1.5rem;
}

.capability-list li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 0;
}

.capability-list li::before {
    content: none;
}

/* Status indicators */
.status-active {
    color: #28a745;
    font-weight: 500;
}

.status-planned {
    color: #007aff;
    font-weight: 500;
}

.status-development {
    color: #fd7e14;
    font-weight: 500;
}

/* Maturity Status Badges - Dense layout compatible */
.maturity-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.maturity-production { background: #155724; color: #d4edda; }
.maturity-advanced { background: #004085; color: #cce7ff; }
.maturity-comprehensive { background: #0056b3; color: #e2f3ff; }
.maturity-core { background: #856404; color: #fff3cd; }
.maturity-stable { background: #721c24; color: #f8d7da; }
.maturity-developing { background: #495057; color: #f0f0f0; }
.maturity-conceptual { background: #0c5460; color: #d1ecf1; }

/* Roadmap Section */
.roadmap-section {
    background: #434242;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #555;
}

/* Professional footer */
.doc-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

/* Section headings - compact style */
.section-heading {
    font-size: 1.1em;
    margin: 0.5em 0;
    color: #ffffff;
}

/* Evaluation table container */
.eval-container {
    max-width: 700px;
    margin-bottom: 1em;
}

.eval-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px dotted #ffffff;
}

.eval-table th {
    padding: 6px;
    border: 1px solid #ffffff65;
    background-color: #333;
    color: #007aff;
    font-size: 0.85rem;
    line-height: 1.2;
}

.eval-table td {
    padding: 6px;
    border: 1px solid #ffffff65;
    background-color: #434242;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.3;
    vertical-align: top;
}

/* Evaluation table column widths */
.eval-table th:nth-child(1), .eval-table td:nth-child(1) { width: 30%; }
.eval-table th:nth-child(2), .eval-table td:nth-child(2) { width: 30%; }
.eval-table th:nth-child(3), .eval-table td:nth-child(3) { width: 40%; }

/* Agent evolution styles */
.agent-evolution h4 {
    margin-top: 0;
    text-align: center;
    color: #007aff;
}

.agent-evolution p {
    font-size: 0.9em;
    margin-top: 1em;
    text-align: justify;
}

/* Chart container */
.chart-container {
    max-width: 60%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

.chart-description {
    font-size: 0.9em;
    margin-top: 1em;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 0 16px;
    }
    
    .doc-container {
        padding: 24px 0;
    }
    
    .doc-header h1 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .agent-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card,
    .agent-card {
        padding: 16px;
    }
      table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 4px 6px;
    }
}

/* Print Styles */
@media print {
    .main-container {
        max-width: none;
        padding: 0;
    }
    
    .nav-link {
        color: #000000;
        text-decoration: none;
    }
    
    .feature-card,
    .agent-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #cccccc;
    }
}
