demo/iframe-integration/shell/styles.css
/* iframe Shell Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, #ee5a24 0%, #f79f1f 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  position: relative;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.nav-btn.active {
  background: white;
  color: #ee5a24;
}

.cart-count {
  background: #333;
  color: white;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.user-info {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
}

/* Main Content */
.app-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 2rem;
}

.iframe-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  min-height: 600px;
}

#mfe-frame {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* Message Log */
.message-log {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.message-log h3 {
  color: #ee5a24;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.log-content {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.log-entry {
  display: grid;
  grid-template-columns: 100px 120px 150px 1fr;
  gap: 1rem;
  padding: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-time {
  color: #666;
  font-size: 0.85rem;
}

.log-source {
  color: #ee5a24;
  font-weight: bold;
}

.log-type {
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.85rem;
}

.log-payload {
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
.app-footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

.app-footer p {
  font-size: 0.9rem;
}

/* Notification Toast */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 2rem;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  transform: translateX(400px);
  transition: transform 0.3s;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: #27ae60;
}

.notification.error {
  background: #e74c3c;
}

.notification.info {
  background: #3498db;
}

/* Scrollbar Styles */
.log-content::-webkit-scrollbar {
  width: 8px;
}

.log-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.log-content::-webkit-scrollbar-thumb {
  background: #ee5a24;
  border-radius: 10px;
}

.log-content::-webkit-scrollbar-thumb:hover {
  background: #d84315;
}
