body {
  font-family: "Raleway";
  font-size: medium;
  margin: 0;
}

a.btn {
  display: inline-block;
  text-align: center;
  padding: 8px 0;
  width: 110px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid #d9d9d9;
  background: none;
  color: #515151;
  font-family: inherit;
  transition: all 0.3s ease;
  margin-right: 5px;
  text-decoration: none;
}

a.btn:hover {
  border: 1px solid #aedaa6;
  color: #aedaa6;
  cursor: pointer;
}

.error {
  color: red;
}

.hidden {
  display: none;
}

.field-error input,
.field-error select,
.field-error textarea {
  border: 1px solid red;
  color: red;
}

.spinner {
  margin: 0 auto;
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #CC0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#yellow-warning-text,
#green-warning-text {
  padding: 5px;
  margin-top: 15px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
}

#yellow-warning-text {
  background: #ffdc00;
}

#green-warning-text {
  background: #30cc71;
}

#header-logo {
  padding: 10px 0 5px 25px;
  text-align: left;
  background: #CC0000;
  color: black;
  min-height: 20px;
}

#hide_logo1 {
  display: none;
}

#navbar {
  width: 100%;
  margin: 0 auto;
}


#header-navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #181818;
  transition: all 0.3s;
}

#header-navbar a {
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  text-align: center;
}

#header-navbar a:hover {
  background-color: #D5D6D5;
  color: black;
}

#hamburger-button {
  display: none;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.two-column-main-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.two-column-main-content #main {
  flex: 70%;
  background-color: white;
  padding: 20px;
  box-sizing: border-box;
  margin: 0 auto;
  overflow-x: auto;
}

.two-column-main-content #left-sidebar {
  flex: 30%;
  max-width: 210px;
  margin: 30px 0 0 10px;
  transition: all 0.3s ease;
}

.two-column-main-content #left-sidebar #selected a {
  font-weight: bold;
}

.two-column-main-content #left-sidebar a {
  padding: 10px 30px 7px 20px;
  text-decoration: none;
  font-size: 20px;
  background-color: #D5D6D5;
  color: black;
  display: block;
  border: 1px groove white;
  text-align: center;
}

.two-column-main-content #left-sidebar a:hover {
  color: white;
  background-color: #CC0000;
}

#main-content-area {
  flex: 1; /* this allows it to take the remaining space */
}

#main-content-area canvas {
  width: 100% !important;
  height: auto !important;
}


.footer {
  padding: 10px;
  text-align: center;
  background: #181818;
  margin: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12);
  transition: all 0.3s;
}

.footer:hover {
  box-shadow: 0 8px 17px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
}

.footer .row {
  width: 100%;
  margin: 1% 0;
  padding: 0.6% 0;
  color: gray;
  font-size: 0.8em;
}

.footer .row a {
  text-decoration: none;
  color: gray;
  transition: 0.5s;
}

.footer .row a:hover {
  color: #fff;
}

.footer .row ul {
  width: 100%;
}

.footer .row ul li {
  display: inline-block;
  margin: 0 30px;
}

.footer .row a i {
  font-size: 2em;
  margin: 0 1%;
}

.list-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 10px 5px 0 5px;
  width: 90%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12);
  transition: all 0.3s;
}

.list-row:hover {
  box-shadow: 0 8px 17px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
}

.list-row .flex-container {
  display: flex;
  flex-wrap: wrap;
}

.list-row .left,
.list-row .right{
  flex: 1 1 45%;
  padding: 3px 2px 5px 2px;
  margin: 5px 2px 0px 10px;
  text-align: left;
  background-color: whitesmoke;
  box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12);
}

.list-row .bottom{
  flex: 1 1 45%;
  padding: 3px 2px 5px 2px;
  margin: 5px 2px 5px 10px;
  text-align: left;
  background-color: whitesmoke;
  box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12);
}


.list-row .picture {
  min-width: 200px;
  padding-top: 10px;
  width: 10%;
  text-align: center;
  float: center;
}

