/* --- External Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&family=Roboto+Mono:wght@400;700&display=swap');

/* --- General Styles --- */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    margin: 0;
    margin-bottom: 60px;
    background-color: #121212;
    color: #e0e0e0;
    border: none;
}

a {
    color: #008080;
    text-decoration: none;
}

a:hover, a:active {
    color: #00a0a0;
    text-decoration: underline;
}

/* --- Layout Components (Full Width) --- */
div.page_header, 
div.page_nav, 
div.page_path, 
div.page_footer, 
div.page_body {
    width: 100%;
    box-sizing: border-box;
}

/* --- Header Styling --- */
div.page_header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: bold;
    background-color: #008080;
    color: #ffffff;
}

img.logo {
    display: block;
    width: 64px;
    height: 64px;
    border: none;
}

div.page_header a, 
div.page_header a:visited, 
a.header {
    color: #ffffff !important;
}

/* --- Navigation & Search Bar (Centered & Dark) --- */
div.page_nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 8px 15px;
    color: #1e1e1e;
    background-color: #1e1e1e;
    line-height: 24px;
}

div.page_nav a {
    padding: 2px 8px;
    margin: 0;
    display: inline-block;
    border-radius: 3px;
    transition: background 0.2s;
}

div.page_nav a:hover {
    background-color: rgba(0, 128, 128, 0.2); /* Subtle teal glow */
    text-decoration: none;
}

div.page_nav b {
    padding: 2px 8px;
    background-color: #008080;
    color: #ffffff;
    border-radius: 3px;
    font-weight: bold;
}

/* Style the Search Container */
div.search,
div.projsearch {
    width: 100%;
    padding: 10px 15px;
    background-color: #1e1e1e;
    box-sizing: border-box;
    border-bottom: 1px solid #333;
}

div.search form,
div.projsearch form {
    display: flex;
    width: 100%
    gap: 0;
}

div.search input[type="text"],
div.projsearch input[type="text"],
#searchtext,
#projecttext {
    flex-grow: 1;
    background-color: #121212 !important;
    color: #ffffff;
    border: 1px solid #008080 !important;
    border-right: none !important; 
    padding: 8px 12px;
    border-radius: 3px 0 0 3px;
    font-family: 'Roboto', sans-serif;
    outline: none;
}

div.search input[type="submit"],
div.projsearch input[type="submit"] {
    background-color: #008080 !important;
    color: #ffffff !important;
    border: 1px solid #008080 !important;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    font-weight: bold;
}

div.search input[type="submit"]:hover,
div.projsearch input[type="submit"]:hover {
    background-color: #00a0a0;
}

div.search label, 
div.projsearch label {
    color: #008080;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 10px;
}

/* Dropdown Select menu */
select {
    background-color: #121212 !important;
    color: #008080 !important;
    border: 1px solid #333 !important;
    padding: 3px;
    border-radius: 3px;
}

div.page_path {
    padding: 8px 15px;
    font-weight: bold;
    border-bottom: 1px solid #333;
    color: #cccccc;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: #121212;
    border: 1px solid #008080;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-left: 10px;
    margin-right: 5px;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: #008080;
}

/* The checkmark symbol */
input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 12px;
    color: white;
}

/* --- Footer Styling --- */
div.page_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 35px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #008080;
    border-top: 1px solid #006666;
    z-index: 9999;
}

div.page_footer_text {
    color: #ffffff;
    font-style: italic;
}

/* --- Data Tables (Full Screen) --- */
table.project_list, 
table.tree, 
table.combined_search, 
table.diff_tree, 
table.blame,
table.log,
table.summary,
table.shortlog,
table.history {
    width: 100% !important;
    border-collapse: collapse;
    margin: 0;
    font-size: 12px;
}

table.project_list td, table.project_list th, 
table.tree td, table.tree th,
table.summary td, table.shortlog td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #252525;
}

table.summary td.label, 
table.projects_list td.label {
    width: 150px; /* Fixed width for labels to keep things tidy */
    color: #008080;
    font-weight: bold;
    padding: 10px 15px;
    white-space: nowrap;
}

tr:nth-child(even) {
    background-color: #181818;
}

table.project_list th:nth-child(3),
table.project_list td:nth-child(3),
table.project_list th:nth-child(4),
table.project_list td:nth-child(4) {
    display: none;
}

.page_body {
    background-color: #1e1e1e !important;
    color: #d4d4d4 !important;
    font-family: 'Roboto Mono', monospace !important;
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 15px !important;
    border-radius: 4px;
    border: 1px solid #333;
    white-space: pre !important;
    overflow-x: auto !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
}

.string { color: #ce9178; } 
.keyword { color: #569cd6; font-weight: bold; } 
.comment { color: #6a9955; font-style: italic; } 
.variable { color: #9cdcfe; } 
.def { color: #dcdcaa; } 

div#generating_info {
    margin: 20px 0;
    font-size: 12px;
    text-align: center;
    color: #555555;
}
