/* Basic dark colors */
html, body {
  background: #0a0a0a !important;
  color: #e0e0e0 !important;
  background-image: none !important;
}

/* Links */
a { color: #4a90e2; }
a:hover, a:focus { color: #79b4ff; }

/* Containers and header */
#page { background: transparent !important; }
#header { border-bottom: 1px solid #333; }

/* Top menu */
#mainmenu { background: #121212 !important; border-bottom: 1px solid #333; }
#mainmenu a { color: #e0e0e0 !important; }
#mainmenu a:hover { color: #4a90e2 !important; }
#mainmenu ul, #mainmenu li { background: transparent !important; }

/* Headings */
h1, h2, h3, h4, h5, h6 { color: #ffffff; }

/* Yii grid tables */
.table, table, table.items { background: #1a1a1a; border-color: #2a2a2a; }
.table th, table th, table.items th { background: #252525; color: #fff; border-color: #333; }
.table td, table td, table.items td { background: #1a1a1a; color: #e0e0e0; border-top: 1px solid #2a2a2a; }
.grid-view .summary { color: #aaa; }
.grid-view .keys, .grid-view .pager { background: #121212; border-color: #333; }

/* Forms */
label { color: #ddd; }
input[type=text], input[type=password], input[type=email], textarea, select {
  background: #111; color: #e0e0e0; border: 1px solid #444; box-shadow: none;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
  border-color: #4a90e2; outline: none; box-shadow: 0 0 0 2px rgba(74,144,226,0.15);
}
input[type=submit], button, .button {
  background: #2a2a2a; color: #e0e0e0; border: 1px solid #444; cursor: pointer;
}
input[type=submit]:hover, button:hover, .button:hover { background: #333; border-color: #555; }

/* Messages / flashes */
.error, .notice, .success, .info { background: #151515; color: #e0e0e0; border-color: #333; }

/* Breadcrumbs */
.breadcrumbs { color: #aaa; }
.breadcrumbs a { color: #79b4ff; }

/* Remove legacy bg images if any */
body, #page, #header, #mainmenu, .content { background-image: none !important; }

/* High-contrast tables (improved readability) */
.table, table, table.items {
  background: #121212 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #3a3a3a !important;
}
.table th, table th, table.items th {
  background: #0f0f10 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #3a3a3a !important;
  font-weight: 700 !important;
}
.table td, table td, table.items td {
  color: #e6e6e6 !important;
  border-top: 1px solid #2f2f2f !important;
}
/* Zebra striping */
table tbody tr:nth-child(odd) td { background: #141414 !important; }
table tbody tr:nth-child(even) td { background: #101010 !important; }
/* Hover highlight */
table tbody tr:hover td { background: #1e1e1e !important; }
/* Sticky header for long lists */
table thead th { position: sticky; top: 0; z-index: 2; }
/* Cell spacing and sizing */
.table th, table th, table.items th, .table td, table td, table.items td {
  padding: 10px 12px !important;
}
/* Emphasize first column (often labels) */
table tbody td:first-child { color: #ffffff !important; font-weight: 600 !important; }

/* Hero description */
.hero-desc {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.4;
  margin-left: 250px; /* align with logo */
  margin-top: 6px;
  max-width: 900px;
}

/* Remove white backgrounds - ensure full dark theme */
#page, #content, .container, .span-24 {
  background: transparent !important;
}

/* Search form - remove white background */
.search-form, div.search-form {
  background: transparent !important;
  padding: 15px !important;
  border: 1px solid #333 !important;
}

/* Ensure all divs have dark background */
div {
  background-color: transparent;
}

/* Content area */
#content {
  background: transparent !important;
}

/* Remove any remaining white backgrounds */
.white, .bg-white {
  background: transparent !important;
}

/* Grid view search */
.grid-view .search-form {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

/* Form containers */
.form, form {
  background: transparent !important;
}

/* Wide containers */
.wide {
  background: transparent !important;
}

/* Aggressive fix for search form white background */
.search-form, div.search-form, .grid-view .search-form {
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
}

/* Remove any light gray backgrounds */
.row, .column, .columns, .span {
  background: transparent !important;
}

/* Yii grid view filters */
.filters input, .filters select {
  background: #111 !important;
}

/* All form rows */
.form .row, form .row, div.row {
  background: transparent !important;
}

/* Strong tags in forms */
.search-form strong {
  background: transparent !important;
}
