/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* General Styles */
.beo-container {
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

.beo-header {
  margin-bottom: 20px;
}

.beo-title {
  margin-top: 0;
  margin-bottom: 10px;
}

.beo-description {
  margin-bottom: 20px;
  color: #666;
}

/* Status Styles */
.beo-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}



.beo-status-prevu {
  background-color: #e5f5fa;
  color: #0073aa;
}

.beo-status-submitted {
  background-color: #e5f5fa;
  color: #0073aa;
}

.beo-status-valide {
  background-color: #e7f7e5;
  color: #46b450;
}

.beo-status-confirmed {
  background-color: #e7f7e5;
  color: #46b450;
}

.beo-status-annule {
  background-color: #fbeaea;
  color: #dc3232;
}

.beo-status-cancelled {
  background-color: #fbeaea;
  color: #dc3232;
}

/* Form Styles */
.beo-form-section {
  margin-bottom: 30px;
  background: #fff;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.beo-form-section-title {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.beo-form-row {
  margin-bottom: 15px;
}

.beo-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.beo-form-field {
  margin-bottom: 10px;
}

.beo-form-field input[type="text"],
.beo-form-field input[type="number"],
.beo-form-field textarea,
.beo-form-field select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.beo-form-field textarea {
  min-height: 100px;
}

.beo-form-required {
  color: #dc3232;
}

.beo-checkbox-group,
.beo-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.beo-checkbox-item,
.beo-radio-item {
  margin-right: 15px;
}

.beo-form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.beo-form-error {
  background-color: #fbeaea;
  border-left: 4px solid #dc3232;
  padding: 10px 15px;
  margin-bottom: 15px;
}

.beo-form-success {
  background-color: #e7f7e5;
  border-left: 4px solid #46b450;
  padding: 10px 15px;
  margin-bottom: 15px;
}

/* Entry View Styles */
.beo-entry-section {
  margin-bottom: 30px;
  background: #fff;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.beo-entry-section-title {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.beo-entry-field {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
}

.beo-entry-field-label {
  font-weight: bold;
  width: 200px;
  padding-right: 20px;
}

.beo-entry-field-value {
  flex: 1;
}

/* List Styles */
.beo-list {
  margin-bottom: 30px;
}

.beo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  align-items: flex-end;
}

.beo-filter-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.beo-filter-label {
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
}

.beo-filter-input {
  min-width: 150px;
  height: 35px;
  padding: 0 10px;
}

.beo-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.beo-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.beo-table th,
.beo-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

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

.beo-table tr:hover {
  background-color: #f9f9f9;
}

.beo-actions {
  display: flex;
  gap: 10px;
}

.beo-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.beo-pagination a,
.beo-pagination span {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
}

.beo-pagination .current {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

/* Room Availability */
.beo-room-availability {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
}

.beo-room-available {
  background-color: #e7f7e5;
  color: #46b450;
}

.beo-room-unavailable {
  background-color: #fbeaea;
  color: #dc3232;
}

/* Calendar Navigation */
.beo-calendar-wrapper {
  margin-bottom: 30px;
}

.beo-calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.beo-calendar-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  flex-grow: 1;
}

.beo-calendar-nav-btn {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.beo-calendar-nav-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #0056b3;
}

/* Responsive Calendar Navigation */
@media (max-width: 768px) {
  .beo-calendar-navigation {
    flex-direction: column;
    gap: 10px;
  }
  
  .beo-calendar-title {
    order: 1;
    margin-bottom: 10px;
  }
  
  .beo-calendar-nav-btn {
    width: 100%;
    justify-content: center;
  }
  
  .beo-calendar-prev {
    order: 2;
  }
  
  .beo-calendar-next {
    order: 3;
  }
}

/* Edit Form Messages */
#beo-edit-messages {
  margin-bottom: 20px;
}

.beo-message {
  padding: 10px 15px;
  border-radius: 3px;
  margin-bottom: 15px;
}

.beo-message-success {
  background-color: #e7f7e5;
  border: 1px solid #46b450;
  color: #2c7737;
}

.beo-message-error {
  background-color: #fbeaea;
  border: 1px solid #dc3232;
  color: #dc3232;
}

.beo-message-info {
  background-color: #e5f5fa;
  border: 1px solid #0073aa;
  color: #0073aa;
}

