/**
 * CSS for frontend event calendar - Minimalist design 2025
 */

/* Variables for better color and value consistency */

:root {
  /*
   * These default values will be overridden by values from plugin settings
   * They are defined here for cases when settings are not available
   */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #4f46e5;
  --secondary-hover: #4338ca;
  --button-text: #ffffff;
  --background-color: #ffffff;
  --surface-color: #f8fafc;
  --surface-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --button-radius: 0.5rem; /* Unified radius for buttons */
  --calendar-spacing: 0.5rem; /* Unified spacing for airier design */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main container - minimalist design 2025 - using theme font */
.jsm-event-calendar-wrapper {
  margin-bottom: 2.5rem;
  /* Using font from theme without direct definition */
  background-color: var(--background-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  color: var(--text-primary);
  max-width: 100%;
  border: 1px solid var(--border-color);
}

/* Calendar navigation - minimalist design */
.jsm-event-calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  position: relative;
}

.jsm-event-calendar-nav::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.jsm-event-calendar-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
  position: relative;
  z-index: 1;
}

.jsm-event-calendar-nav-buttons {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

/* Vertical navigation layout - modern and minimalist design */
.jsm-nav-vertical-layout {
    padding: 1.25rem 1rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.jsm-event-calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    text-align: center;
    letter-spacing: 0.01em;
}

.jsm-nav-buttons-vertical {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.jsm-nav-buttons-vertical::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* Enhanced navigation buttons - unified radiuses */
.jsm-event-calendar-nav-button {
  background-color: rgba(255, 255, 255, 0.12);
  border: none;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--button-radius);
  color: white;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  outline: none;
  min-width: 80px;
  height: 32px;
  margin: 0;
  text-align: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.jsm-event-calendar-nav-button:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.jsm-event-calendar-nav-button:active {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.jsm-event-calendar-nav-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.jsm-event-calendar-nav-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Calendar table - minimalist design with more space */
.jsm-event-calendar-table-wrapper {
  padding: 1.25rem;
}

.jsm-event-calendar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: var(--calendar-spacing);
  table-layout: fixed;
  border-width: 0px;
}

.jsm-event-calendar-table th {
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary:);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  background-color: var(--text-secondary)
}

.jsm-event-calendar-table td {
  border: none;
  text-align: left;
  padding: 0;
  position: relative;
  height: auto;
  vertical-align: top;
  box-sizing: border-box;
}

/* Ensure table rows have correct vertical alignment */
.jsm-event-calendar-table tr {
  vertical-align: top;
}

/* Dynamic cell height for calendar - airier design */
.jsm-event-calendar-day {
  min-height: 8rem; /* Increased minimum height for airier look */
  height: 100%;
  padding: 0.75rem; /* Larger padding for more spaciousness */
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  gap: 0.375rem; /* Gap between elements inside cell */
}

.jsm-event-calendar-day:hover {
  background-color: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.jsm-event-calendar-day.empty {
  background-color: transparent;
  border-color: transparent;
  cursor: default;
  min-height: 8rem; /* Maintain larger minimum height even for empty cells */
}

.jsm-event-calendar-day.empty:hover {
  transform: none;
  box-shadow: none;
}

.jsm-event-calendar-day.other-month {
  opacity: 0.5;
}

.jsm-event-calendar-day.today {
  background-color: #EFF6FF;
  border-color: var(--primary-color);
}

.jsm-event-calendar-day-number {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--text-primary);
  text-align: center;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.jsm-event-calendar-day.today .jsm-event-calendar-day-number {
  background-color: var(--primary-color);
  color: white;
}

/* Enhanced event display in calendar - better readability */
.jsm-event-calendar-event {
    margin-bottom: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: var(--shadow-sm);
    display: block;
    position: relative;
    flex-grow: 0;
}

.jsm-event-calendar-event:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-overflow: clip;
  white-space: normal;
  min-height: 2.5rem;
  z-index: 5;
}

.jsm-event-calendar-event-title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.jsm-event-calendar-event-time {
  font-size: 0.6875rem;
  opacity: 0.9;
  margin-top: 0.125rem;
}

/* Optimization for different event counts */
.jsm-event-calendar-day:has(.jsm-event-calendar-event:nth-child(3)) {
  min-height: 9.5rem;
}

.jsm-event-calendar-day:has(.jsm-event-calendar-event:nth-child(4)) {
  min-height: 11rem;
}

/* Enhanced event list - minimalist design */
.jsm-event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 1.25rem 1.25rem; /* Padding for more spaciousness */
}

