/* General Styles */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

body {
  font-family: Arial, sans-serif;
}

h1 {
  text-align: center;
}
h3 {
  text-align: center;
}

main {
  flex: 1;
}

footer {
  text-align: center;
  padding: 0px;
  background-color: #333333; /* Dark gray */
  color: white; /* White text for contrast */
  border-top: 1px solid #444444;
  font-weight: bold; /* Make text bold */
}

/* Navigation Styles */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f8ff; /* Light blueish white */
  padding: 10px 20px; /* Consistent padding */
  border-bottom: 1px solid #ccc;
  position: relative;
  z-index: 1;
}

.menu-left, .menu-right {
  display: flex;
  align-items: center;
  gap: 15px; /* Consistent spacing between items */
}

.menu-left .logo {
  height: 40px; /* Adjust logo size */
}

.camb-logo {
  text-decoration: none;
  margin-right: 80px; /* Increased to make space for the petri dish */
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.camb-petri-dish {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.95) 70%, rgba(230, 230, 230, 1) 100%);
  border: 3px solid #05009c;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin: 0;
  top: -15px;
  left: 10px;
}

.camb-petri-dish::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: rgba(5, 0, 156, 0.05);
  z-index: 1;
}

.camb-petri-dish span {
  color: #05009c;
  font-weight: bold;
  font-size: 20px;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}



nav a {
  color: black;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  padding: 5px 10px; /* Consistent padding for links */
}

nav a:hover {
  color: #007bff; /* Slightly change color on hover */
  text-decoration: none;
}

.menu-right a {
  margin-right: 0; /* Remove extra margin for the last link */
}

.carp-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

.carp-link span {
  font-weight: bold;
  font-size: inherit;
  white-space: nowrap;
}

.carp-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  text-decoration: none;
}

.carp-link:hover .logo {
  transform: scale(1.05);
}

.carp-link .logo {
  height: 55px;
  transition: transform 0.3s ease;
}

/* Form Styles */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.select-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  align-items: center;
  gap: 10px;
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  max-width: 400px; /* Optional: Limit the container width */
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"], textarea, select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

textarea {
  max-width: 100%; /* Prevent stretching beyond the container */
  width: 100%; /* Ensure it takes the full width of the container */
  word-wrap: break-word; /* Ensure long words wrap properly */
  overflow-wrap: break-word; /* Compatibility for word wrapping */
  resize: vertical; /* Allow vertical resizing only */
  box-sizing: border-box; /* Include padding and border in width calculation */
}
/* Přidejte do vašeho CSS souboru */
.ck-editor__editable {
  max-width: 100%; /* Zabrání přesahování šířky */
  box-sizing: border-box; /* Zohlední padding a border */
  word-wrap: break-word; /* Zalamování dlouhých slov */
  overflow-wrap: break-word; /* Kompatibilita pro zalamování */
  overflow: auto; /* Zabrání přetečení obsahu */
}

/* Table Styles */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  border: 1px solid #ccc;
  border-radius: 10px; /* Rounded corners */
  overflow: hidden; /* Ensures rounded corners are applied */
}

.table-responsive {
  overflow-x: auto;
  max-width: 100%;
}

.table th, .table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd; /* Light border for better distinction */
}

.table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.table tr:nth-child(even) {
  background-color: #f9f9f9; /* Light gray for alternating rows */
}

.table tr:hover {
  background-color: #e6f7ff; /* Light blue on hover */
}

.table td {

}

.table td .btn-group {
  display: inline-flex; /* Ensure buttons are displayed side by side */
  gap: 5px; /* Add spacing between buttons */
  flex-wrap: nowrap; /* Prevent wrapping */
}

.table td .btn {
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

/* Ensure action buttons stay on the same line */
.table td:last-child {
  white-space: nowrap; /* Prevent line breaks */
  min-width: 160px; /* Minimum width to fit buttons */
}

button, .btn {
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: bold; /* Make text bold */
  border: none; /* Odstranění rámečku */
}

button:hover, .btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
/* Button Styles */
.btn {
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: bold; /* Make text bold */
}

.btn-primary {
  background-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-warning {
  background-color: #ffc107;
}

.btn-warning:hover {
  background-color: #e0a800;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-success {
  background-color: #28a745; /* Match other button styles */
}

.btn-success:hover {
  background-color: #218838;
}

button:hover, .btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



/* Container Styles */
.container {
  margin: 0 auto;
  padding: 20px;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.toast {
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.4;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.toast.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.toast-message {
  flex: 1;
  margin-right: 10px;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.toast.success .toast-close {
  color: #155724;
}

.toast.success .toast-close:hover {
  background-color: rgba(21, 87, 36, 0.1);
}

.toast.error .toast-close {
  color: #721c24;
}

.toast.error .toast-close:hover {
  background-color: rgba(114, 28, 36, 0.1);
}

.toast-link {
  color: inherit;
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.toast-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.toast.success .toast-link {
  color: #155724;
}

.toast.error .toast-link {
  color: #721c24;
}

/* CAMB ID Toast Specific Styles */
.toast-main-message {
  margin-bottom: 8px;
  font-weight: 500;
}

.toast-camb-id {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toast-camb-link {
  color: #155724 !important;
  text-decoration: none;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  background-color: rgba(21, 87, 36, 0.1);
  transition: all 0.2s;
}

.toast-camb-link:hover {
  background-color: rgba(21, 87, 36, 0.2);
  text-decoration: none;
  transform: scale(1.05);
}

.toast-click-hint {
  font-size: 0.8rem;
  color: #6c757d;
  font-style: italic;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
}

.dropdown-content a {
  color: black;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}