/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap");

/* Reset */
* {
  margin: 0;
  /* padding: 0; */
  box-sizing: border-box;
}

/* Body Styles */
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #fafafa, #c55555);
  /* color: #333; */
  min-height: 100vh;
  padding: 10px;
}

/* Wrapper */
.wrapper {
  max-width: 900px;
  margin: auto;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.wrapper h2,
p {
  margin-bottom: 10px;
  color: black;
  font-weight: bold;
}

.wrapper p {
  font-size: 18px;
}

/* Header */
.header,
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.logo-container img,
.logo {
  width: 300px;
  /* height: auto; */
}

.company-name {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(45deg, #af4c4c, #000000);

  /* Vendor-prefixed for older Chrome/Safari */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Standard property for compatibility */
  background-clip: text;
  color: transparent; /* Fallback for unsupported browsers */

  margin-top: 10px;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.nav-link {
  text-decoration: none;
  padding: 10px 16px;
  background: linear-gradient(45deg, #af4c4c, #000000);
  color: white;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 18px;
}

.nav-link:hover {
  background: linear-gradient(45deg, #5e1b1b, #af4c4c);
}

.nav-link.active {
  background: linear-gradient(45deg, #000000, #af4c4c);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* background: white; */
  padding: 40px;
  /* border-radius: 10px; */
  text-align: center;
  /* box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); */
}

form div {
  display: flex;
  flex-direction: column;
}

form input,
form select {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 20px;
}

form button {
  width: 100%;
  padding: 10px;
  background-color: #3b0d0d;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
}

form button:hover {
  background-color: #5d1414;
}

button {
  padding: 12px;
  border: none;
  background: linear-gradient(45deg, #7d2e2e, #5e1b1b);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: linear-gradient(45deg, #5e1b1b, #7d2e2e);
}

/* Messages */
.messages p {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.messages .success {
  background: #d4edda;
  color: #155724;
}

.messages .error {
  background: #f8d7da;
  color: #721c24;
}

/* Table Wrapper for Scroll */
.table-container {
  max-height: 450px; /* Adjust based on row height */
  overflow-y: auto;
  border-radius: 8px;
}

/* Tables */
table {
  width: 100%;
  /* border-collapse: collapse; */
  margin-top: 20px;
}

table th,
table td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

table td {
  /* text-align: center; */
  color: black;
}

table th {
  background: #000000;
  color: white;
  position: sticky;
  top: 0; /* Keeps header visible during scroll */
  z-index: 1;
}

table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.1);
}

table tr:hover {
  background: rgba(77, 30, 30, 0.3);
}

.wide-column {
  width: 20%;
}
.wide-column1 {
  width: 50%;
}

/* Feedback List */
.feedback ul {
  list-style-type: none;
  padding: 0;
}

.feedback li {
  font-size: 16px;
  margin: 5px 0;
}

.feedback li:hover {
  color: #af4c4c;
}

.feedback-item {
  margin-bottom: 10px; /* Adds space below each feedback item */
}
/* Adjust for the scrollbar width to maintain alignment */
.table-container::-webkit-scrollbar {
  width: 2px;
}

.table-container::-webkit-scrollbar-thumb {
  background-color: #000000;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}
/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  button {
    width: 100%;
  }

  table th,
  table td {
    padding: 8px;
    font-size: 14px;
  }

  .company-name {
    font-size: 24px;
  }

  .logo-container img,
  .logo {
    width: 150px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* background: white; */
    padding: 20px;
    /* border-radius: 10px; */
    text-align: center;
    /* box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); */
  }

  .table-container {
    max-height: 380px; /* Adjust based on row height */
    overflow-y: auto;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 15px;
  }

  table th,
  table td {
    font-size: 12px;
    padding: 6px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* background: white; */
    padding: 10px;
    /* border-radius: 10px; */
    text-align: center;
    /* box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); */
  }

  button {
    padding: 10px;
  }
}
