
/* ========== BASE RESET ========== */
body {
  font-family: Arial, Helvetica, sans-serif; /* <- from mandatory */
  font-size: small;
  margin: 0;
}

a.btn {
  display: inline-block;
  text-align: center;
  padding: 2% 2%;
  text-transform: uppercase;
  font-weight: 400;
  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;
}

/* ========== WARNING TEXT ========== */
#yellow-warning-text {
  background: #ffdc00;
  padding: 5px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
}

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

/* ========== HEADER ========== */
#header-logo {
  padding: 10px 0px 5px 0px; /* <- mandatory style preserved */
  text-align: center;        /* <- mandatory */
  background: #CC0000;
  color: black;
  min-height: 20px;
}

#hide_logo2{
  display: none;
}

#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: right;
}

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

/* ========== FLEX HELPERS ========== */
.flex-row {
  display: flex;
  flex-direction: row;
}

/* ========== SIDEBAR ========== */
#left-sidebar {
  background-color: #4c5055; /* <- mandatory */
  display: none;
  text-align: center;
}

#left-sidebar a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
  border-top-color: #D5D6D5;
  border-top-width: 1px;
  border-top-style: solid;
}

#left-sidebar a:hover {
  background-color: #D5D6D5;
  color: black;
  font-weight: bold;
}

#selected a {
  font-weight: bold;
}

/* ========== MAIN ========== */
#main {
  background-color: white;
  padding: 10px;
  margin: 0 auto;
  overflow-x: auto;
}

.fakeimg {
  background-color: #aaa;
  width: 100%;
  padding: 20px;
}

/* ========== FOOTER ========== */
#footer {
  padding: 0px;
  text-align: center;
  background: #4c5055;
  border: 10px solid white;
}

/* ===== Additional Styles From Second CSS ===== */

/* === FORM & ERROR HANDLING === */
.error {
  color: red;
}

.hidden {
  display: none;
}

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

/* === SPINNER === */
.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); }
}


/* === MAIN CONTENT AREA === */
#main-content-area {
  flex: 1;
}

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

.chart-container {
  min-height: 300px;
  margin-bottom: 30px;
}

/* === ADVANCED FOOTER === */
.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 === */
.list-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-left: 5px;
  margin-top: 20px;
  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,
.list-row .footer {
  flex: 45%;
  padding: 10px 10px 20px 20px;
  margin: 10px 10px 20px 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: left;
}

.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: 20px;
  color: #727272;
  padding: 20px 0;
  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 === */
.card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 20px auto;
  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;
}

.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: 16px;
  width: 16px;
  float: right;
  margin: -5px 10px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.heart:hover {
  fill: red;
}

.rating-star {
  float: right;
  font-size: 8%;
  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: 100%;
  text-align: center;
}

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

.card .description {
  padding: 2%;
  width: 100%;
  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;
  font-size: 20px;
}

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

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

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

.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;
}

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

/* === TABLE === */
#tööde-tabel {
  border-collapse: collapse;
  width: 100%;
  font-size: 8%;
  line-height: 20px;
  color: #727272;
}

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

#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: 2% 0;
  text-align: center;
  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;
}


#sidebar-toggle-container {
  display: none;
}


/* === Kasutusjuhend === */
.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;
}


.round-button {
  position: fixed;
  bottom: 20px; /* Distance from the bottom */
  right: 20px;  /* Distance from the right */
  width: 40px;
  height: 40px;
  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;
}