.jsm-event-list-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  grid-column: 1 / -1;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.75rem;
}

.jsm-event-list-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 0.125rem;
  background-color: var(--primary-color);
}

.jsm-event-list-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--background-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
}

.jsm-event-list-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.jsm-event-list-item-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.jsm-event-list-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  line-height: 1.4;
}

.jsm-event-list-item-date {
  display: inline-flex;
  align-items: center;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.375rem 0.75rem;
  border-radius: var(--button-radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.jsm-event-list-item-date:before {
  content: "📅";
  margin-right: 0.375rem;
}

.jsm-event-list-item-content {
  padding: 0 1.25rem;
  flex-grow: 1;
  color: var(--text-secondary);
  line-height: 1.6;
}

.jsm-event-list-item-footer {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
}

.jsm-event-list-item-time {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.jsm-event-list-item-time:before {
  content: "⏱️";
  margin-right: 0.375rem;
}

/* Enhanced buttons - consistent color scheme and radiuses */
.jsm-event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background-color: var(--primary-color);
  color: var(--button-text);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--button-radius);
  font-size: 0.875rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.jsm-event-button:hover {
  background-color: var(--primary-hover);
  color: var(--button-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.jsm-event-button:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.jsm-event-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* Event detail - minimalist design */
.jsm-event-detail {
  margin-bottom: 2rem;
}

.jsm-event-detail-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.jsm-event-detail-title {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  width: 90%;
}

.jsm-event-detail-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.jsm-event-detail-date,
.jsm-event-detail-time {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--button-radius);
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

.jsm-event-detail-date:before {
  content: "📅";
  margin-right: 0.5rem;
}

.jsm-event-detail-time:before {
  content: "⏱️";
  margin-right: 0.5rem;
}

.jsm-event-detail-content {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.jsm-event-detail-footer {
  margin-top: 1.5rem;
  display: flex;
}

.jsm-event-detail-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.jsm-event-detail-thumbnail img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Modal window for event detail - fixed for proper centering and full screen overlay */
.jsm-event-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Darker background for better contrast */
  z-index: 9999;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.jsm-event-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  z-index: 99999;
}

.jsm-event-modal-content {
  background-color: var(--background-color);
  max-height: 90vh;
  width: 90%;
  max-width: 42rem;
  border-radius: var(--border-radius-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-slide-up 0.3s ease-out;
  margin: auto; /* Auto margin for centering */
  padding: 2.5rem;
  overflow-y: auto;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jsm-event-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  font-size: 1.75rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: var(--transition);
  z-index: 1001;
}

.jsm-event-modal-close:hover {
  background-color: #e2e8f0;
  color: #000;
  transform: rotate(90deg);
}

/* Loading animation - minimalist design */
.jsm-event-loading {
  text-align: center;
  padding: 3rem 1rem;
}

.jsm-event-loading-spinner {
  border: 3px solid rgba(37, 99, 235, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  animation: jsm-spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Notification when no events */
.jsm-event-no-events {
  padding: 2rem;
  text-align: center;
  background-color: var(--surface-color);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  border: 1px dashed var(--border-color);
  margin: 1rem 0;
}

/* Grid layout for event list */
.jsm-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 0 1.25rem 1.25rem;
}

.jsm-event-grid-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--background-color);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.jsm-event-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.jsm-event-grid-item-thumbnail {
  height: 10rem;
  background-color: var(--surface-color);
  overflow: hidden;
}

.jsm-event-grid-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.jsm-event-grid-item:hover .jsm-event-grid-item-thumbnail img {
  transform: scale(1.05);
}

.jsm-event-grid-item-content {
  padding: 1.25rem;
}

.jsm-event-grid-item-title {
  font-size: 1.125rem;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: var(--text-primary);
}

.jsm-event-grid-item-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.jsm-event-grid-item-date:before {
  content: "📅";
  margin-right: 0.375rem;
}

.jsm-event-grid-item-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.jsm-event-list-item-thumbnail {
  height: 12rem;
  overflow: hidden;
}

.jsm-event-list-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.jsm-event-list-item:hover .jsm-event-list-item-thumbnail img {
  transform: scale(1.05);
}

/* Style for past days in current month */
.jsm-event-calendar-day.past-day {
  background-color: rgba(0, 0, 0, 0.05);  /* Slightly darker background */
  opacity: 0.8;  /* Reduced opacity */
  color: var(--text-secondary);  /* Lighter text */
}

.jsm-event-calendar-day.past-day .jsm-event-calendar-day-number {
  color: var(--text-secondary);  /* Lighter day numbers */
}

/* Dimming events in past days */
.jsm-event-calendar-day.past-day .jsm-event-calendar-event {
  opacity: 0.8;  /* Slightly dimming events in past days */
  background-color: rgba(37, 99, 235, 0.7);  /* Muted event color */
}

/* For mobile day list */
.jsm-event-calendar-list-view .jsm-event-calendar-day.past-day {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--border-color);
}
/* View switcher styles */
.jsm-event-calendar-view-switcher {
  display: flex;
  gap: 0.375rem;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-right: 0.75rem;
}

.jsm-event-calendar-view-switcher::-webkit-scrollbar {
  display: none;
}

.jsm-event-calendar-view-button {
  font-size: 0.75rem;
  padding: 0.3125rem 0.625rem;
  min-width: 60px;
  height: 28px;
  flex-shrink: 0;
}

.jsm-event-calendar-view-button.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.jsm-event-calendar-nav-main-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.jsm-nav-buttons-vertical {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* Daily view styles */
.jsm-daily-view .jsm-event-calendar-table-wrapper {
  display: flex;
  overflow-x: auto;
}

.jsm-daily-timeline {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-left: 1px solid var(--border-color);
}

.jsm-daily-time-slot {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  min-height: 5rem;
  position: relative;
}

.jsm-daily-time-slot.jsm-all-day-slot {
  background-color: rgba(37, 99, 235, 0.05);
  min-height: auto;
  padding: 0.5rem 0;
}

.jsm-all-day-slot .jsm-daily-events-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
}

.jsm-all-day-slot .jsm-daily-event {
  position: absolute;
  left: auto;
  right: auto;
  margin-bottom: 0.5rem;
}

.jsm-daily-time-label {
  width: 6rem;
  padding: 0.5rem;
  text-align: right;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-right: 1px solid var(--border-color);
  background-color: var(--surface-color);
  flex-shrink: 0;
}

.jsm-daily-time-label.jsm-all-day-label {
  background-color: rgba(37, 99, 235, 0.1);
  font-weight: 600;
  color: var(--primary-color);
}

.jsm-daily-events-container {
  flex-grow: 1;
  padding: 0.5rem;
  min-height: 5rem;
  position: relative;
}

.jsm-daily-event {
  margin-bottom: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-color);
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.jsm-daily-event.jsm-all-day-event {
  position: relative;
  margin-bottom: 0.5rem;
  background-color: var(--primary-color);
}

.jsm-daily-event:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-hover);
  z-index: 20 !important;
}

.jsm-daily-event .jsm-event-calendar-event-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jsm-daily-event:hover .jsm-event-calendar-event-title {
  white-space: normal;
}

/* Weekly view styles */
.jsm-weekly-view .jsm-event-calendar-table-wrapper {
  overflow-x: auto;
}

/* Weekly view styles (continued) */
.jsm-weekly-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.jsm-weekly-header {
  display: flex;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
}

.jsm-weekly-time-column {
  width: 6rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
}

.jsm-weekly-day-header {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--border-color);
  min-width: 8rem;
}

.jsm-weekly-day-header:last-child {
  border-right: none;
}

.jsm-weekly-day-header.today {
  background-color: rgba(37, 99, 235, 0.1);
  border-bottom: 2px solid var(--primary-color);
}

.jsm-weekly-day-name {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.jsm-weekly-day-number {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.jsm-weekly-body {
  display: flex;
}

.jsm-weekly-day-column {
  flex: 1;
  border-right: 1px solid var(--border-color);
  min-width: 8rem;
  position: relative;
}

.jsm-weekly-day-column:last-child {
  border-right: none;
}

.jsm-weekly-day-column.today {
  background-color: rgba(37, 99, 235, 0.05);
}

.jsm-weekly-time-label {
  padding: 0.5rem;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  height: 5rem;
}

.jsm-weekly-time-label.jsm-all-day-label {
  background-color: rgba(37, 99, 235, 0.1);
  font-weight: 600;
  color: var(--primary-color);
  height: auto;
  min-height: 80px;
}

.jsm-weekly-all-day-cell {
  min-height: 80px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  background-color: rgba(37, 99, 235, 0.05);
}

.jsm-weekly-all-day-cell .jsm-daily-event {
  position: absolute;
  margin-bottom: 0.5rem;
  z-index: 5;
  max-width: 90%;
}

.jsm-weekly-hour-cell {
  height: 5rem;
  border-bottom: 1px solid var(--border-color);
  padding: 0.25rem;
  position: relative;
}

.jsm-weekly-hour-cell:last-child {
  border-bottom: none;
}

.jsm-weekly-hour-cell .jsm-daily-event {
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  transition: var(--transition);
  max-width: 90%;
}

.jsm-weekly-hour-cell .jsm-daily-event:hover {
  z-index: 20 !important;
}

/* Improve display of overlapping events */
.jsm-weekly-hour-cell {
  position: relative;
  overflow: visible;
}

.jsm-weekly-all-day-cell {
  position: relative;
  overflow: visible;
  min-height: 80px;
}

/* Improve cell styling in all views */
.jsm-weekly-hour-cell,
.jsm-daily-events-container {
    position: relative;
    min-height: 5rem;
    padding: 2px;
    transition: all 0.2s;
}

/* Dynamic width for cells based on content */
.jsm-weekly-hour-cell:empty {
    min-height: 3rem; /* Smaller when empty */
}

.jsm-weekly-hour-cell:has(.jsm-daily-event) {
    min-height: 5rem; /* Taller when has events */
    background-color: rgba(37, 99, 235, 0.02); /* Subtle background to show it has content */
}

/* All-day cells styling */
.jsm-weekly-all-day-cell,
.jsm-weekly-time-label.jsm-all-day-label {
    min-height: 80px;
    background-color: rgba(37, 99, 235, 0.05);
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

/* Events styling with tooltip enhancements */
.jsm-daily-event {
    position: absolute;
    margin: 1px;
    padding: 4px 6px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: all 0.15s ease-out;
    cursor: pointer;
    z-index: 5;
}

.jsm-daily-event:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    z-index: 100 !important;
}

/* Handle event text overflow */
.jsm-event-calendar-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.8rem;
}

.jsm-daily-event:hover .jsm-event-calendar-event-title {
    white-space: normal;
}

.jsm-event-calendar-event-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Fix all-day event visibility */
.jsm-all-day-event {
    background-color: var(--primary-color);
    color: var(--button-text);
}

/* Ensure time label alignment */
.jsm-daily-time-label,
.jsm-weekly-time-label {
    padding: 6px 4px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced handling for all-day events and time slots */
.jsm-daily-time-slot.jsm-all-day-slot,
.jsm-weekly-all-day-cell {
  min-height: 80px;
  background-color: rgba(37, 99, 235, 0.05);
  position: relative;
  overflow: visible;
}

.jsm-daily-events-container,
.jsm-weekly-hour-cell {
  position: relative;
  min-height: 5rem;
  overflow: visible;
}

.jsm-daily-event,
.jsm-event-calendar-event {
  position: absolute;
  top: 2px;
  border-radius: var(--border-radius-sm);
  margin: 1px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease-in-out;
  overflow: hidden;
}

.jsm-daily-event:hover,
.jsm-event-calendar-event:hover {
  z-index: 100 !important;
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.jsm-daily-event .jsm-event-calendar-event-title,
.jsm-event-calendar-event .jsm-event-calendar-event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 0.8rem;
}

.jsm-daily-event:hover .jsm-event-calendar-event-title,
.jsm-event-calendar-event:hover .jsm-event-calendar-event-title {
  white-space: normal;
}

.jsm-daily-event .jsm-event-calendar-event-time,
.jsm-event-calendar-event .jsm-event-calendar-event-time {
  font-size: 0.7rem;
  opacity: 0.9;
}

/* Make event time cells height consistent */
.jsm-weekly-hour-cell {
  height: 5rem;
}

/* Adjust daily view for better display */
.jsm-daily-time-slot {
  min-height: 5rem;
}

/* Clear floats in event containers */
.jsm-daily-events-container:after,
.jsm-weekly-all-day-cell:after,
.jsm-weekly-hour-cell:after {
  content: "";
  display: table;
  clear: both;
}

/* Add some responsive adjustments for mobile */
@media screen and (max-width: 768px) {
  .jsm-event-calendar-view-switcher {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: flex-start;
  }

  .jsm-daily-time-label,
  .jsm-weekly-time-column {
    width: 4rem;
  }

  .jsm-weekly-day-header,
  .jsm-weekly-day-column {
    min-width: 6rem;
  }
}
/* Loading overlay that covers the calendar while keeping its dimensions */
.jsm-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 100;
  backdrop-filter: blur(3px);
}

.jsm-event-calendar-wrapper {
  position: relative; /* Ensure positioning context for overlay */
}
/* Style for navigation buttons under the calendar */
.jsm-event-calendar-bottom-nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: var(--border-radius-md);
}

/* Layout adjustments for mobile devices */
@media screen and (max-width: 768px) {
    .jsm-event-calendar-bottom-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .jsm-event-calendar-nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* Vertical navigation layout - modern and minimalist design */
.jsm-event-calendar-nav {
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

/* This is already defined elsewhere in the file */

/* Consistent, smaller and more modern buttons */
.jsm-event-calendar-nav-button {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--button-radius);
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0;
    min-width: 90px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jsm-event-calendar-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.jsm-event-calendar-nav-button:active {
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.jsm-event-calendar-nav-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* View switchers */
.jsm-event-calendar-view-switcher {
    display: flex;
    gap: 0.375rem;
    justify-content: flex-start;
    width: 100%;
}

.jsm-event-calendar-view-button {
    font-size: 0.75rem;
    padding: 0.3125rem 0.625rem;
    min-width: 70px;
    height: 28px;
}

.jsm-event-calendar-view-button.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .jsm-event-calendar-nav-button {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .jsm-event-calendar-view-button {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
        min-width: 60px;
        height: 26px;
    }

    .jsm-nav-buttons-vertical {
        gap: 0.375rem;
    }
}

/**
 * Responsive styles for mobile devices - Enhanced minimalist design 2025
 */

@media screen and (max-width: 768px) {
  /* Main container */
  .jsm-event-calendar-wrapper {
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
  }

  /* Calendar navigation */
  .jsm-event-calendar-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem 0.75rem;
  }

  .jsm-event-calendar-title {
    font-size: 1.25rem;
    text-align: center;
  }

  .jsm-event-calendar-nav-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .jsm-event-calendar-nav-buttons::-webkit-scrollbar {
    display: none;
  }

  .jsm-event-calendar-view-switcher,
  .jsm-event-calendar-nav-main-buttons {
    width: 100%;
    justify-content: center;
  }

  .jsm-event-calendar-nav-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--button-radius);
    flex-shrink: 0;
    min-width: 70px;
  }

  /* Alternative display for mobile - list view instead of table */
  .jsm-mobile-view .jsm-event-calendar-table {
    display: none;
  }

  .jsm-event-calendar-list-view {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .jsm-event-calendar-list-view .jsm-event-calendar-day {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    min-height: auto;
    height: auto;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.5rem;
  }

  .jsm-event-calendar-list-view .jsm-event-calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .jsm-event-calendar-list-view .jsm-event-calendar-day.empty {
    display: none;
  }

  .jsm-event-calendar-list-view .jsm-event-calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .jsm-event-calendar-list-view .jsm-event-calendar-day-number {
    margin: 0;
    width: auto;
    height: auto;
    text-align: left;
    font-size: 1rem;
    background: none;
  }

  .jsm-event-calendar-list-view .jsm-event-calendar-day.today .jsm-event-calendar-day-number {
    background: none;
    color: var(--primary-color);
    font-weight: 700;
  }

  .jsm-event-calendar-list-view .jsm-event-calendar-day-name {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
  }

  .jsm-event-calendar-list-view .jsm-event-calendar-event {
    margin-bottom: 0.5rem;
    white-space: normal;
    text-overflow: ellipsis;
    line-height: 1.4;
    border-radius: var(--border-radius-sm);
  }

  /* Table calendar on small screens - hide most elements */
  .jsm-event-calendar-table-wrapper {
    padding: 0.75rem;
  }

  .jsm-event-calendar-table {
    border-spacing: 0.375rem;
  }

  .jsm-event-calendar-table th {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .jsm-event-calendar-table td {
    height: auto;
  }

  .jsm-event-calendar-day {
    min-height: 5rem;
    height: auto;
    padding: 0.375rem;
  }

  .jsm-event-calendar-day.empty {
    min-height: auto;
  }

  .jsm-event-calendar-day-number {
    font-size: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
  }

  .jsm-event-calendar-event {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }

  .jsm-event-calendar-event:hover {
    white-space: normal;
    z-index: 10;
  }

  /* Event list */
  .jsm-event-list {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 0.75rem 0.75rem;
  }

  .jsm-event-list-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .jsm-event-list-item-header {
    padding: 1rem 1rem 0.5rem;
  }

  .jsm-event-list-item-title {
    font-size: 1.125rem;
  }

  .jsm-event-list-item-date {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--button-radius);
  }

  .jsm-event-list-item-content {
    padding: 0 1rem;
    font-size: 0.875rem;
  }

  .jsm-event-list-item-footer {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .jsm-event-button {
    width: 100%;
    justify-content: center;
    border-radius: var(--button-radius);
  }

  /* Modal window for event detail - FIXED for proper mobile display */
  .jsm-event-modal {
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .jsm-event-modal-content {
    width: 92%;
    max-width: 100%;
    max-height: 85vh;
    margin: 0 auto;
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    background-color: var(--surface-color);
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-x: hidden;
  }

  .jsm-event-detail-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    width: 90%;
  }

  .jsm-event-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .jsm-event-detail-date,
  .jsm-event-detail-time {
    width: 100%;
    border-radius: var(--button-radius);
  }

  .jsm-event-loading {
    padding: 2rem 1rem;
  }

  .jsm-event-loading-spinner {
    width: 2rem;
    height: 2rem;
  }

  /* Grid layout for event list */
  .jsm-event-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.75rem 0.75rem;
  }

  .jsm-event-grid-item-thumbnail {
    height: 8rem;
  }
}
/* 15-minute time slots - zjednodušené */
.jsm-time-slot-15min {
  height: 22px !important;
  min-height: 22px !important;
  border-bottom: 1px dotted var(--border-color);
  position: relative;
}

.jsm-time-slot-15min[data-minute="0"] {
  height: 24px !important;
  min-height: 24px !important;
  background-color: rgba(248, 250, 252, 0.8);
}
.jsm-time-slot-15min[data-minute="0"] .jsm-daily-time-label {
    font-weight: bold;
}

/* Time labels for 15-minute intervals */
.jsm-daily-time-label,
.jsm-weekly-time-label {
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 4px 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  background-color: var(--surface-color);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* Highlight full hour time markers */
.jsm-weekly-time-label[data-minute="0"],
.jsm-daily-time-label[data-minute="0"] {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
  background-color: rgba(248, 250, 252, 0.95);
  height: 24px !important;
  min-height: 24px !important;
}

/* Event containers in time slots */
.jsm-daily-events-container {
  position: relative;
  height: 100%;
  min-height: inherit;
  padding: 0;
  flex-grow: 1;
}

/* Events in time slots - improved appearance */
.jsm-daily-event {
  position: absolute;
  padding: 2px 4px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: all 0.15s ease-out;
  cursor: pointer;
  z-index: 5;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color);
  color: white;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
}

/* Hover effect for events */
.jsm-daily-event:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  z-index: 100 !important;
}

/* Prioritize showing the time */
.jsm-event-calendar-event-time {
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: visible !important;
  font-weight: 600;
  margin-bottom: 1px;
  order: 1; /* Ensure time is displayed first */
}

/* Event title styling */
.jsm-event-calendar-event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 0.65rem;
  order: 2; /* Display title after time */
}

