@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* Base Styles */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #F0F6FF;
  margin: 0;
  padding: 0;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #3887D3;
}

/* Top Navbar */
.navbar.fixed-top {
  height: 86.64px;
  z-index: 1050;
  left: 280px;
  width: calc(100% - 280px);
  background: linear-gradient(to right, #2A61A4 0%, #2E72B9 100%);
  color: #fff;
}

.navbar.fixed-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/OmniBSIC_Logo_Watermark.png');
  background-repeat: no-repeat;
  background-position: right -80px center;
  background-size: 520px auto;
  opacity: 0.09;
  z-index: -1;
}

/* Layout Wrapper */
.wrapper {
  display: flex;
  margin-top: 86.64px; /* Account for fixed navbar */
  min-height: calc(100vh - 86.64px);
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(to bottom, #264E8C 0%, #2E72B9 100%);
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1040;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px;
}

.sidebar-header h4 {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.sidebar-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .nav-section {
  margin-top: 25px;
  margin-bottom: 10px;
}

.sidebar-nav .nav-section-title {
  display: block;
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
}

.sidebar-nav .nav-item {
  margin: 2px 10px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
  background: rgba(255,255,255,0.1);
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.sidebar-nav .nav-link i {
  width: 20px;
  margin-right: 12px;
  text-align: center;
  font-size: 16px;
}

.sidebar-nav .nav-link span {
  flex: 1;
  font-weight: 500;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.user-avatar i {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.user-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.2;
}

/* Main Content */
.main-content {
  flex: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 280px;
}

.main-content.sidebar-active {
  margin-left: 280px;
}

.content-wrapper {
  padding: 30px;
}

/* Top Navbar Customization */
.navbar-brand {
  font-weight: 600;
  font-size: 1.2rem;
}

.navbar-dark .navbar-nav .dropdown-menu {
  background-color: #221E55;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.navbar-dark .dropdown-item {
  color: white;
  transition: all 0.2s ease;
}

.navbar-dark .dropdown-item:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

/* Card Improvements */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  background: linear-gradient(to right, #264E8C 0%, #2E72B9 100%);
  color: white;
}

.card code {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
}

.card-left {
  background: linear-gradient(to right, #264E8C 0%, #2E72B9 100%);
}

.card-right {
  background: linear-gradient(to right, #264E8C 0%, #2E72B9 100%);
}

/* Button Improvements */
.btn-primary {
  background: #0B66D0;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(56, 135, 211, 0.3);
}

.btn-custom {
  background: #0071CF;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: white;
  text-decoration: none;
  display: inline-block;
}

.btn-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 113, 207, 0.3);
  color: white;
  text-decoration: none;
}

/* Table Improvements */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table-dark {
  background: #221E55;
}

/* Badge Improvements */
.badge {
  border-radius: 20px;
  padding: 6px 12px;
  font-weight: 500;
}

/* Form Improvements */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #3887D3;
  box-shadow: 0 0 0 0.2rem rgba(56, 135, 211, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content.sidebar-active {
    margin-left: 0;
  }

  .footer.sidebar-active {
    margin-left: 0;
  }

  .content-wrapper {
    padding: 20px 15px;
    padding-bottom: 20px;
  }

  .sidebar {
    width: 100vw;
    left: -100vw;
  }

  .sidebar.active {
    left: 0;
  }

  .navbar.fixed-top {
    left: 0;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .content-wrapper {
    padding: 40px;
    padding-bottom: 40px;
  }
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar for Sidebar */
.sidebar-content::-webkit-scrollbar {
  width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

/* Poppins Font Utility Classes */
.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Action Buttons */
.action-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    font-weight: 500;
}

.action-btn i {
    font-size: 0.875rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.action-success {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.action-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
}

.action-warning {
    background-color: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.action-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.action-danger {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.action-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

.action-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.action-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    color: white;
}

.action-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.action-btn:disabled:hover {
    box-shadow: none;
}

/* Animated Toggle Switch */
.status-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.status-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.status-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc3545;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-toggle input:checked + .status-toggle-slider {
    background-color: #28a745;
}

.status-toggle input:checked + .status-toggle-slider:before {
    transform: translateX(26px);
}

.status-toggle-slider:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.status-toggle input:focus + .status-toggle-slider {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.status-toggle input:disabled + .status-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

