/* Custom CSS for MoPADA-SL Staff CUG Directory */

/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  background-color: #4e73df;
}

.sidebar .nav-link i {
  margin-right: 0.5rem;
}

/* Main Content Area */
main {
  padding-top: 56px; /* Height of navbar */
}

@media (min-width: 992px) {
  main {
    padding-top: 0;
  }
}

/* Card Styles */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.card-header {
  border-radius: 0.5rem 0.5rem 0 0 !important;
  font-weight: 600;
  background-color: #4e73df !important;
  color: white !important;
}

.card-footer {
  border-radius: 0 0 0.5rem 0.5rem !important;
}

/* Staff Card Styles */
.staff-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.staff-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid #f8f9fa;
}

.staff-photo-lg {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 5px solid #f8f9fa;
}

/* Border Left Utility Classes */
.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
  border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
  border-left: 0.25rem solid #e74a3b !important;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Table Styles */
.table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

/* Navbar Styles */
.navbar-brand {
  font-weight: 600;
}

/* Utility Classes */
.text-primary {
  color: #4e73df !important;
}

.text-success {
  color: #1cc88a !important;
}

.text-info {
  color: #36b9cc !important;
}

.text-warning {
  color: #f6c23e !important;
}

.text-danger {
  color: #e74a3b !important;
}

.bg-primary {
  background-color: #4e73df !important;
}

.bg-success {
  background-color: #1cc88a !important;
}

.bg-info {
  background-color: #36b9cc !important;
}

.bg-warning {
  background-color: #f6c23e !important;
}

.bg-danger {
  background-color: #e74a3b !important;
}

/* Login Page */
.login-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .staff-photo-lg {
    width: 120px;
    height: 120px;
  }
}

/* Add these styles to the end of the file to ensure the navbar layout works correctly */

/* Center navbar brand on larger screens */
@media (min-width: 992px) {
  .navbar .position-absolute {
    pointer-events: none; /* Allows clicking through the centered div */
    z-index: 1;
  }

  .navbar .navbar-brand {
    pointer-events: auto; /* Makes the brand clickable */
  }

  .navbar .navbar-nav.ms-auto {
    position: relative;
    z-index: 2; /* Ensures dropdown is clickable */
  }
}
