/* =========================
   GLOBAL
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f4f7fe;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  font-size: 14px;
  color: #374151;
}

/* =========================
   SIDEBAR
========================= */
#sidebar {
  transition: all 0.3s ease;
}
.sidebar {
  width: 70px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #076380;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sidebar .nav-link {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  transition: 0.3s ease;
  font-size: 16px;
}

.sidebar .nav-link:hover {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}
.sidebar .nav-link.active {
  background: #f7f7f7;
  color: rgb(0, 0, 0);
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
  margin-left: 70px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  height: 60px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 999;
}

.top-links {
  gap: 18px;
}

.top-links a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 13px;
  padding-bottom: 4px;
}
.top-links a:hover {
  text-decoration: none;
  color: #076380;
  font-weight: 500;
  font-size: 13px;
  padding-bottom: 4px;
  border-bottom: 2px solid #076380;
}

.top-links a.active {
  color: #076380;
  border-bottom: 2px solid #076380;
}

/* PROFILE DROPDOWN */

.profile-dropdown .dropdown-toggle::after {
  display: none;
}

.small-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.online-text {
  font-size: 11px;
  line-height: 1;
}

.profile-menu {
  width: 140px;
  border: none;
  border-radius: 10px;
  padding: 2px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

.profile-menu .dropdown-item {
  padding: 8px 12px;
  font-size: 12px;
  color: #000000;
  display: flex;
  align-items: center;
  transition: 0.3s ease;
}

.profile-menu .dropdown-item i {
  font-size: 12px;
}

.profile-menu .dropdown-item:hover {
  background: #f4f8ff;
  color: #076380;
}

.profile-menu .dropdown-divider {
  margin: 0px 0;
}

/* =========================
   AVATARS
========================= */

.avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

/* =========================
   DASHBOARD WRAPPER
========================= */

.dashboard-wrapper {
  min-height: calc(100vh - 65px);
}

/* =========================
   LEFT PANEL
========================= */

.left-panel {
  width: 270px;
  background: white;
  border-right: 1px solid #e5e7eb;
  height: calc(100vh - 65px);
  overflow-y: auto;
}

.left-panel {
    scrollbar-width:thin;   
}

.left-panel::-webkit-scrollbar {
    width: 6px;
}

.left-panel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.left-panel h5 {
  font-size: 16px;
}

.input-group-text {
  font-size: 13px;
}

.form-control {
  font-size: 13px;
  height: 40px;
  border-radius: 10px;
}

.form-control:focus {
  box-shadow: none;
  border-color: #076380;
}
/* COMPLETE INPUT GROUP BORDER HOVER */

.custom-search-icon {
  border: 1px solid #dbe3ee;
  height: 35px;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s ease;
  background: #fff;
}

/* HOVER EFFECT */

.custom-search-icon:hover {
  border-color: #076380;
}

/* INPUT */

.custom-search-icon .form-control {
  height: 35px;
  border: none !important;
  box-shadow: none !important;
  font-size: 13px;
}

/* ICON AREA */

.custom-search-icon .input-group-text {
  border: none !important;
  background: white;
  color: #6b7280;
}

/* ICON COLOR ON HOVER */

.custom-search-icon:hover .input-group-text i {
  color: #076380;
}

/* =========================
   USER CARD
========================= */

.user-card {
  background: white;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #d2d2d2;
  transition: 0.3s;
  margin-bottom: 12px;
}

.user-card:hover {
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #076380;
}

.user-card .fw-semibold {
  font-size: 14px;
}

.user-card small {
  font-size: 11px;
}

.badge {
  font-size: 11px;
  font-weight: 500;
}

/* =========================
   CONTENT AREA
========================= */

.content-area {
  overflow-y: auto;
  padding: 20px;
  background: rgb(245, 245, 245);
}

/* =========================
   PROFILE HEADER
========================= */

.profile-header {
  background: white;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-header h3 {
  font-size: 20px;
  margin-bottom: 2px;
}

.profile-header small {
  font-size: 12px;
}

.profile-tabs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.profile-tabs a {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  font-size: 13px;
  padding-bottom: 6px;
}

.profile-tabs a:hover {
  text-decoration: none;
  color: #076380;
  font-weight: 500;
  font-size: 13px;
  padding-bottom: 6px;
  border-bottom: 2px solid #076380;
}

.profile-tabs a.active {
  color: #076380;
  border-bottom: 2px solid #076380;
}

/* =========================
   FILTER BAR
========================= */

.search-input {
  max-width: 220px;
  height: 35px;
}

.filter-bar .btn {
  font-size: 13px;
  border-radius: 10px;
  height: 35px;
}

/* =========================
   TABLE CARD
========================= */

.table-card {
  background: white;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* =========================
   TABLE
========================= */

.table {
  margin-bottom: 0;
}

.table thead th {
  background: #f8fafc;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  border-bottom: none;
  padding: 14px;
  white-space: nowrap;
}

.table tbody td {
  padding: 11px;
  vertical-align: middle;
  font-size: 12px;
}

.table tbody tr:hover {
  background-color: #1c4c8a;
}

.table i {
  font-size: 12px !important;
}

/* =========================
   BUTTONS
========================= */

.btn {
  font-size: 13px;
  border-radius: 10px;
}

.btn-template {
  font-size: 13px;
  border-radius: 10px;
  background-color: #076380;
  color: white;
}
.btn-template:hover {
  background-color: #053c47;
  color: white;
}

/* =========================
   PAGINATION
========================= */

.pagination .page-link {
  border: none;
  margin: 0 3px;
  border-radius: 8px;
  color: #053c47;
  font-size: 12px;
  padding: 6px 12px;
}

.pagination .active .page-link {
  background: #053c47;
  color: white;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
  #sidebar {
    position: fixed;
    left: -100px;
    top: 0;
    height: 100vh;
    z-index: 2000;
    background: #fff;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
  }

  #sidebar.active {
    left: 0;
  }
  #sidebar.active ~ .main-content {
    margin-left: 65px;
  }

  .main-content {
    margin-left: 0px;
  }

  .sidebar .nav-link {
    width: 42px;
    height: 42px;
  }

  .content-area {
    width: 100%;
    padding: 15px;
  }

  .profile-header {
    padding: 18px;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 13px;
  }

  .topbar {
    padding: 10px !important;
    height: auto;
  }

  .profile-header {
    padding: 15px;
  }

  .table-card {
    padding: 10px;
  }

  .search-input {
    max-width: 100%;
  }

  .profile-header h3 {
    font-size: 18px;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .profile-avatar {
    width: 50px;
    height: 50px;
  }
}

.profile2-card{
    border:none;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,.06);
}

.profile2-card .card-header{
    padding:20px 25px;
    border-bottom:1px solid #eee;
}

.profile2-preview{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #fff;
    box-shadow:0 4px 15px rgba(0,0,0,.15);
}

.form-label{
    font-weight:600;
    color:#6c757d;
    margin-bottom:8px;
}

.view-mode{
    background:#ffffff;
    border:1px solid #e9ecef;
    padding:12px;
    border-radius:10px;
    min-height:48px;
}

.security-section{
    margin-top:30px;
    padding-top:25px;
    border-top:1px solid #eee;
}

.security-section h6{
    margin-bottom:15px;
    font-weight:700;
}
/* =========================
   LOGIN PAGE
========================= */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
}

.login-card .card-title {
  font-weight: 700;
}

#loginAlert {
  font-size: 13px;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

@media (max-width: 420px) {
  .login-card { padding: 10px; }
}
