/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
  background: url('../img/background.jpg?v=3') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #f5f5f5;
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

body > .container {
  padding: 60px 15px 0;
}
.container .text-muted {
  margin: 20px 0;
}

#footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

code {
  font-size: 80%;
}

/* Server Status Bar */
.server-status-bar {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 0;
  margin-top: 51px;
}
.server-status-bar .status-item {
  display: inline-block;
  margin: 0 15px;
  font-size: 13px;
}
.server-status-bar .status-item i {
  margin-right: 5px;
}
.server-status-bar .text-success {
  color: #5cb85c !important;
}
.server-status-bar .text-danger {
  color: #d9534f !important;
}

/* Logo Section */
.logo-section {
  padding: 30px 0;
}
.logo-section .main-logo {
  max-width: 400px;
  max-height: 150px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Adjust container padding */
body > .container {
  padding: 20px 15px 0;
}

/* Panel styling */
.panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}
.panel-heading {
  background: #333 !important;
  color: #fff !important;
  border-radius: 5px 5px 0 0 !important;
}
.panel-title {
  color: #fff;
  font-weight: bold;
}

/* News items */
.news-item {
  margin-bottom: 15px;
}
.news-item h4 {
  color: #333;
  margin-bottom: 5px;
}
.newsDate {
  color: #888;
}

/* Footer adjustments */
#footer {
  background-color: rgba(245, 245, 245, 0.95);
}

/* Content wrapper with background */
.content-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Homepage - no wrapper background, let panels have their own */
.content-wrapper.homepage {
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow-x: visible;
}

/* Submenu tabs styling */
.submenu-tabs {
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
}
.submenu-tabs > li > a {
  border-radius: 4px 4px 0 0;
  color: #555;
  padding: 10px 15px;
}
.submenu-tabs > li > a:hover {
  background: #f5f5f5;
  border-color: #ddd #ddd transparent;
}
.submenu-tabs > li.active > a,
.submenu-tabs > li.active > a:hover,
.submenu-tabs > li.active > a:focus {
  background: #337ab7;
  color: #fff;
  border-color: #337ab7;
}

/* Table wrapper for horizontal scroll */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: auto;
}
table th, table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 13px;
}
table th {
  background: #f5f5f5;
  font-weight: bold;
}
table tr:nth-child(even) {
  background: #fafafa;
}
table tr:hover {
  background: #f0f7ff;
}
table a {
  color: #337ab7;
}

/* Vertical table (info display) */
.vertical-table {
  width: 100%;
  table-layout: fixed;
}
.vertical-table th {
  width: 25%;
  white-space: normal;
  vertical-align: top;
  word-wrap: break-word;
}
.vertical-table td {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

/* Data tables - fit content */
.data-table {
  width: 100%;
}
.data-table th,
.data-table td {
  white-space: nowrap;
  text-align: center;
}
.data-table td:first-child,
.data-table th:first-child {
  text-align: left;
}

/* Not applicable text */
.not-applicable {
  color: #999;
  font-style: italic;
}

/* Online/Offline status */
.online { color: #5cb85c; font-weight: bold; }
.offline { color: #999; }

/* Mobile responsive */
@media (max-width: 768px) {
  table th, table td {
    padding: 6px 8px;
    font-size: 12px;
  }
  .vertical-table th {
    width: 35%;
  }
  .submenu-tabs > li > a {
    padding: 8px 10px;
    font-size: 12px;
  }
}
