/* Основные стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Макет приложения */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Навигация */
.navigation {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-user button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-user button:hover {
  background-color: #c0392b;
}

/* Основной контент */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Формы авторизации */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ecf0f1;
}

.auth-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.auth-form h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #2c3e50;
}

/* Общие стили форм */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Кнопки */
.btn-secondary,
.btn-edit,
.btn-delete {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.5rem;
}

/* .btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
} */

.btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-edit {
  background-color: #f39c12;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-edit:hover {
  background-color: #e67e22;
}

.btn-delete {
  background-color: #e74c3c;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-delete:hover {
  background-color: #c0392b;
}

/* Сообщения */
.error-message,
.message {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.error-message,
.message.error {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.message.success {
  background-color: #efe;
  color: #3a3;
  border: 1px solid #cfc;
}

/* Dashboard */
.dashboard h1 {
  margin-bottom: 2rem;
}

.welcome-message {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
}

.stat-number.pending {
  color: #f39c12;
}

.stat-number.in-progress {
  color: #3498db;
}

.stat-number.completed {
  color: #27ae60;
}

/* Таблицы */
.tasks-table,
.users-table {
  width: 100%;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tasks-table th,
.users-table th {
  background-color: #34495e;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 500;
}

.tasks-table td,
.users-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.tasks-table tr:last-child td,
.users-table tr:last-child td {
  border-bottom: none;
}

/* Модальные окна */
.task-form-modal,
.user-form-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* .modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
} */

/* .modal-content h2 {
  margin-bottom: 1.5rem;
} */

/* Статусы и приоритеты */
.status-select {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.status-select.pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-select.in-progress {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-select.completed {
  background-color: #d4edda;
  color: #155724;
}

.priority.low {
  color: #28a745;
}

.priority.medium {
  color: #ffc107;
}

.priority.high {
  color: #dc3545;
}

/* Роли */
.role-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.role-badge.admin {
  background-color: #e74c3c;
  color: white;
}

.role-badge.user {
  background-color: #3498db;
  color: white;
}

/* Профиль */
.profile-page {
  max-width: 800px;
}

.profile-section {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  align-items: center;
}

.info-row label {
  font-weight: 500;
  width: 150px;
  color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .tasks-table,
  .users-table {
    font-size: 0.875rem;
  }
  
  .tasks-table th,
  .tasks-table td,
  .users-table th,
  .users-table td {
    padding: 0.5rem;
  }
}


/* Fixed new styles */

.svg-inline--fa {
	display: var(--fa-display, inline-block);
	height: 1em;
	overflow: visible;
	vertical-align: -0.125em;
}
.bg-auth-holder{
  background-image: url("img/login-bg.png");
}
.bg-guac{
  background-image: url("img/guacamole.webp");  
}

.btn-sm2 {
	--phoenix-btn-padding-y: 0.3rem !important;
	--phoenix-btn-padding-x: 0.8rem !important;
	--phoenix-btn-font-size: 0.7rem !important;
	--phoenix-btn-border-radius: 0.375rem !important;
}

.btn-sm-all{
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
}

.modal{
  background-color: rgba(0,0,0,0.5);
}