/* Icon Buttons */
.beo-icon-button {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background-color: #f7f7f7;
  border-radius: 3px;
  color: #666;
  text-decoration: none;
  margin-right: 5px;
  transition: all 0.2s ease;
}

.beo-icon-button:hover {
  background-color: #efefef;
  color: #0073aa;
}

.beo-icon-view:before {
  content: "\f177";
  font-family: dashicons;
}

.beo-icon-edit:before {
  content: "\f464";
  font-family: dashicons;
}

/* Print Button Styles */
.beo-button-print {
  background-color: #0073aa;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.beo-button-print:hover {
  background-color: #005a87;
}

.beo-print-icon {
  font-size: 16px;
}

/* Print Template Styles */
.beo-print-template {
  max-width: 210mm;
  margin: 0 auto;
  background: white;
  color: #333;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

/* Modern Professional Header Styles */
.beo-print-header {
  margin-bottom: 40px;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.08);
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.beo-print-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 115, 170, 0.12);
}

/* Top metadata bar */
.beo-print-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
  color: white;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.beo-print-document-info {
  display: flex;
  gap: 30px;
  align-items: center;
}

.beo-print-ref-number,
.beo-print-generation-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.beo-print-ref-label,
.beo-print-date-label {
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  font-size: 10px;
}

.beo-print-ref-value,
.beo-print-date-value {
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
  animation: refPulse 2s ease-in-out infinite;
}

@keyframes refPulse {
  0%, 100% { background: rgba(255, 255, 255, 0.15); }
  50% { background: rgba(255, 255, 255, 0.25); }
}

.beo-print-status-badge {
  display: flex;
  align-items: center;
}

.beo-print-status-current {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.beo-print-status-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.beo-print-status-current:hover::before {
  left: 100%;
}

/* Main header content */
.beo-print-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  background: white;
  min-height: 100px;
}

.beo-print-brand-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.beo-print-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 2px solid #0073aa;
  padding: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.beo-print-logo-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.beo-print-logo-container:hover::before {
  animation: logoShine 1.5s ease-in-out;
}

.beo-print-logo-container:hover {
  transform: scale(1.05) rotate(1deg);
  border-color: #00a0d2;
}

@keyframes logoShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.beo-print-logo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 115, 170, 0.1));
}

.beo-print-company-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.beo-print-company-name {
  font-size: 16px;
  font-weight: 700;
  color: #0073aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.beo-print-company-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0073aa, #00a0d2);
  transition: width 0.3s ease;
}

.beo-print-company-name:hover::after {
  width: 100%;
}

