 /*retroDashboard Default CSS Theming
 Non theme required stuff */
 /*base structure*/
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif; /* theme can override */
  font-size: 12px;
  line-height: 1.35;
  background: #fff; /* theme should override */
  color: #000;     /* theme should override */
}

.page-shell {
  width: 980px;
  max-width: 98%;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  border-right: 1px solid #aaa;
  border-left: 1px solid #aaa;
}

.utility-bar {
  min-height: 24px;
  padding: 4px 9px;
  background: #f1f1f1;
  border-bottom: 1px solid #ccc;
  color: #555;
  font-size: 11px;
}

.utility-bar span {
  float: left;
}

.utility-bar .utility-links {
  float: right;
}

.utility-bar:after,
.header-bar:after,
.portal-tabs:after,
.welcome-bar:after,
.main-grid:after,
.forecast-grid:after,
.footer-bar:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.utility-bar,
.header-bar,
.portal-tabs,
.welcome-bar,
.main-grid,
.forecast-grid,
.footer-bar {
  zoom: 1;
}

.utility-bar a {
  color: #264a93;
}
/* ===== Header ===== */
.header-bar {
  min-height: 76px;
  padding: 4px 12px;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
}

.header-bar h1 {
  margin: 0;
  font-size: 2.5em;
  line-height: 1.1;
  letter-spacing: 1px;
  /* text-shadow: can be set per theme */
}

