/* Seams Proxy Styles */

:root {
  --forest-green: #2d5016;
  --forest-green-hover: #3d6b1e;
  --forest-green-light: #4a7c28;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Header */
#header {
  padding: 8px;
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

#header input {
  width: 400px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
}

#header input:focus {
  outline: none;
  border-color: var(--forest-green);
}

#header button {
  padding: 6px 16px;
  background: var(--forest-green);
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

#header button:hover {
  background: var(--forest-green-hover);
}

/* Main container */
#main-container {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Content iframe */
#content {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  transition: margin-right 0.3s ease;
}

#content.sidebar-open {
  margin-right: 400px;
}

/* Sidebar */
#sidebar-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  border-left: 1px solid #ccc;
  background: white;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transform: translateX(0);
  transition: transform 0.3s ease;
  z-index: 100;
  overflow-y: auto;
}

#sidebar-container.hidden {
  transform: translateX(100%);
}

/* Toggle button */
#toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest-green);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 101;
  transition: right 0.3s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#toggle-btn:hover {
  background: var(--forest-green-hover);
}

#toggle-btn.sidebar-open {
  right: 420px;
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: system-ui, sans-serif;
  color: #666;
}

/* Mobile styles */
@media (max-width: 768px) {
  #header input {
    flex: 1;
    width: auto;
  }
  
  #sidebar-container {
    width: 100%;
  }
  
  #content.sidebar-open {
    margin-right: 0;
  }
  
  #toggle-btn.sidebar-open {
    right: 20px;
  }
}