.list-row .picture img {
  max-width: 150px;
  max-height: 150px;
  margin: 5px;
}

.list-row .content {
  text-align: left;
  width: 80%;
}

.list-row .content a {
  font-size: 12px;
  line-height: 5px;
  color: #727272;
  padding: 5px 10px;
  margin: 0;
}

.list-row .content h3 {
  color: #515151;
  padding-top: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 300;
}

.list-row .header {
  width: 100%;
  color: #727272;
  text-transform: uppercase;
  padding: 20px 0 10px 20px;
  border-bottom: 2px solid #efefef;
  font-size: 12px;
}

.list-row .header h3 {
  padding-left: 5%;
  padding-top: 5px;
  padding-bottom: 5px;
}

.list-row .header a {
  text-decoration: none;
  color: #727272;
}

.card_chart {
  max-height: 500px;        
  overflow: hidden;         
  display: flex;
  flex-direction: column;   /* stack title + canvas */
  margin: 20px auto;
  width: 70%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12);
  transition: all 0.3s;
  padding: 1rem 1rem 3rem 1rem;
}

.card_chart h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  text-align: left;
  padding: 1px 1px 3px 1px;
}

.card_chart canvas {
  flex: 1;                  /* canvas fills remaining space */
  max-height: 100%;
  margin-bottom: 1rem;  /* leave space for legend */
}




.card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 20px auto;
  width: 70%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12);
  transition: all 0.3s;
}

.card canvas {  /* assuming your charts are <canvas> elements */
  max-height: 100%;
  width: 100%;
  height: auto;
}


.card:hover {
  box-shadow: 0 8px 17px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
}

.card nav {
  width: 100%;
  color: #727272;
  text-transform: uppercase;
  padding: 20px 0 10px 20px;
  border-bottom: 2px solid #efefef;
  font-size: 12px;
}

.card nav a {
  text-decoration: none;
  color: #727272;
}

.heart {
  height: 24px;
  width: 24px;
  float: right;
  margin: -5px 10px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.heart:hover {
  fill: red;
}

.rating-star {
  float: right;
  font-size: 24px;
  margin: -7.5px 0 0 0;
  color: #d4af37; /* tumekollane täis täht */
  cursor: pointer;
  margin-left: 5px;
}
.rating-star.empty {
  color: #727272; /* hall tühja tähe värv */
}
.rating-star:hover {
  color: #d4af37; /* hover punane */
}

.card nav svg.arrow {
  float: left;
  height: 15px;
  width: 15px;
  margin-right: 10px;
}

.card .photo {
  padding: 30px;
  width: 30%;
  text-align: center;
  float: left;
}

.card .photo img {
  height: auto;
  max-width: 100%;
}

.card .description {
  padding: 30px;
  float: left;
  width: 58%;
  border-left: 2px solid #efefef;
}

.card .whole_width {
  width: 100%;
  box-sizing: border-box;
  border-top: 2px solid #efefef;
}

.card .description h2,
.card .description h3,
.card .description h4,
.card .description h5,
.card .description p {
  margin: 0;
}

.card .description h2 {
  color: #515151;
  text-transform: uppercase;
  font-weight: 500;
}

.card .description h3 {
  color: #515151;
  font-size: 20px;
  font-weight: 300;
  padding-top: 10px;
}

.card .description h4 {
  color: #727272;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 12px;
}

.card .description h5 {
  margin: 10px;
  color: #727272;
  font-weight: 500;
  font-size: 12px;
}

.card .description p {
  font-size: 12px;
  line-height: 20px;
  color: #727272;
  padding: 20px 0;
}

.card .description button {
  outline: 0;
  border: 1px solid #d9d9d9;
  background: none;
  padding: 8px 0;
  margin-bottom: 30px;
  color: #515151;
  text-transform: uppercase;
  width: 125px;
  font-family: inherit;
  margin-right: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.card .description button:hover {
  border: 1px solid #aedaa6;
  color: #aedaa6;
  cursor: pointer;
}

.default-form-style {
  font-size: 12px;
  color: #727272;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #727272;
}

#tööde-tabel {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  line-height: 20px;
  color: #727272;
}

#tööde-tabel td,
#tööde-tabel th {
  border: 1px solid #ddd;
  padding: 8px;
}


