/* Dark theme styles */
html, body {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}

/* Page header styling */
.page-header {
  background-color: #1a1a1a;
  border-bottom: 1px solid #404040;
}

.page-header h1 {
  color: #ffffff;
}

.page-header h1 small {
  color: #888888;
}

.navbar {
  background-color: #2d2d2d;
  border-bottom: 1px solid #404040;
}

.navbar .navbar-inner {
  background-color: #2d2d2d;
  background-image: none;
  border: none;
  box-shadow: none;
}

.navbar .brand {
  color: #ffffff !important;
}

.navbar .nav > li > a {
  color: #cccccc !important;
}

.navbar .nav > li > a:hover {
  color: #ffffff !important;
  background-color: #404040;
}

/* Custom container */
.container-narrow {
  margin: 0 auto;
  max-width: 700px; }

.container-narrow > hr {
  margin: 30px 0;
  border-top: 1px solid #404040; }

.navbar .nav {
  float: right; }

/* posts index */
.post > h3.title {
  position: relative;
  padding-top: 10px; }

.post > h3.title a {
  color: #ffffff;
}

.post > h3.title span.date {
  position: absolute;
  right: 0;
  font-size: 0.9em;
  color: #888888; }

.post > .more {
  margin: 10px 0;
  text-align: left; }

/* post-full*/
.post-full .date {
  margin-bottom: 20px;
  font-weight: bold;
  color: #cccccc; }

/* Links */
a {
  color: #66b3ff;
}

a:hover {
  color: #99ccff;
}

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

/* Code blocks */
pre {
  background-color: #2d2d2d;
  border: 1px solid #404040;
  color: #e0e0e0;
}

code {
  background-color: #2d2d2d;
  color: #e0e0e0;
  border: none;
}

/* Blockquotes */
blockquote {
  border-left: 5px solid #404040;
  color: #cccccc;
}

/* tag_box */
.tag_box {
  list-style: none;
  margin: 0;
  overflow: hidden; }

.tag_box li {
  line-height: 28px; }

.tag_box li i {
  opacity: 0.9; }

.tag_box.inline li {
  float: left; }

.tag_box a {
  padding: 3px 6px;
  margin: 2px;
  background: #404040;
  color: #e0e0e0;
  border-radius: 3px;
  text-decoration: none;
  border: 1px dashed #666666; }

.tag_box a span {
  vertical-align: super;
  font-size: 0.8em; }

.tag_box a:hover {
  background-color: #505050; }

.tag_box a.active {
  background: #57A957;
  border: 1px solid #4c964d;
  color: #FFF; }

/* Footer */
footer {
  color: #888888;
}

footer a {
  color: #66b3ff;
}

/* Tables */
table {
  background-color: #2d2d2d;
  color: #e0e0e0;
}

table th {
  background-color: #404040;
  color: #ffffff;
}

table td {
  border-top: 1px solid #404040;
}

/* Form elements */
input, textarea, select {
  background-color: #2d2d2d;
  color: #e0e0e0;
  border: 1px solid #404040;
}

input:focus, textarea:focus, select:focus {
  border-color: #66b3ff;
  box-shadow: 0 0 5px rgba(102, 179, 255, 0.3);
}

/* Additional Bootstrap component overrides */
.row-fluid, .span12, .container-fluid, .row {
  background-color: transparent;
  color: inherit;
}

/* Icons - make them visible */
[class^="icon-"], [class*=" icon-"] {
  color: #cccccc;
}

/* Disabled pagination links */
.pagination ul > .disabled > a, .pagination ul > .disabled > span {
  background-color: #333333;
  color: #666666;
}

/* Stronger overrides for any missed elements */
.navbar-inner, .navbar .navbar-inner {
  background: #2d2d2d !important;
  background-color: #2d2d2d !important;
  background-image: none !important;
  filter: none !important;
}

/* Ensure text shadows are removed everywhere */
.navbar .brand, .navbar .nav > li > a {
  text-shadow: none !important;
}

/* Fix any remaining Bootstrap gradients or shadows */
.navbar .btn-navbar {
  background: #404040 !important;
  background-image: none !important;
  filter: none !important;
  box-shadow: none !important;
}