/* ExportsPortal.css - Exact Match to Reference Image */

.ep-layout {
  display: flex;
  width: 100%;
  flex: 1;
  gap: 32px;
  padding: 32px;
  box-sizing: border-box;
  background-color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
}

/* --- SIDEBAR --- */
.ep-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #152238 0%, #1B2A41 50%, #243B55 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 16px 40px -10px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 32px 24px;
  box-sizing: border-box;
  height: max-content;
  position: sticky;
  top: 100px;
}

.ep-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ep-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.ep-logo-text h2 {
  color: white;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ep-logo-text span {
  color: #94a3b8;
  font-size: 11px;
}

.ep-collapse-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
}

.ep-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ep-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ep-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.ep-nav-item.active {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.ep-nav-icon {
  opacity: 0.8;
}

.ep-nav-arrow {
  margin-left: auto;
  opacity: 0.8;
}

.ep-sidebar-footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ep-cta-card {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border-radius: 20px;
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.ep-cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.ep-cta-icon {
  width: 48px; height: 48px;
  background: white;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 16px;
  position: relative;
}

.ep-cta-card h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
}

.ep-cta-card p {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: #d1fae5;
  line-height: 1.4;
  position: relative;
}

.ep-cta-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.ep-cta-btn:hover { background: rgba(255,255,255,0.3); }

.ep-copyright {
  font-size: 11px;
  color: #64748b;
  text-align: center;
}


/* --- MAIN CONTENT --- */
@keyframes epTabSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ep-main-content {
  flex: 1;
  padding: 0;
  overflow-y: visible;
  box-sizing: border-box;
  animation: epTabSlideIn 0.4s ease-out forwards;
}

/* HEADER */
.ep-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.ep-header-titles h1 {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.ep-header-titles p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.ep-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ep-search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  border-radius: 100px;
  width: 280px;
}
.ep-search-icon {
  color: #94a3b8;
  margin-right: 8px;
}
.ep-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
}

.ep-quick-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #0f172a;
}

.ep-bell {
  width: 44px; height: 44px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  position: relative;
  color: #475569;
}
.ep-bell-dot {
  position: absolute;
  top: 10px; right: 12px;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid white;
}

.ep-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; }


