/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #4A90E2;
  --primary-dark: #357ABD;
  --secondary: #2ECC71;
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --text-primary: #2C3E50;
  --text-secondary: #6C757D;
  --border: #E9ECEF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

.hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

/* Layout */
.wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.box {
  width: 400px;
  min-height: 70vh;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.center-box {
  order: 1;
  margin: 0 1rem;
}

#sidePanel {
  order: 2;
  overflow-y: auto;
  width: auto;
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
}

/* Header */
.main-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2rem 0;
  text-align: center;
  color: white;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-content h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
  font-weight: 700;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
}

#logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Hero Section */
.hero-section {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--surface);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
  background: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 1rem 0;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
}

/* Upload Section */
.upload-section {
  padding: 4rem 2rem;
  background: var(--surface);
}

/* Content */
.center-content {
  padding: 2rem;
  text-align: center;
}

.upload-container {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  background: var(--background);
}

.upload-container:hover {
  border-color: var(--primary);
  background: rgba(74, 144, 226, 0.05);
}

.upload-logo {
  color: var(--primary);
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.upload-container:hover .upload-logo {
  transform: scale(1.1);
}

.upload-container span {
  font-weight: 600;
  color: var(--primary);
}

/* Buttons */
.button {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Form Elements */
#formConf {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

#formConf input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#formConf input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Collapsible */
#wrap-collabsible {
  margin: 1.5rem 0;
}

#wrap-collabsible .lbl-toggle {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--background);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

#wrap-collabsible .lbl-toggle:hover {
  background: var(--border);
}

#wrap-collabsible .lbl-toggle::before {
  content: '▸';
  margin-right: 0.75rem;
  transition: transform 0.3s ease;
}

#wrap-collabsible .toggle:checked + .lbl-toggle::before {
  transform: rotate(90deg);
}

#wrap-collabsible .collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

#wrap-collabsible .toggle:checked + .lbl-toggle + .collapsible-content {
  max-height: 500px;
}

/* Progress Bar */
#progressBar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  margin: 1rem 0;
  appearance: none;
}

#progressBar::-webkit-progress-bar {
  background-color: var(--border);
  border-radius: 4px;
}

#progressBar::-webkit-progress-value {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 4px;
}

/* Footer */
.main-footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrapper {
    padding: 1rem;
  }
  
  .box {
    width: 100%;
    margin: 1rem 0;
  }
  
  .header-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .upload-container {
    padding: 1.5rem;
  }
  
  .button {
    width: 100%;
    margin: 0.5rem 0;
  }
}
