/* =========================================================
   PLUTOROCKS CGIT THEME
   Matches main site corporate 2000s space aesthetic
   ========================================================= */

/* ====== PAGE BACKGROUND ====== */
body {
  background: #121624;
  color: #e4e9f2;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* ====== MAIN WRAPPER ====== */
div#cgit {
  padding: 10px;
  margin: 0 auto;
  max-width: 1100px;
  background: #1b2238;
  border-left: 1px solid #2a3454;
  border-right: 1px solid #2a3454;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  color: #e4e9f2;
}

/* ====== LINKS ====== */
div#cgit a {
  color: #7bbcd4;
  text-decoration: none;
}

div#cgit a:hover {
  color: #9a8ad6;
  text-decoration: underline;
}

/* ====== TABLE RESET ====== */
div#cgit table {
  border-collapse: collapse;
}

/* ====== HEADER ====== */
div#cgit table#header {
  width: 100%;
  background: #18203a;
  border-bottom: 2px solid #2a3454;
}

div#cgit table#header td.main {
  font-size: 200%;
  padding: 8px 10px;
  color: #e4e9f2;
}

div#cgit table#header td.main a {
  color: #e4e9f2;
}

div#cgit table#header td.sub {
  color: #9a8ad6;
  border-top: 1px solid #2a3454;
  padding: 6px 10px;
  background: #18203a;
}

/* ====== SEARCH FORM ====== */
div#cgit table#header td.form input[type="text"],
div#cgit table#header td.form select,
div#cgit table.tabs td.form input[type="text"],
div#cgit table.tabs td.form select {
  background: #131829;
  border: 1px solid #2a3454;
  color: #e4e9f2;
  padding: 3px 6px;
  font-size: 10pt;
}

div#cgit table#header td.form input[type="submit"],
div#cgit table.tabs td.form input[type="submit"] {
  background: linear-gradient(#7bbcd4, #2a3454);
  border: 1px solid #1b2238;
  color: #e4e9f2;
  padding: 3px 10px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

div#cgit table#header td.form input[type="submit"]:hover,
div#cgit table.tabs td.form input[type="submit"]:hover {
  filter: brightness(1.06);
}

/* ====== TABS ====== */
div#cgit table.tabs {
  width: 100%;
  background: #2a3454;
  border-bottom: 3px solid #121624;
}

div#cgit table.tabs td a {
  padding: 6px 12px;
  color: #e4e9f2;
  display: inline-block;
}

div#cgit table.tabs td a.active {
  background: #1b2238;
  border-top: 2px solid #7bbcd4;
}

/* ====== PATH BAR ====== */
div#cgit div.path {
  background: #18203a;
  border-bottom: 1px solid #2a3454;
  padding: 6px 20px;
}

/* ====== CONTENT AREA ====== */
div#cgit div.content {
  padding: 20px;
  background: #1b2238;
  border-bottom: 3px solid #2a3454;
}

/* ====== LIST TABLES ====== */
div#cgit table.list {
  width: 100%;
}

div#cgit table.list tr:nth-child(even) {
  background: #18203a;
}

div#cgit table.list tr:nth-child(odd) {
  background: #1b2238;
}

div#cgit table.list tr:hover {
  background: #232b45;
}

div#cgit table.list th {
  color: #7bbcd4;
  border-bottom: 1px solid #2a3454;
  padding: 4px 8px;
}

div#cgit table.list td {
  padding: 4px 8px;
}

/* ====== BLOB VIEW ====== */
div#cgit div#blob {
  background: #131829;
  border: 1px solid #2a3454;
}

div#cgit table.blob td.linenumbers {
  background: #18203a;
  color: #9a8ad6;
  border-right: 1px solid #2a3454;
}

/* ====== DIFF COLORS ====== */
div#cgit table.diff td div.add { color: #89d089; }
div#cgit table.diff td div.del { color: #f58b8b; }
div#cgit table.diff td div.hunk { color: #7bbcd4; }

/* ====== DOWNLOAD BOX ====== */
div#cgit table#downloads {
  background: #18203a;
  border: 1px solid #2a3454;
}

div#cgit table#downloads th {
  background: #2a3454;
}

/* ====== PANEL BOXES ====== */
div#cgit div.cgit-panel table {
  background: #18203a;
  border: 1px solid #2a3454;
}

/* ====== FOOTER ====== */
div#cgit div.footer {
  background: #18203a;
  border-top: 1px solid #2a3454;
  padding: 6px 0;
  color: #9a8ad6;
}

div#cgit div.footer a {
  color: #7bbcd4;
}

/* Resize cgit logo */
div#cgit table#header td.logo img {
  max-height: 120px;   /* adjust this number */
  width: auto;
  height: auto;
}

/* Push search form to the far right */
div#cgit table#header td.form {
  text-align: right;
  vertical-align: middle;
  padding-right: 20px;
  width: 100%;
}

/* Keep the search form inline and right-aligned */
div#cgit table#header td.form form {
  display: inline-block;
}

/* If search also appears in tabs, align that too */
div#cgit table.tabs td.form {
  text-align: right;
  padding-right: 20px;
}

/* =====================================================
   PLUTOROCKS HEADER STYLE FOR CGIT
   Matches main site header aesthetic
   ===================================================== */

/* Header container */
div#cgit table#header {
  background: linear-gradient(
    to bottom,
    #2a3454 0%,
    #1b2238 100%
  );
  border-bottom: 3px solid #121624;
  padding: 0;
}

div#cgit table#header td.logo {
  width: 1px;              /* shrink-to-fit behavior */
  padding: 12px 10px 12px 16px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Resize logo slightly cleaner */
div#cgit table#header td.logo img {
  max-height: 48px;
  width: auto;
}

/* Main title (root-title) */
div#cgit table#header td.main {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ffffff;
  padding: 12px 0 4px 0;
}

/* Make title cyan like main site */
div#cgit table#header td.main a {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Subtitle (root-desc) */
div#cgit table#header td.sub {
  font-size: 13px;
  color: #7bbcd4;   /* cyan */
  border-top: none;
  padding: 0 0 12px 0;
  letter-spacing: 0.5px;
}

/* Optional: subtle glow */
div#cgit table#header td.main,
div#cgit table#header td.sub {
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}