/* Weekly view layout improvements with border fixes */
.jsm-weekly-hour-cell {
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 2px;
  position: relative;
  border-right: 1px solid var(--border-color);
}

.jsm-weekly-hour-cell[data-minute="0"] {
  height: 24px !important;
  min-height: 24px !important;
}

.jsm-weekly-day-column {
  flex: 1;
  min-width: 8rem;
  position: relative;
  border-right: 1px solid var(--border-color);
  background-color: #fff;
}

.jsm-weekly-day-column:last-child {
  border-right: none;
}

/* All Day section styling */
.jsm-weekly-all-day-cell,
.jsm-weekly-time-label.jsm-all-day-label,
.jsm-daily-time-slot.jsm-all-day-slot {
  min-height: 60px !important;
  height: auto !important;
  background-color: rgba(37, 99, 235, 0.05);
  border-bottom: 2px solid var(--border-color);
}

/* Daily timeline adjustments with improved borders */
.jsm-daily-timeline {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-left: 1px solid var(--border-color);
  background-color: #fff;
}

.jsm-daily-time-slot {
  display: flex;
  border-bottom: 1px dotted var(--border-color);
  min-height: 22px;
  position: relative;
}

/* Weekly grid layout adjustments with scroll improvements */
.jsm-weekly-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: #fff;
}

