/* Оформление: файл заполняет агент */

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

body {
  font-family: sans-serif;
  background-color: #ffffff;
  color: #333;
}

#app {
  display: flex;
  min-height: 100vh;
}

.navigation {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
  height: 100vh;
  position: fixed;
  overflow-y: auto;
}

.navigation .logo {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 30px;
  padding: 0 20px;
  border-bottom: 1px solid #34495e;
  padding-bottom: 15px;
}

.navigation ul {
  list-style: none;
}

.navigation ul li {
  margin-bottom: 5px;
}

.navigation ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  transition: background-color 0.3s;
}

.navigation ul li a:hover,
.navigation ul li a.active {
  background-color: #34495e;
}

.content {
  flex: 1;
  margin-left: 250px;
  padding: 20px;
}

.content h1 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.revenue-card h3,
.inventory-card h3,
.sales-card h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.revenue {
  font-size: 1.8em;
  font-weight: bold;
  color: #27ae60;
}

.inventory {
  font-size: 1.8em;
  font-weight: bold;
  color: #3498db;
}

.sales {
  font-size: 1.8em;
  font-weight: bold;
  color: #e74c3c;
}

.hero-section {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.hero-text h2 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.hero-text p {
  color: #7f8c8d;
  line-height: 1.6;
}

/* Таблицы */
.inventory-table,
.sales-table,
.customers-table,
.employees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.inventory-table th,
.sales-table th,
.customers-table th,
.employees-table th {
  background-color: #3498db;
  color: white;
  padding: 15px;
  text-align: left;
}

.inventory-table td,
.sales-table td,
.customers-table td,
.employees-table td {
  padding: 15px;
  border-bottom: 1px solid #ecf0f1;
}

.inventory-table tr:hover,
.sales-table tr:hover,
.customers-table tr:hover,
.employees-table tr:hover {
  background-color: #f8f9fa;
}

/* Секции */
.inventory-section,
.sales-section,
.customers-section,
.employees-section,
.reports-section {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.inventory-section img,
.sales-section img,
.reports-section img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.report-card {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.report-card h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Ключевые функции */
.features-section {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 30px;
  border: 1px solid #e0e0e0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Адаптивность */
@media (max-width: 768px) {
  #app {
    flex-direction: column;
  }
  
  .navigation {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .content {
    margin-left: 0;
  }
  
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .reports-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Стили для загрузки */
.loading {
  text-align: center;
  padding: 50px;
  font-size: 1.2em;
  color: #2c3e50;
}
