/* Минималистичный редизайн страницы администрации */

/* Основные переменные */
:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Стили для кнопки "Главная" */
.home-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.home-btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  color: white;
  text-decoration: none;
}

.home-btn i {
  font-size: 0.9rem;
}

/* Faculty Section */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  justify-items: center;
}

.team-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  transition: all 0.3s ease;
  border: 1px solid #e5e5e5;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.team-card:hover .card-image img {
  transform: scale(1.08);
}

.card-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 24px 20px;
  text-align: left;
}

.member-name {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.member-position {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.member-department {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
  line-height: 1.4;
}

.details-btn {
  width: 100%;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.details-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.details-btn:hover::before {
  left: 100%;
}

.details-btn:hover {
  background: linear-gradient(135deg, #357abd 0%, #2c5aa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.details-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .team-card {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .team-card {
    max-width: 240px;
  }

  .card-image {
    height: 280px;
  }

  .card-content {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-card {
    max-width: 100%;
  }
}

/* Модальное окно - ультра минималистичный дизайн */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #ffffff;
  margin: 4% auto;
  padding: 0;
  border-radius: 4px;
  width: 92%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transform: translateY(-10px);
  transition: transform 0.15s ease;
  border: 1px solid #f0f0f0;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  background: #ffffff;
  color: #000000;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.01em;
}

.close {
  color: #999999;
  font-size: 20px;
  font-weight: 200;
  cursor: pointer;
  transition: color 0.15s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.close:hover {
  color: #000000;
  background-color: #f8f8f8;
}

.modal-body {
  padding: 28px;
}

.employee-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.employee-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: #000000;
  margin: 0 0 8px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.employee-position {
  font-size: 0.875rem;
  color: #666666;
  font-weight: 400;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.employee-department {
  font-size: 0.875rem;
  color: #999999;
  margin: 0;
}

.employee-details {
  max-width: 100%;
}

.info-section {
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border-left: none;
  transition: none;
  box-shadow: none;
}

.info-section:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.info-section h4 {
  color: #666666;
  font-size: 0.93rem;
  font-weight: 500;
  margin: 0 0 6px 0;

  position: relative;
  padding-bottom: 0;
}

.info-section h4::after {
  display: none;
}

.info-section p {
  color: #000000;
  line-height: 1.5;
  margin: 0 0 12px 0;
  font-size: 0.92rem;
  font-weight: 400;
}

.courses-list ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.courses-list li {
  color: #000000;
  line-height: 1.5;
  margin-bottom: 10px;
  font-size: 0.92rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border-left: none;
  transition: none;
  position: relative;
  padding-left: 12px;
}

.courses-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #cccccc;
  font-weight: 300;
}

.courses-list li:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.courses-list li:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 20px 24px;
  background: #fafafa;
  border-radius: 0 0 4px 4px;
  text-align: right;
  border-top: 1px solid #f0f0f0;
}

.close-modal {
  background: #000000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.close-modal:hover {
  background: #333333;
  transform: none;
  box-shadow: none;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
  .modal-content {
    width: 96%;
    margin: 3% auto;
    max-height: 92vh;
  }

  .modal-header {
    padding: 18px 20px 14px;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-body {
    padding: 24px;
  }

  .employee-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
  }

  .employee-name {
    font-size: 1.375rem;
  }

  .modal-footer {
    padding: 18px 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    margin: 2% auto;
    border-radius: 2px;
  }

  .modal-header {
    padding: 16px 18px 12px;
  }

  .modal-title {
    font-size: 0.9375rem;
  }

  .modal-body {
    padding: 20px;
  }

  .employee-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .employee-name {
    font-size: 1.25rem;
  }

  .info-section {
    margin-bottom: 16px;
  }

  .info-section h4 {
    font-size: 0.625rem;
  }

  .info-section p,
  .courses-list li {
    font-size: 0.75rem;
  }
}
