/* CatMax UI, Global Styles Only */

/* RESET, BASE */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VIEWPORT SHELL */
html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0f;
  color: #fff;
}

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

/* HEADER */
.app-header {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  height: 120px;
  min-height: 120px;
  background: #0a0a0f;
  border-bottom: 2px solid #f97316;
  overflow-x: hidden;
}

.header-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 120px;
}

.logo-wrapper {
  position: relative;
  padding-top: 45px;
  margin: 0 auto;
  text-align: center;
}

.logo-img {
  max-width: 244px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tagline {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.05em;
  z-index: 20;
  padding: 2px 8px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.sidebar-toggle {
  position: relative;
  bottom: 20px;
  width: 40px;
  height: 40px;
  background: rgba(18, 18, 26, 0.9);
  border: 2px solid #f97316;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  flex-shrink: 0;
}

.sidebar-toggle span {
  width: 20px;
  height: 2px;
  background: #f97316;
  border-radius: 1px;
}

/* LIGHTNING BACKGROUND, MUST NOT AFFECT LAYOUT WIDTH */
.lightning-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.lightning-bg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  flex-basis: auto;
  display: flex;
  flex-direction: row;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #0a0a0f;
  overflow: hidden;
}

/* FEATURE CONTAINER */
#feature-container {
  flex: 1;
  flex-basis: auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: hidden;
}

/* TERMINAL PANEL SHELL */
.terminal-panel-shell {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  transition: flex-basis 0.25s ease;
}

.terminal-panel-shell.collapsed {
  flex-basis: 30px;
}

.terminal-panel-shell.expanded {
  flex-basis: 480px;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #12121a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}