.header-logo {
  float: left;
  width: 676px;
  max-width: 70%;
  height: 68px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.weather {
  float: right;
  min-width: 150px;
  padding: 7px 10px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

.weather .weather-location {
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid #bbb;
  font-size: 10px;
  font-weight: normal;
}

.weather .weather-condition {
  display: block;
}

.portal-tabs {
  min-height: 27px;
  padding-left: 7px;
  border-bottom: 4px solid #6d4095;
  background: #e8e1ef;
}

.portal-tabs a {
  float: left;
  display: block;
  min-width: 92px;
  padding: 5px 14px 4px;
  border-right: 1px solid #aaa;
  color: #333;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.portal-tabs a:hover,
.portal-tabs a.active {
  background: #6d4095;
  color: #fff;
}

.welcome-bar {
  padding: 6px 10px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #bbb;
  border-left: 1px solid #ccc;
  background: #fffbe7;
  color: #444;
}

.welcome-bar strong {
  float: left;
}

.welcome-bar span {
  float: right;
}

.date {
  color: #fff;  /* theme should override */
  margin-right: 20px; /* from your index.php (was 10px, using your 20px) */
  font-size: 0.9em;
}

/* ===== Alert Banner ===== */
.alert-banner {
  margin: 6px 8px 0;
  padding: 6px 8px;
  text-align: center;
  font-weight: bold;
  /* background and color by theme */
}

.alert-widget {
  clear: both;
  float: left;
  width: 98.5%;
  margin: 0 1.5% 8px 0;
  text-align: left;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  zoom: 1;
}

.alert-widget-title {
  overflow: hidden;
  zoom: 1;
}

.alert-widget ul {
  clear: both;
  margin: 5px 0 0 20px;
  padding: 0;
}

.alert-widget li {
  margin-bottom: 4px;
}

.alert-banner a {
  color: inherit;
  text-decoration: underline;
}

/* ===== Main Content Grid ===== */
.main-grid {
  padding: 8px;
  overflow: hidden;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* ===== Widget Structure ===== */
.widget,
.rss-widget {
  float: left;
  width: 31.8%;
  *width: 29.8%;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: #fff;         /* theme should override */
  border: 1px solid #9a9a9a;   /* theme should override */
  border-radius: 0;
  padding: 0 8px 7px;
  margin: 0 1.5% 8px 0;
  box-shadow: none;
  min-width: 0;
  overflow: hidden;
}

.widget h2,
.rss-widget h2 {
  margin-top: 0;
  margin-right: -8px;
  margin-bottom: 5px;
  margin-left: -8px;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  zoom: 1;
  /* background, color, border-bottom by theme */
}

.module-title {
  float: left;
}

.module-controls {
  float: right;
  white-space: nowrap;
  font-size: 10px;
  font-weight: normal;
}

.module-controls a {
  display: inline-block;
  min-width: 16px;
  margin-left: 3px;
  border: 1px solid #aaa;
  background: #eee;
  color: #333;
  text-align: center;
  text-decoration: none;
  line-height: 14px;
}

.module-controls a:hover {
  background: #fff;
}

.widget-content {
  width: 100%;
}

/* ===== Button Grid (Links) ===== */
.button-grid {
  width: 100%;
  overflow: hidden;
  zoom: 1;
}
.button-grid a {
  float: left;
  display: block;
  width: 50%;
  padding: 3px 5px 3px 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #264a93;
  text-align: left;
  text-decoration: underline;
  font-weight: normal;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  cursor: pointer;
}

.button-grid .disabled-link {
  float: left;
  display: block;
  width: 50%;
  padding: 3px 5px 3px 12px;
  color: #777;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.button-grid .disabled-link:before {
  content: "\203A";
  display: inline-block;
  width: 8px;
  margin-left: -8px;
  color: #999;
}

.button-grid a::before {
  content: "\203A";
  display: inline-block;
  width: 8px;
  margin-left: -8px;
  color: #777;
  text-decoration: none;
}

/* ===== RSS Widget Items ===== */
.rss-widget {
  height: 220px;
}

.rss-items {
  height: 185px;
  overflow: auto;
  width: 100%;
}

.rss-widget p,
.rss-items p {
  margin: 0;
  padding: 3px 2px 3px 11px;
  border-bottom: 1px dotted #bbb;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}
.rss-items p::before {
  content: "\2022";
  float: left;
  margin-left: -9px;
  color: #777;
}
.rss-widget a,
.rss-items a {
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  text-decoration: underline;
  /* color by theme */
}

.rss-widget .feed-unavailable {
  font-style: italic;
  color: #999;
  margin: 4px 0;
}

/* ===== Forecast Layouts ===== */
.current-weather-widget {
  min-height: 128px;
  text-align: center;
}

.current-weather-content img {
  float: left;
  margin: 4px 8px 5px 2px;
}

.current-weather-content p {
  margin: 3px 0;
}

.current-weather-temperature {
  font-size: 22px;
}

.current-weather-content .weather-source {
  clear: both;
  padding-top: 4px;
  font-size: 10px;
}

.current-weather-content .weather-location {
  font-weight: bold;
}

.forecast-widget {
  width: 98.5%;
  *width: 96%;
}

.forecast-grid {
  width: 100%;
  overflow: hidden;
}
.forecast-day {
  float: left;
  width: 12.5%;
  *width: 11.5%;
  text-align: center;
  padding: 4px 1px;
  border-right: 1px solid #ddd;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.forecast-day:last-child {
  border-right: 0;
}

.section-marker {
  clear: both;
  width: 100%;
  margin: 4px 0 7px;
  overflow: hidden;
  zoom: 1;
  padding: 3px 7px;
  border-bottom: 2px solid #6d4095;
  color: #5b337e;
  font-size: 14px;
  font-weight: bold;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* ===== Footer ===== */
.footer-bar {
  padding: 8px 12px;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 11px;
  border-top: 4px solid #6d4095; /* theme should override */
  background: #eee;           /* theme should override */
  color: #111;                /* theme should override */
}

.footer-bar .footer-info {
  float: left;
  width: 70%;
  text-align: left;
}

.footer-bar .theme-toggle {
  float: right;
  text-align: right;
}

.footer-bar select {
  padding: 2px;
  margin-left: 5px;
  border-radius: 4px;
  border: 1px solid #666;
  background: #fff; /* theme can override */
  color: #111;      /* theme can override */
  font-size: 1em;
}

.reset-layout {
  margin-left: 8px;
}

/* ===== Options Page ===== */
.options-content {
  padding: 10px;
}

.options-panel {
  margin-bottom: 10px;
  border: 1px solid #9a9a9a;
  background: #fff;
}

.custom-theme-editor {
  width: 55%;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid #aaa;
}

.custom-theme-editor p {
  margin: 4px 0;
}

.custom-theme-editor label {
  display: inline-block;
  width: 145px;
}

.options-panel h2 {
  margin: 0;
  padding: 4px 7px;
  background: #765197;
  color: #fff;
  font-size: 12px;
}

.options-panel-body {
  padding: 8px;
}

.options-panel-body p {
  margin: 0 0 8px;
}

.options-panel label {
  margin-right: 4px;
  font-weight: bold;
}

.options-note {
  color: #777;
  font-style: italic;
}

.options-panel input {
  margin-right: 12px;
}

.options-panel textarea {
  width: 96%;
  font-family: Arial, Helvetica, sans-serif;
}

.todo-text-input {
  width: 95%;
}

.organizer-master-option {
  padding: 6px;
  border: 1px solid #aaa;
  background: #fffbe7;
}

.organizer-options-table {
  width: 50%;
  margin-bottom: 12px;
}

.section-options-table {
  width: 70%;
}

.section-options-table input[type="text"] {
  width: 90%;
}

.options-table-wrap {
  width: 100%;
  overflow: auto;
}

.options-table {
  width: 100%;
  border-collapse: collapse;
}

.options-table th,
.options-table td {
  padding: 5px;
  border: 1px solid #bbb;
  text-align: left;
  vertical-align: middle;
}

.options-table th {
  background: #eee;
}

.link-box-editor {
  margin: 0 0 12px;
  padding: 7px;
  border: 1px solid #bbb;
  background: #f8f8f8;
}

.link-box-heading {
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
}

.link-options-table {
  margin-top: 5px;
}

.feed-url-input {
  width: 95%;
}

.options-actions {
  padding: 8px;
  border: 1px solid #bbb;
  background: #eee;
}

.options-actions input,
.options-actions a {
  margin-right: 10px;
}

.options-message {
  margin-bottom: 10px;
  padding: 7px;
  border: 1px solid #777;
  font-weight: bold;
}

.success-message {
  background: #e8f5df;
  color: #245b16;
}

.error-message {
  background: #ffe1e1;
  color: #900;
}

/* ===== Full Weather / RSS / Search / About Pages ===== */
.content-page {
  padding: 10px;
}

.about-diagnostics-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.about-diagnostics-table th,
.about-diagnostics-table td {
  padding: 5px 7px;
  border: 1px solid #bbb;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

.about-diagnostics-table th {
  width: 28%;
  background: #eee;
}

.full-page-panel {
  margin-bottom: 10px;
  border: 1px solid #9a9a9a;
  background: #fff;
}

.full-page-panel h2 {
  margin: 0;
  padding: 4px 7px;
  background: #765197;
  color: #fff;
  font-size: 12px;
}

.full-page-panel-body {
  padding: 9px;
  overflow: hidden;
  zoom: 1;
}

.full-page-panel-body p {
  margin: 3px 0 8px;
}

.current-conditions {
  font-size: 16px;
}

.full-current-conditions-summary {
  overflow: hidden;
  zoom: 1;
}

.full-current-condition-icon {
  float: left;
  width: 64px;
  height: 64px;
  margin: 2px 12px 4px 0;
}

.full-current-condition-details {
  float: left;
  width: 80%;
  padding-top: 8px;
}

.weather-alert-detail {
  margin: 0 0 12px;
  padding: 8px;
  border: 1px solid #c58b00;
  background: #fffbe8;
}

.weather-map-panel {
  text-align: center;
}

.weather-map-panel img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px auto;
  border: 1px solid #888;
}

.weather-temperature-maps {
  width: 100%;
  overflow: hidden;
  zoom: 1;
}

.weather-temperature-map {
  float: left;
  width: 48%;
  margin-right: 1.5%;
  text-align: center;
}

.weather-temperature-map h3 {
  margin: 5px 0;
  font-size: 13px;
}

.weather-temperature-map img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid #888;
}

.weather-map-source {
  text-align: right;
  font-size: 11px;
}

.weather-alert-detail h3 {
  margin: 0 0 6px;
  color: #900;
  font-size: 15px;
}

.weather-alert-detail p {
  margin: 4px 0 7px;
}

.weather-alert-meta,
.weather-alert-time {
  font-size: 11px;
}

.weather-alert-description,
.weather-alert-instruction {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dotted #b99a4b;
  line-height: 1.45;
}

.weather-alert-instruction {
  font-weight: normal;
}

.weather-alert-top {
  text-align: right;
  font-size: 11px;
}

.full-forecast-period {
  min-height: 72px;
  padding: 8px 4px;
  border-bottom: 1px dotted #aaa;
}

.full-forecast-period img {
  float: left;
  margin: 0 10px 5px 0;
}

.full-rss-panel ul {
  margin: 5px 0 8px 22px;
  padding: 0;
}

.full-rss-panel li {
  margin-bottom: 6px;
}

.feed-source {
  text-align: right;
  font-size: 11px;
}

/* ===== Organizer / Novelty Widgets ===== */
.organizer-widget {
  height: 190px;
}

.moon-widget {
  /* Moon content fits comfortably in the standard single-column cell. */
  width: 31.8%;
  *width: 29.8%;
}

.calendar-month,
.novelty-date {
  margin: 3px 0 5px;
  text-align: center;
  font-weight: bold;
}

.mini-calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mini-calendar th,
.mini-calendar td {
  padding: 3px 1px;
  border: 1px solid #ccc;
  text-align: center;
}

.mini-calendar th {
  background: #eee;
}

.mini-calendar .today {
  background: #765197;
  color: #fff;
  font-weight: bold;
}

/* Six-row months must fit the organizer widget's legacy fixed-height grid. */
.calendar-six-weeks .calendar-month {
  margin-top: 1px;
  margin-bottom: 2px;
}

.calendar-six-weeks .mini-calendar th,
.calendar-six-weeks .mini-calendar td {
  padding-top: 1px;
  padding-bottom: 1px;
}

.notes-content,
.todo-list {
  height: 125px;
  margin: 0;
  overflow: auto;
}

.todo-list,
.holiday-list {
  padding-left: 20px;
}

.todo-list li {
  margin-bottom: 4px;
}

.todo-list .done {
  color: #777;
  text-decoration: line-through;
}

.todo-box {
  text-decoration: none;
}

.empty-widget {
  color: #777;
  font-style: italic;
}

.widget-edit-link {
  margin: 4px 0 0;
  text-align: right;
  font-size: 11px;
}

.holiday-list {
  margin-top: 8px;
}

.moon-display {
  padding-top: 3px;
  text-align: center;
}

.moon-symbol {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 58px;
  line-height: 1;
}

.moon-phase-image {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.moon-display p {
  margin: 4px 0 0;
}

/* ===== Responsive Layout ===== */
@media screen and (max-width: 768px) {
  .page-shell {
    width: 100%;
    border: 0;
  }
  .header-logo {
    max-width: 65%;
  }
  .portal-tabs {
    padding-left: 0;
    overflow-x: auto;
  }
  .portal-tabs a {
    min-width: auto;
  }
  .welcome-bar span,
  .utility-links {
    display: none;
  }
  .main-grid {
    padding: 8px;
  }
  .widget,
  .rss-widget,
  .forecast-widget {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  .rss-widget,
  .rss-items {
    height: auto;
  }
  .organizer-widget {
    height: auto;
    min-height: 175px;
  }
  .forecast-grid {
    overflow: hidden;
  }
  .forecast-day {
    width: 12.5%;
    *width: 11.5%;
    margin-bottom: 0;
    min-width: 0;
  }
  .button-grid {
    overflow: hidden;
  }
  .weather-temperature-map {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 480px) {
  .header-bar {
    min-height: 60px;
    padding: 4px 7px;
  }
  .header-logo {
    height: 52px;
  }
  .weather {
    min-width: 115px;
    padding: 5px;
    font-size: 12px;
  }
  .button-grid {
    overflow: hidden;
  }
  .button-grid a {
    float: none;
    width: 100%;
  }
  .button-grid .disabled-link {
    float: none;
    width: 100%;
  }
  .full-current-condition-details {
    width: 68%;
  }
  .footer-bar {
    padding-top: 8px;
  }
}

/* ===== Utility Classes (optional) ===== */
.text-center { text-align: center !important; }
.hide { display: none !important; }
.show { display: block !important; }
.sr-only { 
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
