@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --primary-color: #023047;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
}

nav {
  background: #023047;
  color: #fff;
  padding: 16px 0;
  font-size: 20px;
  margin-bottom: 40px;
}

nav a {
  color: #fff;
}

nav .container {
  display: flex;
  justify-content: space-between;
}

.guest-container {
  display: grid;
  place-items: center;
  height: 100vh;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.container {
  width: 700px;
  max-width: 90%;
  margin: 0 auto;
}

form.insert-form {
  display: grid;
  grid-template-columns: 2fr 7fr;
  gap: 8px;
}

h2 {
  font-size: 24px;
  padding: 8px 0;
  margin: 8px 0;
  margin-top: 30px;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea {
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.3);
  font-family: "Roboto", sans-serif;
  flex: 1;
}

input[type="file"] {
  font-size: 16px;
  padding: 8px 0;
}

textarea {
  height: 100px;
}

input[type="submit"] {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #222;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  background: var(--primary-color);
  color: #fff;
}

.search-form,
.news-form {
  width: 100%;
  display: flex;
  gap: 16px;
}

.search-form input[type="text"],
.news-form input[type="text"] {
  flex: 1;
}

.search-container {
  margin-bottom: 40px;
}

.error-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #efefef;
  margin: 24px 0;
  border-radius: 8px;
  color: red;
}

.error-messages .error-message {
  font-size: 16px;
}

.options {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.options .option {
  padding: 32px;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 30px -7px rgba(0, 0, 0, 0.2);
  color: #023047;
  text-transform: uppercase;
  transition: all 400ms ease;
}

.options .option:hover {
  transform: scale(1.02);
}

footer {
    background: #222;
    color: #fff;
    padding: 24px 32px;
    font-size: 18px;
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 600px) {
  form.insert-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Index page */

.list-container,
.feedback-list-container {
  height: 400px;
  overflow-y: scroll;
  border: 1px solid #eee;
  box-shadow: 0 4px 36px -13px rgb(0 0 0 / 20%);
}

.feedback-list-container {
  height: 500px;
}

.data-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feedback-data-list {
  list-style: none;
  overflow: scroll;
  padding: 8px 16px;
}

.data-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #eee;
  background: #ffffff;
}

.data-list .sr-no {
  width: 46px;
  font-size: 18px;
}

.data-list .name-and-phone,
.feedback-data-list .name-and-phone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  border-left: 1px solid #eee;
  padding: 8px 24px;
}

.feedback-data-list .name-and-phone {
  flex-direction: row;
  border-left: none;
  padding-top: 20px;
}

.feedback-data-list .feedback-text {
  padding: 8px 24px;
  line-height: 1.8;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.data-list .name {
  /* font-weight: bold; */
  font-size: 18px;
}

.data-list .phone {
  font-size: 15px;
  color: #777;
}

.data-list .buttons {
  display: flex;
  gap: 6px;
  flex-direction: column-reverse;
}

.data-list .btn {
  padding: 0;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 14px;
  transition: all 400ms ease;
}

.data-list .btn svg {
  width: 20px;
}

.data-list .edit-btn,
.data-list .delete-btn {
  width: fit-content;
  cursor: pointer;
}

.data-list .edit-and-delete-btns {
  display: flex;
  gap: 16px;
}

.data-list .delete-btn svg {
  color: red;
}

.data-list .btn:hover {
  transform: scale(1.04);
}

.news-banner {
  background: #023047;
  font-size: 20px;
}

.news-banner .single-news {
  margin: 0 32px;
}

.delete-news-container {
  display: flex;
  margin: 20px 0px;
  gap: 16px;
}

.delete-news-container select {
  flex: 1;
  max-width: calc(100% - 98px);
}

