/* ---------------- Container ---------------- */
.im-container {
  max-width: 900px;
  margin: 50px auto;
  background: #ffffff;
  padding: 40px 35px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
}

/* ---------------- Navigation Tabs ---------------- */
.im-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  margin-top: 30px;
}

.im-nav a {
  background: #0073aa;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  flex: auto;
}

.im-nav a:hover {
  background: #005a8c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ---------------- Form Container as Flex ---------------- */
.im-form {
  display: flex !important;
  flex-wrap: wrap; 
  gap: 20px; 
  margin-bottom: 20px;
}

/* ---------------- Form Inputs ---------------- */
.im-form input,
.im-form select,
.im-form textarea {
  flex: 1 1 45%; /* two inputs per row on large screens */
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.im-form input:focus,
.im-form select:focus,
.im-form textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 8px rgba(0, 115, 170, 0.2);
  outline: none;
  background: #fff;
}

/* ---------------- Form Button ---------------- */
.im-form button {
  flex: 1 1 100%; /* full width button */
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.im-form button:hover {
  background: #005a8c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ---------------- Responsive Form ---------------- */
@media (max-width: 768px) {
  .im-form input,
  .im-form select,
  .im-form textarea {
    flex: 1 1 100%; /* stack inputs vertically on smaller screens */
  }
}


/* ---------------- Table ---------------- */
.im-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.im-table th,
.im-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.im-table th {
  background: #0073aa;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.im-table tr:nth-child(even) {
  background: #f9f9f9;
}

.im-table tr:hover {
  background: #e3f2fd;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
  .im-container {
    padding: 30px 25px;
  }

  .im-nav a {
    font-size: 14px;
    padding: 8px 15px;
  }

  .im-form input,
  .im-form select,
  .im-form textarea,
  .im-form button {
    font-size: 14px;
    padding: 10px 12px;
  }

  .im-table th,
  .im-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .im-nav {
    flex-direction: column;
    gap: 10px;
  }

  .im-nav a {
    flex: 1 1 100%;
  }

  .im-table {
    display: block;
    overflow-x: auto;
  }

  .im-table th,
  .im-table td {
    white-space: nowrap;
  }
}
