/* Extra CSS for Poolula Platform Documentation */

/* Custom color scheme for code blocks */
.highlight .hll { background-color: #49483e; }
.highlight { background: #272822; color: #f8f8f2; }

/* Improve table styling */
table {
    border-collapse: collapse;
    width: 100%;
}

table th {
    background-color: var(--md-primary-fg-color);
    color: var(--md-primary-bg-color);
    font-weight: 600;
    padding: 0.8em;
}

table td {
    padding: 0.6em;
    border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

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

.grid.cards > div {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.2rem;
    padding: 1rem;
    transition: box-shadow 0.3s;
}

.grid.cards > div:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Icon styling */
.lg.middle {
    font-size: 2em;
    vertical-align: middle;
    margin-right: 0.5em;
}

/* Code block improvements */
.highlight pre {
    padding: 1em;
    overflow-x: auto;
    border-radius: 0.2rem;
}

/* Admonition customization */
.admonition {
    border-left: 4px solid var(--md-accent-fg-color);
    padding: 0.6em 0.8em;
    margin: 1em 0;
}

.admonition.tip {
    border-left-color: #00c853;
}

.admonition.warning {
    border-left-color: #ff9100;
}

.admonition.danger {
    border-left-color: #ff5252;
}

/* Improve spacing for sequential code blocks */
.highlight + .highlight {
    margin-top: 0.5em;
}

/* Better link styling in tables */
table a {
    color: var(--md-accent-fg-color);
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* Mermaid diagram styling - Enhanced for better visibility */
.mermaid {
    text-align: center;
    margin: 2em 0;
    overflow: visible;
}

/* Make Mermaid SVG diagrams larger and more readable */
.mermaid svg {
    max-width: 100% !important;
    height: auto !important;
    min-height: 500px;
    display: inline-block;
}

/* Larger diagrams on big screens */
@media (min-width: 1200px) {
    .mermaid svg {
        min-height: 700px;
    }
}

/* Extra large diagrams on very large screens */
@media (min-width: 1600px) {
    .mermaid svg {
        min-height: 800px;
    }
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 0.2rem;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background-color: #00c853;
    color: white;
}

.status-badge.in-progress {
    background-color: #ff9100;
    color: white;
}

.status-badge.pending {
    background-color: #757575;
    color: white;
}
