/* EVLBOX Adminer dark theme */
:root {
  --bg:     #0d0d1a;
  --bg2:    #13132b;
  --bg3:    #1c1c3a;
  --border: #2e2e55;
  --text:   #c8c8de;
  --muted:  #7070a0;
  --accent: #00d4ff;
  --accent2:#0099cc;
  --link:   #60c8ff;
}

* { box-sizing: border-box; }

body, html {
  background: var(--bg) !important;
  color: var(--text) !important;
  font: 15px/1.6 'Segoe UI', Arial, sans-serif !important;
  margin: 0;
}

/* All links */
a, a:visited { color: var(--link) !important; text-decoration: none; }
a:hover      { color: #ffffff !important; text-decoration: underline; }

/* Headings */
h1, h2, h3 { color: var(--accent) !important; font-weight: 600; margin: 0 0 10px; }

/* Sidebar */
#menu {
  background: var(--bg2) !important;
  border-right: 1px solid var(--border) !important;
  padding: 14px 12px;
  min-height: 100vh;
}
#menu a        { color: var(--text) !important; display: block; padding: 3px 0; font-size: 14px; }
#menu a:hover  { color: var(--accent) !important; text-decoration: none; }
#menu h1       { color: var(--accent) !important; font-size: 1.1em; margin-bottom: 10px; }
#menu .logout  { color: var(--muted) !important; font-size: 0.85em; }

/* Logo area — <h1> contains <a id="h1">, so selector must target the h1 element itself */
#menu h1 {
  background: var(--bg2) !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px 12px !important;
  margin: 0 !important;
}
#menu h1 a { color: var(--accent) !important; font-weight: 700; font-size: 1.15em; }
#menu h1 span.version { color: var(--muted) !important; font-size: 0.75em; display: block; }

/* Breadcrumb */
#breadcrumb, p#breadcrumb {
  background: var(--bg2) !important;
  color: var(--text) !important;
  padding: 8px 14px !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 13px;
}
#breadcrumb a { color: var(--link) !important; }

/* Main content */
#content, div#content { background: var(--bg) !important; padding: 16px !important; }

/* Section headers (e.g. "Database: foo") */
h2, #content > h2 {
  background: var(--bg3) !important;
  color: var(--accent) !important;
  padding: 8px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 3px;
  margin-bottom: 14px;
}

/* Tabs */
.tabs, p.links { border-bottom: 2px solid var(--border) !important; margin-bottom: 14px; padding: 0; }
.tabs a, p.links a {
  display: inline-block; padding: 5px 14px;
  color: var(--muted) !important;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tabs a:hover, p.links a:hover,
.tabs a.active, p.links a.active { color: var(--accent) !important; border-bottom-color: var(--accent) !important; text-decoration: none; }

/* Tables */
table { border-collapse: collapse; width: 100%; }
th {
  background: var(--bg3) !important;
  color: var(--accent) !important;
  padding: 8px 12px;
  border: 1px solid var(--border) !important;
  text-align: left; font-weight: 600; font-size: 14px;
}
td { padding: 7px 12px; border: 1px solid var(--border) !important; vertical-align: top; color: var(--text) !important; }
tr.odd  td, tr:nth-child(odd)  td { background: var(--bg)  !important; }
tr.even td, tr:nth-child(even) td { background: var(--bg2) !important; }
tr:hover td { background: var(--bg3) !important; }

/* Forms */
input, select, textarea {
  background: var(--bg2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  padding: 6px 10px; border-radius: 3px; font-size: 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; }
input[type=submit], button, .button {
  background: var(--accent2) !important;
  color: #fff !important;
  border: none !important;
  padding: 7px 18px; border-radius: 3px; cursor: pointer;
  font-weight: 600; font-size: 14px;
}
input[type=submit]:hover, button:hover, .button:hover {
  background: var(--accent) !important; color: #000 !important;
}

/* Fieldset */
fieldset { background: var(--bg2) !important; border: 1px solid var(--border) !important; border-radius: 4px; padding: 14px; margin-bottom: 14px; }
legend { color: var(--accent) !important; font-weight: 600; padding: 0 6px; font-size: 14px; }

/* Messages */
.message { background: #0a2a18 !important; border: 1px solid #1c6b3a !important; color: #6be09a !important; padding: 9px 14px; border-radius: 3px; margin-bottom: 12px; }
.error   { background: #2a0a0a !important; border: 1px solid #6b1c1c !important; color: #e07070 !important; padding: 9px 14px; border-radius: 3px; margin-bottom: 12px; }

/* Code / pre */
pre, code { background: var(--bg3) !important; border: 1px solid var(--border) !important; padding: 3px 7px; border-radius: 2px; color: #90c8ff !important; font-size: 13px; }
hr { border: none; border-top: 1px solid var(--border) !important; margin: 14px 0; }
select option { background: var(--bg2) !important; }
