/* Custom styling for Doxygen documentation */

/* Add "Back to Documentation" banner at the top */
body::before {
    content: "";
    display: block;
    background: #159957;
    background-image: linear-gradient(120deg, #155799, #159957);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Add the link using a pseudo-element (limited, but works without HTML changes) */
/* Better approach: Add actual link via HTML_HEADER, but this is a CSS-only solution */

/* Style the header to accommodate the banner */
#titlearea {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e1e4e8;
    padding: 10px 0;
}

/* Add a custom banner div (we'll inject this via HTML_EXTRA_FILES) */
.doc-navigation-banner {
    background: #159957;
    background-image: linear-gradient(120deg, #155799, #159957);
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 500;
}

.doc-navigation-banner a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    margin: 0 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.doc-navigation-banner a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.doc-navigation-banner a:first-child {
    font-weight: bold;
}

/* Improve overall styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Make code blocks stand out */
pre.fragment {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
}

/* Style tables better */
table.params,
table.retval,
table.fieldtable {
    border-collapse: collapse;
    border: 1px solid #e1e4e8;
}

table.params th,
table.retval th,
table.fieldtable th {
    background-color: #f6f8fa;
    font-weight: 600;
}

/* Improve navigation tree */
#nav-tree {
    background-color: #f9f9f9;
}

/* Style warnings and notes */
dl.warning,
dl.note {
    border-left: 4px solid #f0ad4e;
    padding-left: 16px;
    margin: 16px 0;
}

dl.note {
    border-left-color: #0366d6;
}
