/* === Main layout: side menu vs content === */

.main-layout {
  margin-top: 0.5rem;
}

/* Small screens: main content first, menu below */
@media (max-width: 992px) {
  .main-layout {
    display: flex;
    flex-wrap: wrap;
  }

  .main-layout .main-content,
  .main-layout .side-menu {
    width: 100%;
    float: none;
  }

  .main-layout .main-content {
    order: 1;
  }

  .main-layout .side-menu {
    order: 2;
    margin-top: 1rem;
  }
}

.nav h1 {
  margin: 0.4rem;
  font-size: 2.1rem;
  font-weight: bold;
  text-transform: uppercase;
  float: left;
}

/* Apprise Version */
.nav ul {
  float: right;
  font-style: normal;
  font-size: 0.7rem;
}
.theme {
  text-align: right;
  display: block;
  float:right;
}

a.apprise-lib-ver, a.apprise-lib-ver:hover {
	color: inherit;
}

input {
  display: block;
}

.tabs .tab.disabled a,.tabs .tab.disabled a:hover{font-weight: inherit}

code {
  font-family: monospace;
  white-space: normal;
  padding: 0.2rem;
}

h1, h2, h3, h4, h5 {
  margin-top: 0;
}

h4 {
  margin-bottom: 0.75rem;
}

td, th {
  vertical-align: top;
  padding-top: 0;
}
.api-details ol {
  margin-top: 0;
  margin-bottom: 0;
}

ul.detail-buttons strong {
  font-weight: 800;
}

h4 em {
  font-size: 2.0rem;
  display: inline-block;
  margin: 0;
  padding: 0;
  word-break: break-all;
  line-height: 1.0em;
}

em {
  color: #004d40;
  font-weight:bold;
}

.no-config .info {
  color: #004d40;
  font-size: 3.3rem;

}

textarea {
  height: 16rem;
  font-family: monospace;
}

.collapsible-body {
  padding: 1rem 2rem;
}

#overview strong {
  display: inline-block;
}

.tabs .tab a{
  border-radius: 25px 25px 0 0;
}
.collection a.collection-item:not(.active):hover,
.tabs .tab a:focus, .tabs .tab a:focus.active {
  background-color: #eee;
}
.tabs .tab a:hover,.tabs .tab a.active {
  background-color:transparent;
  color:#004d40;
  font-weight: bold;
  background-color: #eee;
}
.tabs .tab.disabled a,.tabs .tab.disabled a:hover {
  color:rgba(102,147,153,0.7);
}
.tabs .indicator {
  background-color:#004d40;
}
.tabs .tab-locked a {
  /* Handle locked out tabs */
  color:rgba(212, 161, 157, 0.7);
}
.tabs .tab-locked a:hover,.tabs .tab-locked a.active {
  /* Handle locked out tabs */
  color: #6b0900;
}

.tabs.config-overview {
  margin-top: 0;
}

@media (max-width: 900px) {
  .tabs.config-overview {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }
  .tabs.config-overview .tab {
    flex: 0 0 auto;
  }
}

.material-icons{
  display: inline-flex;
  vertical-align: middle;
}

.chip {
  margin: 0.3rem;
  background-color: inherit;
  cursor: pointer;
}

#url-list .card-panel {
  margin: 0.1rem 0;
  border-radius: 12px;
  width: 50%;
  min-width: 35rem;
  min-height: 4em;
  float: left;
  position: relative;
  padding: 0.5rem 0.75rem 1.8rem 0.75rem;
}

/* When there is not enough space for 2 columns, use full width */
@media (max-width: 1450px) {
  #url-list .card-panel {
    width: 100%;
    min-width: 0;
    float: none;
  }
}

/* Header row: URL + copy icon */
#url-list .url-header {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

/* Main URL text */
#url-list .url-header code.url-text {
  flex: 1 1 auto;
  margin-top: 0.2rem;
  display: block;
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: normal;
  text-wrap: wrap;
  overflow-wrap: break-word;
  word-break: break-all;
}

/* Copy button */
#url-list .copy-url-btn {
  flex: 0 0 auto;
  padding: 0 0.35rem;
  min-width: 0;
  margin-top: 0.15rem;
  border-radius: 999px;
}

#url-list .copy-url-btn .material-icons {
  font-size: 1.1rem;
}

#url-list code {
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: wrap;
  text-wrap: wrap;
  overflow-wrap: break-word;
  border-radius: 5px;
  margin-top: 0.8rem;
  display: block;
}

/* URL ID stays pinned above, right, as before */
#url-list {
  display: grid;
  /* On wide screens, as many columns as fit, min 28rem each */
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  grid-auto-rows: auto;
  grid-column-gap: 0.8rem;
  grid-row-gap: 0.6rem;
  padding: 0;
  margin: 0;
}

/* On narrower screens, force a single column so cards stretch nicely */
@media (max-width: 1100px) {
  #url-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Chips remain below the header */
#url-list .card-panel .chip {
  margin: 0.3rem 0.35rem 0.9rem 0;
}

#url-list .copy-url-btn {
  border-radius: 999px;
}

/* URL ID badge pinned to bottom-right of each card */
#url-list .card-panel .url-id {
  width: auto;
  margin: 0;
  background-color: inherit;
  color: #aaa;
  padding: 0.15em 0.35em;
  font-size: 0.65em;   /* feel free to shrink further */
  border: 0;
  position: absolute;
  bottom: 0.45rem;
  right: 0.75rem;
  opacity: 0.9;
}

#url-list .copy-url-btn:hover {
  background-color: rgba(255,255,255,0.06);
}

/* Notification Details */
ul.logs {
  font-family: monospace, monospace;
  height: 60%;
  overflow: auto;
}

ul.logs li {
  display: flex;
  text-align: left;
  width: 50em;
}

ul.logs li div.log_time {
  font-weight: normal;
  flex: 0 15em;
}

ul.logs li div.log_level {
  font-weight: bold;
  align: right;
  flex: 0 5em;
}

ul.logs li div.log_msg {
  flex: 1;
}

.url-enabled {
  color:#004d40;
}
.url-disabled {
  color: #8B0000;
}
h6 {
  font-weight: bold;
}
#overview pre {
  margin-left: 2.0rem
}

code.config-id {
  font-size: 0.7em;
}

/* file button styled */
.btn-file {
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}
.btn-file input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  background: white;
  cursor: inherit;
  display: block;
}

.file-selected {
  line-height: 2.0em;
  font-size: 1.2rem;
  border-radius: 5px;
  padding: 0 1em;
  overflow: hidden;
}

.chip.selected {
  font-weight: 600;
}

#health-check {
  background-color: #f883791f;
  border-radius: 25px;
  padding: 2em;
  margin-bottom: 2em;
}
#health-check h4 {
  font-size: 30px;
}
#health-check h4 .material-icons {
  margin-top: -0.2em;
}

#health-check li .material-icons {
  font-size: 30px;
  margin-top: -0.2em;
}

#health-check ul {
  list-style-type: disc;
  padding-left: 2em;
}

#health-check ul strong {
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
}