.beo-print-company-tagline {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Document title section */
.beo-print-document-title {
  flex: 1; /* Takes available horizontal space */
  display: flex; /* Enables flexbox for its children */
  flex-direction: column; /* Stacks children (h1, h2, meta) vertically */
  align-items: center; /* Centers children horizontally */
  justify-content: center; /* Centers children vertically if there's extra space */
  text-align: center; /* Ensures text within children is centered */
  padding: 0 20px; /* Horizontal padding */
  position: relative;
}

/* Document title styles */
.beo-print-main-title {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 900;
  color: #0073aa;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
  position: relative;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 50%, #0073aa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradient 4s ease-in-out infinite;
}

@keyframes titleGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.beo-print-event-name {
  margin: 12px 0 8px 0;
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.beo-print-document-meta {
  margin-top: 8px;
}

.beo-print-document-type {
  font-size: 12px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

/* Header separator */
.beo-print-header-separator {
  height: 4px;
  background: linear-gradient(90deg, #0073aa 0%, #00a0d2 50%, #0073aa 100%);
  position: relative;
  overflow: hidden;
}

.beo-print-header-separator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Status styling improvements */
.beo-print-status-prevu,
.beo-print-status-submitted {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.beo-print-status-valide,
.beo-print-status-confirmed {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
}

.beo-print-status-annule,
.beo-print-status-cancelled {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.beo-print-content {
  margin-bottom: 40px;
}

.beo-print-status-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #0073aa;
}

.beo-print-status-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.beo-print-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 10px;
}

.beo-print-status-prevu,
.beo-print-status-submitted {
  background-color: #e5f5fa;
  color: #0073aa;
}

.beo-print-status-valide {
  background-color: #e7f7e5;
  color: #46b450;
}

.beo-print-status-annule {
  background-color: #fbeaea;
  color: #dc3232;
}

.beo-print-dates {
  display: flex;
  gap: 30px;
}

.beo-print-date-item {
  font-size: 14px;
}

.beo-print-label {
  font-weight: bold;
  color: #0073aa;
}

.beo-print-section {
  margin-bottom: 30px;
  break-inside: avoid;
}

.beo-print-section-title {
  margin: 0 0 15px 0;
  padding: 10px 15px;
  background: linear-gradient(135deg, #0073aa, #005a87);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.beo-print-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  padding: 0 10px;
}

.beo-print-field {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
}

.beo-print-field-label {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
}

.beo-print-field-value {
  color: #555;
  font-size: 14px;
  word-wrap: break-word;
}

.beo-print-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 12px;
}

.beo-print-table th,
.beo-print-table td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.beo-print-table th {
  background: #f8f9fa;
  font-weight: bold;
  color: #333;
}

.beo-print-table tr:nth-child(even) {
  background: #f8f9fa;
}

.beo-print-footer {
  margin-top: 40px;
  break-inside: avoid;
}

.beo-print-footer-line {
  height: 2px;
  background: linear-gradient(to right, #0073aa, transparent);
  margin-bottom: 15px;
}

.beo-print-footer-content {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.beo-print-footer-left,
.beo-print-footer-right {
  flex: 1;
}

.beo-print-footer-right {
  text-align: right;
}

/* Print Media Queries */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  @page {
    size: A4;
    margin: 15mm;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .beo-print-template {
    display: block !important;
    max-width: 210mm; /* A4 width */
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: white;
    box-sizing: border-box;
  }
  
  .beo-print-header {
    margin: 0 0 20pt 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    background: white !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  
  .beo-print-meta-bar {
    background: #0073aa !important;
    color: white !important;
    padding: 8pt 15pt !important;
    font-size: 9pt !important;
  }
  
  .beo-print-header-main {
    padding: 15pt 20pt !important;
    background: white !important;
    min-height: auto !important;
  }
  
  .beo-print-brand-section {
    gap: 15pt !important;
  }
  
  .beo-print-logo-container {
    width: 60pt !important;
    height: 60pt !important;
    background: white !important;
    border: 1pt solid #0073aa !important;
    border-radius: 6pt !important;
  }
  
  .beo-print-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none !important;
  }
  
  .beo-print-company-name {
    font-size: 12pt !important;
  }
  
  .beo-print-company-tagline {
    font-size: 9pt !important;
  }
  
  .beo-print-main-title {
    font-size: 20pt !important;
    text-shadow: none !important;
  }
  
  .beo-print-main-title::after {
    display: none !important;
  }
  
  .beo-print-event-name {
    font-size: 16pt !important;
  }
  
  .beo-print-document-type {
    font-size: 9pt !important;
    background: #f8f9fa !important;
  }
  
  .beo-print-header-separator {
    height: 3pt !important;
    background: #0073aa !important;
  }
  
  .beo-print-header-separator::before {
    display: none !important;
  }
  
  .beo-print-section {
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }
  
  .beo-print-section-title {
    padding: 8pt 12pt;
    font-size: 14pt;
  }
  
  .beo-print-fields {
    grid-template-columns: repeat(2, 1fr);
    gap: 10pt;
  }
  
  .beo-print-field {
    break-inside: avoid;
  }
  
  .beo-print-table {
    font-size: 10pt;
  }
  
  .beo-print-table th,
  .beo-print-table td {
    padding: 6pt 8pt;
  }
  
  .beo-print-footer {
    margin-top: 30pt;
    page-break-inside: avoid;
  }
  
  /* Force page break before footer if needed */
  .beo-print-footer {
    break-before: auto;
  }
  
  /* Ensure good page breaks */
  .beo-print-section:last-child {
    page-break-after: avoid;
  }
}

/* High DPI Print Styles */
@media print and (min-resolution: 192dpi) {
  .beo-print-template {
    font-size: 11pt;
  }
  
  .beo-print-main-title {
    font-size: 18pt !important;
  }
  
  .beo-print-event-name {
    font-size: 14pt !important;
  }
}

/* Mobile Responsive Styles for Print Preview */
@media screen and (max-width: 768px) {
  .beo-print-header-main {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .beo-print-brand-section {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .beo-print-document-title {
    padding: 0;
  }
  
  .beo-print-main-title {
    font-size: 24px;
  }
  
  .beo-print-event-name {
    font-size: 18px;
  }
  
  .beo-print-meta-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .beo-print-document-info {
    flex-direction: column;
    gap: 15px;
  }
}

/* Enhanced Typography and Visual Effects */
.beo-print-header {
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.beo-print-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 115, 170, 0.12);
}

/* Enhanced Company Info Styling */
.beo-print-company-name {
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.beo-print-company-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0073aa, #00a0d2);
  transition: width 0.3s ease;
}

.beo-print-company-name:hover::after {
  width: 100%;
}

/* Enhanced Logo Animation */
.beo-print-logo-container {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.beo-print-logo-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.beo-print-logo-container:hover::before {
  animation: logoShine 1.5s ease-in-out;
}

.beo-print-logo-container:hover {
  transform: scale(1.05) rotate(1deg);
  border-color: #00a0d2;
}

/* Enhanced Status Badge Animations */
.beo-print-status-current {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.beo-print-status-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.beo-print-status-current:hover::before {
  left: 100%;
}

/* Enhanced Document Title Effects */
.beo-print-main-title {
  background: linear-gradient(135deg, #0073aa 0%, #005a87 50%, #0073aa 100%);
}

.beo-history-meta {
    flex-grow: 1;
}

.beo-history-user {
    font-weight: 600;
}

.beo-history-action {
    color: #666;
    font-weight: normal;
}

.beo-history-timestamp {
    font-size: 12px;
    color: #888;
}

.beo-history-changes {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.beo-history-change {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.beo-history-change:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.beo-history-field {
    font-weight: 600;
    margin-bottom: 5px;
}

.beo-history-diff {
    padding-left: 10px;
    border-left: 2px solid #ddd;
}

.beo-history-old-value {
    margin-bottom: 3px;
}

.beo-history-new-value {
    margin-top: 3px;
}

.beo-history-label {
    font-size: 12px;
    color: #666;
    width: 45px;
    display: inline-block;
}

.beo-history-old {
    color: #e74c3c;
    text-decoration: line-through;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.beo-history-new {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Comments styles */
.beo-entry-comments-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.beo-comments-list {
    margin-bottom: 20px;
}

.beo-comment {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.beo-comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.beo-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.beo-comment-avatar img {
    width: 100%;
    height: auto;
}

.beo-comment-content {
    flex-grow: 1;
}

.beo-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.beo-comment-author {
    font-weight: 600;
}

.beo-comment-time {
    font-size: 12px;
    color: #888;
}

.beo-comment-text {
    margin-bottom: 8px;
    white-space: pre-line;
}

.beo-comment-attachment {
    margin-top: 10px;
}

.beo-image-attachment img {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.beo-image-attachment img:hover {
    transform: scale(1.05);
}

.beo-file-attachment {
    display: inline-flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 4px;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
}

.beo-file-icon {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"></path></svg>');
}

.beo-comment-form-container {
    margin-top: 20px;
}

.beo-comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

.beo-comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.beo-attachment-upload {
    display: flex;
    align-items: center;
}

.beo-upload-btn {
    display: inline-flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    color: #333;
}

.beo-upload-btn:hover {
    background: #e9e9e9;
}

.beo-upload-btn .dashicons {
    margin-right: 5px;
}

.beo-comment-form input[type="file"] {
    display: none;
}

.beo-selected-file {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
}

.beo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.beo-btn .dashicons {
    margin-right: 5px;
}

.beo-btn-primary {
    background-color: #2c3e50;
    color: white;
}

.beo-btn-primary:hover {
    background-color: #1e2b37;
}

.beo-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.beo-btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Viewers styles */
.beo-entry-viewers {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f0f7ff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.beo-viewers-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.beo-viewers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.beo-viewer {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 3px 12px 3px 3px;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.beo-viewer img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Form edit footer */
.beo-form-edit-footer {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.beo-edit-history-note {
    margin-bottom: 20px;
}

.beo-edit-history-note label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.beo-edit-history-note textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.beo-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Entry Header Organized Styles */
.beo-entry-header {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.beo-has-updates {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  color: #2d3436;
  padding: 10px 20px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.beo-entry-title-section {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
}

.beo-entry-title-section .beo-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
}

.beo-entry-actions {
  padding: 15px 20px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.beo-primary-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.beo-management-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.beo-status-actions {
  display: flex;
  gap: 8px;
}

.beo-status-actions .beo-button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .beo-entry-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .beo-primary-actions,
  .beo-management-actions {
    justify-content: center;
  }
  
  .beo-status-actions {
    justify-content: center;
  }
}