/* Joondab päise elemendid keskele ja teeb need väiksemaks */
#tööde-tabel thead th {
  text-align: center;
  vertical-align: middle;
  font-size: 10px;       /* väiksem font */
  padding: 4px 6px;      /* väiksemad vahed */
}


/* Muudab kogu tabeli väiksemaks ja keskele */
#tööde-tabel td {
  text-align: center;
  vertical-align: middle;
  font-size: 10px;
  padding: 4px 6px;
}



#tööde-tabel .form-error td {
  background-color: #fff3cd;
}

#tööde-tabel tr:nth-child(even) {
  background-color: #f2f2f2;
}

#tööde-tabel tr:hover {
  background-color: #ddd;
}

#tööde-tabel th {
  padding: 12px 0;
  text-align: left;
  background-color: #181818;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
}

#tööde-tabel a {
  text-decoration: none;
  color: #515151;
  transition: 0.5s;
}

#tööde-tabel button,
#tööde-tabel #button {
  font-size: 14px;
  outline: 0;
  border: 1px solid #d9d9d9;
  background: none;
  padding: 4px;
  color: #515151;
  text-transform: uppercase;
  width: 75px;
  font-family: inherit;
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: center;
}

#tööde-tabel button:hover,
#tööde-tabel #button:hover {
  border: 1px solid #aedaa6;
  color: #aedaa6;
  cursor: pointer;
}

#tööde-tabel button:hover a,
#tööde-tabel #button:hover a {
  color: #aedaa6;
}

#tööde-tabel #keskel {
  display: flex;
  text-align: center;
}

.pagination {
  text-align: center;
  padding: 10px;
  margin-top: 20px;
  font-size: 14px;
}

.pagination a {
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px solid #d9d9d9;
  text-decoration: none;
  color: #515151;
  transition: all 0.3s ease;
}

.pagination a:hover {
  border: 1px solid #aedaa6;
  color: #aedaa6;
}

.pagination .page-current {
  font-weight: bold;
  margin: 0 10px;
}

.round-button {
  position: fixed;
  bottom: 20px; /* Distance from the bottom */
  right: 20px;  /* Distance from the right */
  width: 60px;
  height: 60px;
  background-color: red; /* Button color */
  color: white;
  border: none;
  border-radius: 50%; /* Makes it round */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 28px;
  text-decoration: none;
  z-index: 1000; /* Keeps it above other elements */
  transition: background-color 0.3s ease;
}

.round-button:hover {
  background-color: #CC0000;
}


.zoomable-image {
    transition: transform 0.3s ease;
    cursor: zoom-in;
    display: block;
    margin: 10px auto;
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
}


.zoomable-image:hover {
    transform: scale(1.2);
    z-index: 10;
}

.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kasutusjuhend-container {
  margin-left: auto;
}

.kasutusjuhend-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.kasutusjuhend-text {
  font-size: 12px;
  color: #727272; /* hall tekst */
  font-weight: bold;
}

.pdf-icon {
  color: #d32f2f; /* punane PDF ikoon */
  font-size: 20px;
}

.puudub-icon {
  color: #727272; /* hall ikoon puuduva juhendi jaoks */
  font-size: 20px;
}


#sidebar-toggle-container {
  width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

#sidebar-toggle-icon {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
  transition: transform 0.3s ease;
}

.sidebar-divider {
  width: 1px;
  background-color: #ccc;
  flex-grow: 1;
  margin-top: 5px;
}


.email-confirmation {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.messages {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.messages li {
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.messages li.success {
  background-color: #d4edda;
  color: #155724;
}
.messages li.error {
  background-color: #f8d7da;
  color: #721c24;
}


