/* css/custom.css */
.auth-container {
  padding: 0 20px;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #888;
  margin: 20px 0;
}
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}
.separator:not(:empty)::before {
  margin-right: 0.25em;
}
.separator:not(:empty)::after {
  margin-left: 0.25em;
}

.oauth-button {
  width: 100%;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.oauth-button.google {
  background-color: #db4437;
}
.oauth-button.apple {
  background-color: #000000;
}

/* General style for images in buttons */
.oauth-button img {
  width: 18px;
  margin-right: 10px;
}

/* Specific filter ONLY for the image inside the Apple button */
.oauth-button.apple img {
  filter: invert(1);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
}
#error-message {
  color: red;
  text-align: center;
  margin-bottom: 15px;
  display: none;
}

.wpcf7-submit.button-primary {
  background: green !important;
  width: 100%;
}

.password-rules {
  text-align: left;
  font-size: 12px;
  color: #555;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 10px 10px 15px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.password-rules p {
  margin: 0 0 5px 0;
  font-weight: bold;
}

.password-rules ul {
  margin: 0;
  padding-left: 0;
}

.password-rules li {
  list-style-type: none;
}

.password-rules li::before {
  content: "○ "; /* Default state: empty circle */
  color: #dc3545; /* Red */
  font-weight: bold;
  display: inline-block;
  width: 1em;
}
.password-rules li.valid::before {
  content: "● "; /* Valid state: filled circle */
  color: #28a745; /* Green */
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Aligns content to the top */
  min-height: 80vh; /* Sets a minimum height (80% of the viewport height) */
  padding-top: 5vh; /* Adds some space from the very top */
}

/* --- Styles for Dashboard --- */

.dashboard-menubar {
  background-color: #343a40; /* A slightly darker grey */
  border-bottom: 1px solid #495057;
  /* padding: 0 10px 0 10px; */
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* Ensure it's full width */
  box-sizing: border-box; /* Important for full-width padding */
  position: sticky;
  top: 0; /* Sticks to the top of the viewport */
  z-index: 1000; /* Ensures it stays above other content */
}

.dashboard-menubar .menubar-brand {
  font-size: 16px; /* Slightly smaller */
  font-weight: bold;
  color: #fff;
}

.dashboard-menubar .menubar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-menubar .logout-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px; /* Reduced padding */
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px; /* Slightly smaller */
  transition: background-color 0.2s;
  margin: 0;
}

.dashboard-menubar .logout-button:hover {
  background-color: #c82333;
}

.dashboard-menubar .menubar-brand a {
  color: inherit; /* Makes the link inherit the white color */
  text-decoration: none; /* Removes the underline */
}

.dashboard-menubar .menubar-brand a:hover {
  opacity: 0.8; /* Adds a slight fade effect on hover */
}

.dashboard-menubar .profile-button {
  background-color: #007bff; /* Blue color */
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  text-decoration: none; /* Remove underline from the link */
  line-height: normal; /* Ensure proper vertical alignment */
  transition: background-color 0.2s;
}

.dashboard-menubar .profile-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.dashboard-content {
  padding: 30px 40px;
}

.dashboard-panels {
  display: flex;
  flex-wrap: wrap;
  gap: 25px; /* Space between panels */
}

.panel {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 280px;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.panel .panel-icon {
  font-size: 48px;
  color: #007bff;
  margin-bottom: 15px;
}

.panel .panel-body {
  text-align: center;
}

.panel .panel-body h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.panel .panel-body p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.custom-tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  z-index: 10;
  display: none; /* Hidden by default */
}
.custom-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%; /* Position arrow at the top of the tooltip */
  left: 20px;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #333 transparent;
}

html,
body {
  height: 100%;
}

.site-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.elementor.elementor-2 {
  flex: 1; /* This makes the main content area grow and push the footer down */
}
.site-footer {
  background-color: #f8f9fa; /* Optional: give the footer a background */
  padding: 20px;
  border-top: 1px solid #dee2e6;
}

body {
  font-family: "Roboto", Sans-serif !important;
}

.form-feedback {
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  text-align: center;
  font-size: 1.1rem; /* Bigger font size */
  font-weight: bold;
  display: none; /* Hidden by default, JS will show it */
}

/* Red for errors */
.form-feedback.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* Green for success */
.form-feedback.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Blue for info */
.form-feedback.info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h2.elementor-heading-title {
    font-size: 28px;
  }

  .dashboard-menubar {
    padding: 8px 15px;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-panels {
    flex-direction: column;
    align-items: center;
  }
  .panel {
    width: 100%;
    max-width: 400px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
  /*.wpcf7 form {
    padding: 15px;
  }*/

  .dashboard-menubar .logout-button,
  .dashboard-menubar .profile-button {
    font-size: 12px;
    padding: 5px 10px;
  }
}

.form-row {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap */
    gap: 80px;       /* Creates space between the columns */
    margin-bottom: 10px;
}

/* This makes each column take up equal space */
.form-column {
    flex: 1;
    min-width: 250px; /* Prevents columns from getting too squished */
}

/* This is the magic for mobile devices */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column; /* Stacks the columns vertically */
        gap: 0;                 /* Removes the space between them when stacked */
    }

    .form-row .form-column:nth-child(2) {
        margin-top: 25px;
    }
}

.custom-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Poloprůhledné pozadí */
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-modal-content {
    background-color: #fefefe;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.custom-modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.custom-modal-icon {
    margin-bottom: 20px;
}

/* Lepší vzhled pro formulář registrace sluchadel */
.form-column h4 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* css/custom.css */

/* --- Styly pro tabulku registrací --- */
.registrations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.registrations-table th,
.registrations-table td {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    text-align: left;
}

.registrations-table thead th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.registrations-table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    color: #fff;
    text-align: center;
}

.status-badge.ok {
    background-color: #28a745;
}

.status-badge.in-warranty {
    background-color: #28a745;
}

.status-badge.expired {
    background-color: #6c757d;
}

@media (max-width: 768px) {
    .registrations-table thead {
        display: none;
    }
    .registrations-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
    }
    .registrations-table td {
        display: block;
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    .registrations-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-align: left;
    }
}


.registrations-table tbody tr.row-ok {
    background-color: #d4edda;
}
.registrations-table tbody tr.row-ok:nth-of-type(even) {
    background-color: #c3e6cb;
}

.registrations-table tbody tr.row-warranty-expired {
    background-color: #e9ecef;
}
.registrations-table tbody tr.row-warranty-expired:nth-of-type(even) {
    background-color: #dee2e6;
}

.terms-container {
    text-align: left;
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.wpcf7-form-control.wpcf7-text::placeholder {
    color: rgba(123, 123, 123, 0.5);
    transition: all 0.3s ease;
}

/* --- Styly pro miniaturu produktu a lightbox --- */
.product-thumbnail {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Lightbox modal */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10000;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-close:hover {
    color: #ff5555;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
}