.jsm-weekly-header {
  display: flex;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.jsm-weekly-body {
  display: flex;
  overflow-y: auto;
  max-height: 80vh;
  border-top: 1px solid var(--border-color);
}

/* Fixed time column for better scrolling */
.jsm-weekly-time-column {
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  position: sticky;
  left: 0;
  z-index: 5;
  background-color: var(--surface-color);
}

/* Sticky headers for day columns */
.jsm-weekly-day-header {
  position: sticky;
  top: 0;
  z-index: 6;
  background-color: var(--surface-color);
  padding: 8px 4px;
  text-align: center;
  border-right: 1px solid var(--border-color);
}

/* Scrollbar styling for better usability */
.jsm-weekly-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.jsm-weekly-body::-webkit-scrollbar-track {
  background: var(--surface-color);
}

.jsm-weekly-body::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 20px;
}

/* Time grid container improvements */
.jsm-event-calendar-table-wrapper.jsm-weekly-calendar,
.jsm-event-calendar-table-wrapper.jsm-daily-calendar {
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: #fff;
}

/* Better appearance of today columns */
.jsm-weekly-day-column.today {
  background-color: rgba(37, 99, 235, 0.03);
}
/* Event styling improvements for timed events */
.jsm-daily-event,
.jsm-event-calendar-event {
  position: absolute;
  padding: 0px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: all 0.15s ease-out;
  cursor: pointer;
  z-index: 5;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color);
  color: white;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
}

