@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab|Ruda);

body {
  font-family: 'Serif';
  font-family: "Ruda", sans-serif;
  min-width: 1200px;
}

@media screen and (max-aspect-ratio: 0.8) and (max-width: 1200px) {
  /* ajustes pra visualização em celular */
  body {
    color: blue;
    min-width: 2400px;
  }
  cgcc-grade-container {
    grid-template-columns: repeat(9, 200px);
  }
  cgcc-grade-disc {
    text-overflow: ellipsis;
  }
}

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

            th, td {
              border: 1px solid black;
              padding: 0.5em;
              text-align: left;
              vertical-align: top;
              font-size: 80%;
            }

            col:nth-child(1) {
              width: 6em; /* Fits content */
              white-space: nowrap; /* Prevents wrapping */
            }

            col:nth-child(2) {
              width: 2em; /* Fits content */
            }

            col:nth-child(3) {
              width: 60em; /* Fixed width */
            }

            col:nth-child(4) {
              width: auto; /* Takes the remaining space */
            }

            #problemas {
                color: red;
                font-size: 75%;
            }

            .rodape {
                display: grid;
                grid-template-columns: 1fr 1fr;
                justify-items: center;
                align-items: center;
                color: #d0a0a0;
                font-size: 75%;
                padding: 0.5em 0;
            }
            #somas {
              justify-self: start;
            }
            #buttons {
              justify-self: end;
            }

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
  display: none;
  align-items: center;
  justify-content: center;
  cursor: wait;
  z-index: 9999;
}

#help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: white;
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensures it is on top */
    overflow: auto; /* Enables scrolling if content is too large */
}

/* This rule ensures the overlay appears when toggled */
#help-overlay.visible {
    display: flex;
}

#help-overlay div {
    min-width: 600px;
    max-width: min(720px, 80%);
    max-height: 80%;
    overflow-y: auto; /* Allows scrolling within the content */
    background-color: lightslategray;
    color: lightgoldenrodyellow;
    padding: 20px 40px;
    border-radius: 10px;
}

#help-overlay li + li {
    margin-top: 10px; /* Adds space only between list items */
}

.bold {
  color: gold;
  font-size: 110%;
  font-weight: 800;
  text-shadow: 1px 1px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000;
}

blockquote {
  margin-left: 0;
  padding-left: 20px;
  border-left: 8px solid gold;
}

blockquote p {
  font: gray;
}

code {
  background: #707070;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 800;
}

.def {
  color: #FFCC00;
  font-weight: 800;
}

h3 {
    color: #FFDD44;
}

#plano-vazio {
  text-align: center;
  font-weight: bold;
  color: black;
  background-color: #ffaaaa;
}

.disabled {
  pointer-events: none;
  opacity: 0.6; /* optional - to visually indicate it's disabled */
}

#logout-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#save-plano {
    font-family: "Ruda", sans-serif;
    bottom: 10px;
    right: 10px;
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#save-plano:disabled {
    background-color: #b1b1b1; /* Muted gray */
    color: #ffffff; /* Keep text readable */
    cursor: not-allowed;
    opacity: 0.6; /* Make it look faded */
    box-shadow: none;
}

select {
  width: 100%;
  padding: 2px;
  border: none;
  border-radius: 4px;
  background-color: #f5f5f5;
  outline: none;
}
