/* EDM Premium UI Styles */

.edm-premium-ui {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1f2328;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 30px 0;
}

.edm-nav-tabs {
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
  display: flex;
  padding: 0 20px;
  margin: 0;
  list-style: none;
}

.edm-nav-tabs li {
  margin-right: 10px;
}

.edm-nav-tabs li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  text-decoration: none;
  color: #656d76;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.edm-nav-tabs li.active a {
  color: #0ea5e9;
  border-bottom-color: #0ea5e9;
}

.edm-nav-tabs li a:hover {
  background: rgba(0, 0, 0, 0.02);
}

.edm-tab-content {
  padding: 30px;
  min-height: 400px;
}

.edm-tab-content .tab-pane {
  display: none;
}

.edm-tab-content .tab-pane.active {
  display: block;
}

.edm-tab-content .tab-pane.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.edm-tab-content .tab-pane.fade.in {
  opacity: 1;
}

/* Custom Simple Grid */
.edm-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.edm-col-main {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 15px;
}

.edm-col-side {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.edm-col-full {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .edm-col-main,
  .edm-col-side {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Metadata Table */
.edm-meta-table {
  width: 100%;
  border-collapse: collapse;
}

.edm-meta-table tr {
  border-bottom: 1px solid #f0f2f5;
}

.edm-meta-table tr:last-child {
  border-bottom: none;
}

.edm-label {
  width: 30%;
  padding: 15px 10px;
  color: #656d76;
  font-size: 14px;
  vertical-align: top;
}

.edm-value {
  padding: 15px 10px;
  font-size: 15px;
  line-height: 1.6;
}

.edm-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edm-meta-list li {
  margin-bottom: 8px;
}

.edm-meta-list li b {
  color: #0ea5e9;
  font-size: 12px;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Sidebar & Cards */
.edm-sidebar-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e1e4e8;
}

.edm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.edm-btn-primary {
  background: #0ea5e9;
  color: #fff;
}

.edm-btn-primary:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

/* Gallery */
.edm-main-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d0d7de;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.edm-main-frame img {
  max-height: 100%;
  width: auto;
}

.edm-thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.edm-mini-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.edm-mini-thumb:hover,
.edm-mini-thumb.active {
  border-color: #0ea5e9;
}

/* Media Grid */
.edm-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.edm-media-item {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.edm-media-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.edm-media-thumb {
  height: 150px;
  background: #f6f8fa;
}

.edm-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-media-caption {
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Media Object Layout Styles */
/* Media Object Layout Styles */
.edm-media-display .page__body-navtabs--borderless,
.edm-object-display .page__body-navtabs--borderless {
  width: 100%;
}

.edm-media-display .nav-tabs,
.edm-object-display .nav-tabs {
  display: flex;
  border-bottom: 1px solid #d0d7de;
  margin-bottom: 25px;
  padding: 0;
  list-style: none;
}

.edm-media-display .nav-tabs li,
.edm-object-display .nav-tabs li {
  margin-bottom: -1px;
}

.edm-media-display .nav-tabs li a,
.edm-object-display .nav-tabs li a {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  color: #656d76;
  text-decoration: none;
  border: 1px solid transparent;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  transition: all 0.2s ease;
}

.edm-nav-tabs li.active a,
.edm-object-display .nav-tabs li.active a {
  color: #0ea5e9;
  background-color: #fff;
  border-color: #d0d7de #d0d7de transparent;
}

.edm-media-display .nav-tabs li a:hover:not(.active a),
.edm-object-display .nav-tabs li a:hover:not(.active a) {
  background-color: #f6f8fa;
  border-color: transparent transparent #d0d7de;
}

.edm-media-display .tab-pane,
.edm-object-display .tab-pane {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid & Columns mapping */
.edm-object-display .rs-page__summary-content {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 15px;
  box-sizing: border-box;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
  box-sizing: border-box;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .col-md-8,
  .col-md-4,
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Panel & Design aesthetics */
.panel {
  border: 1px solid #d0d7de;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.panel-success {
  border-color: #d0d7de;
}

.panel-body {
  padding: 24px;
}

/* Primary buttons styling */
.edm-media-display .btn-primary,
.edm-media-display .edm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0ea5e9;
  color: #fff;
  border: 1px solid rgba(27, 31, 36, 0.15);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(27, 31, 35, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.2s cubic-bezier(0.3, 0, 0, 1);
  width: 100%;
  box-sizing: border-box;
}

.edm-media-display .btn-primary:hover,
.edm-media-display .edm-btn-primary:hover {
  background-color: #0284c7;
  border-color: rgba(27, 31, 36, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.edm-media-display .btn-primary:active,
.edm-media-display .edm-btn-primary:active {
  background-color: #0369a1;
  transform: translateY(0);
}

/* Sidebar representation styling */
.rs-page__summary-image {
  background-color: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  transition: box-shadow 0.2s;
}

.rs-page__summary-image:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Responsive Table styling */
.edm-media-display .edm-meta-table,
.edm-taxonomy-display .edm-meta-table,
.edm-object-display table {
  width: 100%;
  border-collapse: collapse;
}

.edm-media-display .edm-meta-table td,
.edm-taxonomy-display .edm-meta-table td,
.edm-object-display table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}

.edm-media-display .edm-meta-table tr:last-child td,
.edm-taxonomy-display .edm-meta-table tr:last-child td,
.edm-object-display table tr:last-child td {
  border-bottom: none;
}

.edm-media-display .edm-meta-table b,
.edm-taxonomy-display .edm-meta-table b,
.edm-object-display table b {
  color: #24292f;
  font-weight: 600;
}

.edm-media-display .edm-meta-table td a,
.edm-taxonomy-display .edm-meta-table td a,
.edm-object-display table td a {
  color: #0ea5e9;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
}

.edm-media-display .edm-meta-table td a:hover,
.edm-taxonomy-display .edm-meta-table td a:hover,
.edm-object-display table td a:hover {
  text-decoration: underline;
}

.edm-media-display .edm-meta-table ul,
.edm-taxonomy-display .edm-meta-table ul,
.edm-object-display table ul {
  margin: 0;
  padding: 0;
}

.edm-media-display .edm-meta-table li,
.edm-taxonomy-display .edm-meta-table li,
.edm-object-display table li {
  margin-bottom: 6px;
}

.edm-media-display .edm-meta-table li:last-child,
.edm-taxonomy-display .edm-meta-table li:last-child,
.edm-object-display table li:last-child {
  margin-bottom: 0;
}

/* Gallery Visual Styles */
.edm-sidebar-section {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.edm-sidebar-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: #1f2937;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.edm-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edm-gallery-focused-wrapper {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  overflow: hidden;
  padding: 8px;
}

.edm-gallery-focused {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.edm-gallery-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
}

.edm-gallery-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.edm-gallery-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.edm-gallery-thumb.active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

/* Borderless tabs and transitions */
.page__body-navtabs--borderless {
  margin-bottom: 20px;
}

.page__body-navtabs--borderless .nav-tabs {
  border-bottom: 2px solid #f1f5f9 !important;
}

.page__body-navtabs--borderless .nav-tabs > li {
  border: none !important;
  background: none !important;
  margin-bottom: -2px !important;
}

.page__body-navtabs--borderless .nav-tabs > li > a {
  border: none !important;
  background: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  padding: 12px 20px !important;
  position: relative !important;
  transition: color 0.2s !important;
}

.page__body-navtabs--borderless .nav-tabs > li.active > a,
.page__body-navtabs--borderless .nav-tabs > li.active > a:hover,
.page__body-navtabs--borderless .nav-tabs > li.active > a:focus {
  border: none !important;
  background: none !important;
  color: #0ea5e9 !important;
}

.page__body-navtabs--borderless .nav-tabs > li.active > a::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0ea5e9;
  border-radius: 2px;
}

.page__body-navtabs--borderless .nav-tabs > li > a:hover {
  color: #334155 !important;
  background: none !important;
}