/* Hover effect for events */
.jsm-daily-event:hover,
.jsm-event-calendar-event:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  z-index: 100 !important;
}

/* Time slots layout for events that span multiple slots */
.jsm-daily-events-container,
.jsm-weekly-hour-cell {
  position: relative;
  height: 100%;
  min-height: inherit;
  overflow: visible; /* Allow events to overflow */
}

/* Adjust position for event containers */
.jsm-weekly-hour-cell,
.jsm-daily-time-slot {
  position: relative;
}
/* Měsíční pohled - události pod sebou místo překrývání */
.jsm-monthly-view .jsm-event-calendar-day {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0.5rem;
  min-height: 8rem;
  overflow: visible;
}

.jsm-monthly-view .jsm-event-calendar-day-number {
  position: relative;
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

/* Kontejner pro události v měsíčním pohledu */
.jsm-monthly-view .jsm-event-calendar-events-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  overflow: hidden;
}

/* Událost v měsíčním pohledu */
.jsm-monthly-view .jsm-event-calendar-event {
  position: relative;
  padding: 2px 4px;
  margin: 0 0 2px 0;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Zobrazení času v události v měsíčním pohledu */
.jsm-monthly-view .jsm-event-calendar-event-time {
  font-size: 0.65rem;
  font-weight: 600;
  margin-right: 3px;
  white-space: nowrap;
}

/* Zobrazení názvu v události v měsíčním pohledu */
.jsm-monthly-view .jsm-event-calendar-event-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 0.7rem;
}

/* Hover efekt pro události v měsíčním pohledu */
.jsm-monthly-view .jsm-event-calendar-event:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
