/**
 * Layout Module
 * - app-container, main-card, header, content areas
 */

/* Main Container with Glassmorphism - Optimized for 1920x1080 */
.app-container {
  max-width: 1400px;
  margin: 1rem auto;
  padding: 0 1rem;
  height: calc(100vh - 2rem);
  max-height: 1060px; /* Optimize for 1920x1080 with some margin */
}

.main-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header Section */
.app-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: none;
}

.app-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.app-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.app-icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 2.2rem;
}

/* Compact Dashboard Layout */
.app-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  padding: 0;
  flex: 1; /* Take remaining space after header */
  min-height: 0; /* Allow flexbox shrinking */
}

@media (max-width: 768px) {
  .app-container {
    width: 100%;
    padding: 0.75rem 0.75rem 1.5rem 0.75rem;
  }

  .main-card {
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
  }

  .app-header {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .app-title {
    font-size: 1.6rem;
  }

  .app-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }

  .app-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .app-sidebar {
    position: relative;
    overflow: visible;
    order: -1;
  }

  .app-main {
    border-radius: var(--radius-lg);
  }
}

/* Sidebar for inputs */
.app-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Main content area for results */
.app-main {
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Results area - always visible */
.live-results-area {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}



