/* Zarovnání přepínače zobrazení doprostřed navbaru */
.navbar-switch-group {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.card-img-top {
    height: 200px;
    object-fit: cover;
  }

.hidden
{
    display: none;
}


.m-e {
  text-align: right;
  min-width: 110px !important;
}
/* Description cell with expand functionality */
.desc-cell {
  position: relative;
  max-width: 400px;
}

.desc-expand-icon {
  cursor: pointer;
  color: #1f7aec;
  font-weight: bold;
  margin-left: 4px;
  -webkit-user-select: none;
  user-select: none;
}

.desc-expand-icon:hover {
  color: #0d5ab8;
  text-decoration: underline;
}

.desc-full {
  margin-top: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-left: 3px solid #1f7aec;
  border-radius: 4px;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

/* Calendar grid view */
.calendar-month {
  margin-bottom: 2rem;
}

.calendar-grid {
  table-layout: fixed;
}

.calendar-grid th {
  text-align: center;
  background: #e9ecef;
  font-weight: bold;
  padding: 8px;
}

.calendar-day {
  vertical-align: top;
  height: 100px;
  padding: 4px;
  position: relative;
}

.calendar-empty {
  background: #f8f9fa;
}

.day-number {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  color: #495057;
}

.calendar-event {
  font-size: 11px;
  padding: 2px 4px;
  margin: 2px 0;
  background: #d1ecf1;
  border-left: 3px solid #0c5460;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event:hover {
  background: #bee5eb;
}

/* Pagination controls */
#paginationControls {
  gap: 12px;
}

#pageInfo {
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

/* Submissions View */
.submissions-grid {
  display: grid;
  gap: 20px;
}

.submission-card {
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.submission-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.submission-thumbnail {
  display: flex;
  justify-content: center;
  align-items: center;
}

.submission-details {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.submission-details p {
  margin-bottom: 8px;
}

/* Badge pro pending submissions */
#pendingBadge {
  position: relative;
  top: -2px;
  margin-left: 5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Flexbox gap fallback pro starší prohlížeče */
.d-flex.gap-2 > * + * {
  margin-left: 0.5rem;
}

/* Calendar grid view */
.calendar-month {
  margin-bottom: 2rem;
}

.calendar-grid {
  table-layout: fixed;
}

.calendar-grid th {
  text-align: center;
  background: #e9ecef;
  font-weight: bold;
  padding: 8px;
}

.calendar-day {
  vertical-align: top;
  height: 100px;
  padding: 4px;
  position: relative;
}

.calendar-empty {
  background: #f8f9fa;
}

.day-number {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  color: #495057;
}

.calendar-event {
  font-size: 11px;
  padding: 2px 4px;
  margin: 2px 0;
  background: #d1ecf1;
  border-left: 3px solid #0c5460;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event:hover {
  background: #bee5eb;
}

/* Pagination controls */
#paginationControls {
  gap: 12px;
}

#pageInfo {
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}