* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f3f4f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
}

.header-left i {
  font-size: 24px;
  color: #d32f2f;
}

.location {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  margin-right: 10px;
}

.location:hover {
  color: #d32f2f;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  margin-right: 10px;
}

.nav-links a:hover {
  color: #d32f2f;
}

.add-btn {
  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.add-btn:hover {
  background: #b71c1c;
}

.logReg-btn {
  background: transparent;
  border: 1px solid #d32f2f;
  color: #d32f2f;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

.logReg-btn:hover {
  background: #d32f2f;
  color: #fff;
}

.main {
  flex: 1;
  margin-top: 80px;
  display: flex;
  padding: 20px;
  width: 100%;
}

.add-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.footer {
  background: #fff;
  padding: 15px;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: auto;
}

.footer a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.footer a:hover {
  color: #d32f2f;
}

/*Для иконки профиля*/

.profile-btn {
  display: inline-flex;           /* для центрирования содержимого */
  align-items: center;
  justify-content: center;
  width: 50px;                    /* размер круга */
  height: 50px;
  border-radius: 50%;             /* делает круг */
  border: 2px solid #ccc;         /* серый контур */
  background-color: #fff;         /* белый фон */
  color: #333;                    /* цвет текста */
  text-decoration: none;          /* убираем подчеркивание */
  font-weight: bold;
  font-size: 12px;                /* размер текста внутри */
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
  position: relative;
}

/* При наведении обводка становится красной */
.profile-btn:hover {
  border-color: #d32f2f;
  box-shadow: 0 0 5px rgba(211, 47, 47, 0.5);
}

/* Если внутри будет картинка */
.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* сохраняет пропорции и обрезает лишнее */
  border-radius: 50%;
}

.search-btn {
  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #b71c1c;
}

/* Общий контейнер: поля + кнопка в одну линию */
.FilterRow {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin: 15px 0;
}

/* Контейнер всех полей фильтра */
.InputFilter {
  display: flex;
  gap: 20px;
}

/* Каждый отдельный инпут Django (обёртка <div>) */
.InputFilter > div {
  width: 150px;
}

/* Стилизация label */
.InputFilter label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

/* Стилизация input/select */
.InputFilter input,
.InputFilter select {
  width: 150px;
  height: 32px;
  padding: 0 10px;
  font-size: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background-color: #f9fafb;
  color: #111827;
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

/* hover */
.InputFilter input:hover,
.InputFilter select:hover {
  border-color: #fca5a5;
  background-color: white;
  box-shadow: 0 2px 8px rgba(252, 165, 165, 0.15);
}

/* focus */
.InputFilter input:focus,
.InputFilter select:focus {
  border-color: #ef4444;
  background-color: white;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* placeholder */
.InputFilter input::placeholder {
  color: #9ca3af;
  font-size: 13px;
}

/* Кнопка поиска */
.search-btn {
  padding: 8px 20px;
  background-color: #ef4444;
  color: white;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  height: 32px; /* чтобы совпадало с полями */
  transition: 0.2s ease-in-out;
}

.search-btn:hover {
  background-color: #dc2626;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

