/* Navbar Styles */

/* Animate navbar sliding in from the top */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  -webkit-animation: navbarSlideIn 0.5s ease-out;
          animation: navbarSlideIn 0.5s ease-out;
}

@-webkit-keyframes navbarSlideIn {
  from {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes navbarSlideIn {
  from {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* Navbar brand and links styling */
.navbar .navbar-brand,
.navbar-nav .nav-link {
  color: #333333 !important;
  font-weight: 500;
  -webkit-transition: color 0.3s ease, background-color 0.3s ease;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar .navbar-brand:hover,
.navbar-nav .nav-link:hover {
  color: #007bff !important;
}

/* Active link styling */
.navbar-light .navbar-nav .nav-link.active {
  color: #007bff !important;
  border-bottom: 2px solid #007bff;
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.navbar .dropdown-menu .dropdown-item {
  color: #333333;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

/* Navbar toggler (for mobile view) */
.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hover underline effect on nav links */
.navbar-nav .nav-link::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #007bff;
  -webkit-transition: width 0.3s;
  transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Global Page Styles */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdfdfd;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
  color: #212529;
  font-weight: 500;
}

p {
  color: #495057;
  line-height: 1.6;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #0056b3;
}

/* Button Styles */

.btn {
  -webkit-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-weight: 500;
  border-width: 1px;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #bd2130;
  border-color: #bd2130;
}

/* Modal Animation */

.modal-content {
  -webkit-animation: modalFadeIn 0.5s ease-out;
          animation: modalFadeIn 0.5s ease-out;
  border-radius: 4px;
}

@-webkit-keyframes modalFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* Table Styles */

/* General Table Styling */
.table {
  width: 100%;
  margin-bottom: 1rem;
  background-color: #ffffff;
  border-collapse: collapse;
  border-radius: 4px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
  text-align: left;
  font-size: 0.9rem;
}

.table thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.table tbody tr:hover {
  background-color: #f1f3f5;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Remove unnecessary borders */
.table-bordered {
  border: none;
}

.table-bordered th,
.table-bordered td {
  border: none;
}

/* Modern hover effect */
.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
  }
}

/* Optional: Rounded corners */


/* Adjust header font and spacing */


/* Optional: First column bold */
.table tbody td:first-child {
  font-weight: 500;
}

/* Optional: Center align specific columns */
.table tbody td:nth-child(2),
.table tbody td:nth-child(3) {
  text-align: center;
}


/* Thinner Lines and Borders */

.navbar,
.table,
.modal-content,
.dropdown-menu {
  border-width: 1px;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
}

/* Adjusted Line Weights */

hr {
  border-top: 1px solid #e0e0e0;
}

/* Input Fields and Selects */

.form-control,
.form-select {
  border-width: 1px;
  border-color: #ced4da;
  border-radius: 4px;
}

.form-control:focus,
.form-select:focus {
  border-color: #80bdff;
  -webkit-box-shadow: none;
          box-shadow: none;
}

/* Adjustments for Buttons in Modals */

.modal-footer .btn {
  margin-left: 0.5rem;
}