/* HERO BANNER */
.ep-hero-banner {
  background: linear-gradient(90deg, #f0fdf4 0%, #ccfbf1 100%);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.ep-hero-text {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.ep-hero-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #0f172a;
  line-height: 1.2;
}

.ep-text-green {
  color: #16a34a;
}

.ep-hero-text p {
  font-size: 15px;
  color: #334155;
  margin: 0 0 32px 0;
  font-weight: 500;
}

.ep-stats-row {
  display: flex;
  gap: 32px;
}

.ep-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ep-stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; justify-content: center; align-items: center;
  color: white;
}
.bg-green { background: #22c55e; }
.bg-blue { background: #3b82f6; }
.bg-orange { background: #f97316; }
.bg-purple { background: #a855f7; }

.ep-stat-info {
  display: flex;
  flex-direction: column;
}
.ep-stat-info strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.ep-stat-info span {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* HERO ILLUSTRATION (CSS Approximation) */
.ep-hero-illustration {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 500px;
  pointer-events: none;
}
.ep-ill-base {
  position: absolute;
  bottom: 0; right: 0;
  width: 100%; height: 60px;
  background: linear-gradient(0deg, #6ee7b7 0%, transparent 100%);
  border-radius: 0 0 24px 0;
}
.ep-ill-globe {
  position: absolute;
  top: 20px; right: 80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle at 30% 30%, #86efac 0%, #34d399 50%, #059669 100%);
  border-radius: 50%;
  box-shadow: inset -20px -20px 40px rgba(0,0,0,0.1), 0 20px 40px rgba(52,211,153,0.3);
  opacity: 0.8;
}
.ep-ill-plane {
  position: absolute;
  top: 40px; right: 40px;
  color: #0f172a;
  transform: rotate(45deg);
}
.ep-ill-ship {
  position: absolute;
  bottom: 40px; right: 180px;
  width: 100px; height: 40px;
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
  border-radius: 8px 8px 24px 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.ep-ill-ship::before { /* containers */
  content:''; position:absolute; top:-15px; left:20px;
  width:60px; height:15px;
  background: repeating-linear-gradient(90deg, #ef4444, #ef4444 15px, #f59e0b 15px, #f59e0b 30px);
}
.ep-ill-bars {
  position: absolute;
  bottom: 40px; right: 80px;
  display: flex; align-items: flex-end; gap: 8px;
}
.ep-bar { width: 16px; border-radius: 4px 4px 0 0; }
.ep-bar.b1 { height: 40px; background: #3b82f6; }
.ep-bar.b2 { height: 60px; background: #10b981; }
.ep-bar.b3 { height: 30px; background: #8b5cf6; }


/* GRID CARDS */
.ep-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ep-card {
  background: white;
  border-radius: 20px;
  padding: 20px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer;
}
.ep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  background-color: #0f172a;
}
.ep-card:hover .ep-card-text-area h3 {
  color: white;
}

.ep-card-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

/* Card Badge Colors */
.ep-card-badge.color-green { background: #dcfce7; color: #16a34a; }
.ep-card-badge.color-blue { background: #dbeafe; color: #2563eb; }
.ep-card-badge.color-orange { background: #ffedd5; color: #ea580c; }
.ep-card-badge.color-purple { background: #f3e8ff; color: #9333ea; }
.ep-card-badge.color-pink { background: #fce7f3; color: #db2777; }
.ep-card-badge.color-teal { background: #ccfbf1; color: #0d9488; }
.ep-card-badge.color-yellow { background: #fef9c3; color: #ca8a04; }
.ep-card-badge.color-blue-light { background: #e0f2fe; color: #0284c7; }
.ep-card-badge.color-green-light { background: #ecfccb; color: #65a30d; }
.ep-card-badge.color-purple-light { background: #fae8ff; color: #c026d3; }
.ep-card-badge.color-orange-light { background: #fef3c7; color: #d97706; }


.ep-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ep-card-icon-area {
  flex-shrink: 0;
}

.ep-icon-circle {
  width: 104px; height: 104px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
}

/* Icon Circle Colors */
.ep-icon-circle.color-green { background: #f0fdf4; color: #22c55e; }
.ep-icon-circle.color-blue { background: #eff6ff; color: #3b82f6; }
.ep-icon-circle.color-orange { background: #fff7ed; color: #f97316; }
.ep-icon-circle.color-purple { background: #faf5ff; color: #a855f7; }
.ep-icon-circle.color-pink { background: #fdf2f8; color: #ec4899; }
.ep-icon-circle.color-teal { background: #f0fdfa; color: #14b8a6; }
.ep-icon-circle.color-yellow { background: #fefce8; color: #eab308; }
.ep-icon-circle.color-blue-light { background: #f0f9ff; color: #0ea5e9; }
.ep-icon-circle.color-green-light { background: #f7fee7; color: #84cc16; }
.ep-icon-circle.color-purple-light { background: #fdf4ff; color: #d946ef; }
.ep-icon-circle.color-orange-light { background: #fffbeb; color: #f59e0b; }

.ep-card-icon {
  stroke-width: 1.5px;
}

.ep-card-image {
  width: 86px;
  height: 86px;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 12px;
}

.ep-card-text-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ep-card-text-area h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s;
}

.ep-card-text-area p {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.ep-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Link Colors */
.ep-card-link.text-green { color: #16a34a; }
.ep-card-link.text-blue { color: #2563eb; }
.ep-card-link.text-orange { color: #ea580c; }
.ep-card-link.text-purple { color: #9333ea; }
.ep-card-link.text-pink { color: #db2777; }
.ep-card-link.text-teal { color: #0d9488; }
.ep-card-link.text-yellow { color: #ca8a04; }
.ep-card-link.text-blue-light { color: #0284c7; }
.ep-card-link.text-green-light { color: #65a30d; }
.ep-card-link.text-purple-light { color: #c026d3; }
.ep-card-link.text-orange-light { color: #d97706; }

/* Animation Keyframes */
@keyframes epSlideInFromLeft {
  from { opacity: 0; translate: -60px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes epSlideInFromRight {
  from { opacity: 0; translate: 60px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes epSlideInFromTop {
  from { opacity: 0; translate: 0 -60px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes epSlideInFromBottom {
  from { opacity: 0; translate: 0 60px; }
  to { opacity: 1; translate: 0 0; }
}

/* Responsive adjustments */
@media (max-width: 1280px) {
  .ep-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ep-hero-illustration { width: 300px; opacity: 0.5; }
}
@media (max-width: 768px) {
  .ep-layout { flex-direction: column; }
  .ep-sidebar { width: 100%; padding: 20px; }
  .ep-cards-grid { grid-template-columns: 1fr; }
  .ep-main-content { padding: 20px; }
  .ep-stats-row { flex-wrap: wrap; }
  .ep-hero-illustration { display: none; }
}

/* Back to the My Exports page (/exports) */
.ep-back-bar { padding: 20px 32px 0; background-color: #f8fafc; }
.ep-back-link { display: inline-flex; align-items: center; gap: 6px; color: #0f766e; font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14px; text-decoration: none; padding: 6px 12px 6px 8px; border-radius: 999px; transition: background-color .15s; }
.ep-back-link:hover, .ep-back-link:focus-visible { background-color: #ccfbf1; color: #115e59; }
.ep-layout { padding-top: 16px; }
@media (max-width: 768px) { .ep-back-bar { padding: 16px 20px 0; } }
