/**
* Template Name: NiceAdmin - v2.5.0
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  /* Color primario estandar */
  --bs-primary: #4154f1;
  --bs-primary-rgb: 65, 84, 241;
  /* Header & Sidebar dark theme */
  --dark-bg: #0b1437;
  --dark-surface: #111c44;
  --accent-cyan: #00d4ff;
  --accent-purple: #7551ff;
  --text-secondary: #d8dce8;
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
}

body {
  font-family: "Open Sans", sans-serif;
  background: #f6f9ff;
  color: #444444;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #4154f1;
  text-decoration: none;
}

a:hover {
  color: #717ff5;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
  flex: 1;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #012970;
  position: relative;
  padding-left: 12px;
}

.pagetitle h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(180deg, #4154f1, var(--accent-cyan));
  border-radius: 2px;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-surface));
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--dark-surface), var(--dark-bg));
  color: #fff;
  box-shadow: var(--glow-cyan);
  border-color: var(--accent-cyan);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 10px;
  padding: 10px 0;
  -webkit-animation-name: dropdown-animate;
  animation-name: dropdown-animate;
  -webkit-animation-duration: 0.2s;
  animation-duration: 0.2s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@-webkit-keyframes dropdown-animate {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes dropdown-animate {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Light Backgrounds */
.bg-primary-light { background-color: #cfe2ff; border-color: #cfe2ff; }
.bg-secondary-light { background-color: #e2e3e5; border-color: #e2e3e5; }
.bg-success-light { background-color: #d1e7dd; border-color: #d1e7dd; }
.bg-danger-light { background-color: #f8d7da; border-color: #f8d7da; }
.bg-warning-light { background-color: #fff3cd; border-color: #fff3cd; }
.bg-info-light { background-color: #cff4fc; border-color: #cff4fc; }
.bg-dark-light { background-color: #d3d3d4; border-color: #d3d3d4; }

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 10px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.18);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: #012970;
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close { background-size: 25%; }
.btn-close:focus { outline: 0; box-shadow: none; }

/* Accordion */
.accordion-item { border: 1px solid #ebeef4; }
.accordion-button:focus { outline: 0; box-shadow: none; }
.accordion-button:not(.collapsed) { color: #012970; background-color: #f6f9ff; }
.accordion-flush .accordion-button { padding: 15px 0; background: none; border: 0; }
.accordion-flush .accordion-button:not(.collapsed) { box-shadow: none; color: #4154f1; }
.accordion-flush .accordion-body { padding: 0 0 15px 0; color: #3e4f6f; font-size: 15px; }

/* Breadcrumbs */
.breadcrumb { font-size: 14px; font-family: "Nunito", sans-serif; color: #899bbd; font-weight: 600; }
.breadcrumb a { color: #899bbd; transition: 0.3s; }
.breadcrumb a:hover { color: #4154f1; }
.breadcrumb .breadcrumb-item::before { color: #899bbd; }
.breadcrumb .active { color: #4154f1; font-weight: 600; }

/* Bordered Tabs */
.nav-tabs-bordered { border-bottom: 2px solid #ebeef4; }
.nav-tabs-bordered .nav-link { margin-bottom: -2px; border: none; color: #2c384e; }
.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus { color: #4154f1; }
.nav-tabs-bordered .nav-link.active { background-color: #fff; color: #4154f1; border-bottom: 2px solid #4154f1; }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1200px) {
  .logo { width: 180px; }
}

.logo img {
  max-height: 40px;
  margin-right: 6px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  object-fit: contain;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  padding-left: 20px;
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: white;
  transition: color 0.3s, text-shadow 0.3s;
}

.header .toggle-sidebar-btn:hover {
  color: #fff;
  text-shadow: var(--glow-cyan);
}

/* Header center: welcome + datetime */
.header-center {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
}

.hc-welcome { color: var(--text-secondary); font-size: 14px; }
.hc-welcome strong { color: #fff; }
.hc-sep { color: rgba(0, 212, 255, 0.3); margin: 0 8px; }
.hc-date { color: var(--text-secondary); font-size: 12px; }
.hc-date i { color: var(--accent-cyan); font-size: 11px; }

@media (max-width: 767px) {
  .header-center { display: none; }
}

.header .search-bar { min-width: 360px; padding: 0 20px; }

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed; top: 50px; left: 0; right: 0; padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white; z-index: 9999; transition: 0.3s; visibility: hidden; opacity: 0;
  }
  .header .search-bar-show { top: 60px; visibility: visible; opacity: 1; }
}

.header .search-form { width: 100%; }

.header .search-form input {
  border: 0; font-size: 14px; color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 7px 38px 7px 8px; border-radius: 8px; transition: 0.3s; width: 100%;
}

.header .search-form input::placeholder { color: var(--text-secondary); }

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.header .search-form button { border: 0; padding: 0; margin-left: -30px; background: none; }
.header .search-form button i { color: var(--accent-cyan); }

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul { list-style: none; }
.header-nav>ul { margin: 0; padding: 0; }

.header-nav .nav-icon {
  font-size: 22px; color: var(--text-secondary); margin-right: 25px;
  position: relative; transition: color 0.3s, text-shadow 0.3s;
}
.header-nav .nav-icon:hover { color: var(--accent-cyan); text-shadow: var(--glow-cyan); }

.header-nav .nav-profile { color: #fff; }
.header-nav .nav-profile img { max-height: 36px; }
.header-nav .nav-profile span { font-size: 14px; font-weight: 600; }

.header-nav .badge-number {
  position: absolute; inset: -2px -5px auto auto;
  font-weight: normal; font-size: 12px; padding: 3px 6px;
}

.header-nav .notifications { inset: 8px -15px auto auto !important; }
.header-nav .notifications .notification-item { display: flex; align-items: center; padding: 15px 10px; transition: 0.3s; }
.header-nav .notifications .notification-item i { margin: 0 20px 0 10px; font-size: 24px; }
.header-nav .notifications .notification-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.header-nav .notifications .notification-item p { font-size: 13px; margin-bottom: 3px; color: #919191; }
.header-nav .notifications .notification-item:hover { background-color: #f6f9ff; }

.header-nav .messages { inset: 8px -15px auto auto !important; }
.header-nav .messages .message-item { padding: 15px 10px; transition: 0.3s; }
.header-nav .messages .message-item a { display: flex; }
.header-nav .messages .message-item img { margin: 0 20px 0 10px; max-height: 40px; }
.header-nav .messages .message-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 5px; color: #444444; }
.header-nav .messages .message-item p { font-size: 13px; margin-bottom: 3px; color: #919191; }
.header-nav .messages .message-item:hover { background-color: #f6f9ff; }

.header-nav .profile { min-width: 240px; padding-bottom: 0; top: 8px !important; }
.header-nav .profile .dropdown-header h6 { font-size: 18px; margin-bottom: 0; font-weight: 600; color: #444444; }
.header-nav .profile .dropdown-header span { font-size: 14px; }
.header-nav .profile .dropdown-item { font-size: 14px; padding: 10px 15px; transition: 0.3s; }
.header-nav .profile .dropdown-item i { margin-right: 10px; font-size: 18px; line-height: 0; }
.header-nav .profile .dropdown-item:hover { background-color: #f6f9ff; }

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 230px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0d1840 100%);
  border-right: 1px solid rgba(0, 212, 255, 0.1);
}

@media (max-width: 1199px) {
  .sidebar { left: -230px; }
}

.sidebar::-webkit-scrollbar { width: 5px; height: 8px; background-color: transparent; }
.sidebar::-webkit-scrollbar-thumb { background-color: rgba(0, 212, 255, 0.3); border-radius: 3px; }

@media (min-width: 1200px) {
  #main, #footer { margin-left: 230px; }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar { left: 0; }
}

@media (min-width: 1200px) {
  .toggle-sidebar #main, .toggle-sidebar #footer { margin-left: 0; }
  .toggle-sidebar .sidebar { left: -300px; }
}

.sidebar-nav { padding: 0; margin: 0; list-style: none; }
.sidebar-nav li { padding: 0; margin: 0; list-style: none; }
.sidebar-nav .nav-item { margin-bottom: 5px; }

.sidebar-nav .nav-heading {
  font-size: 11px; text-transform: uppercase;
  color: rgba(0, 212, 255, 0.5); font-weight: 600;
  margin: 10px 0 5px 15px; letter-spacing: 1px;
}

.sidebar-nav .nav-link {
  display: flex; align-items: center; font-size: 15px; font-weight: 600;
  color: #fff; transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(117, 81, 255, 0.1));
  padding: 10px 15px; border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.sidebar-nav .nav-link i { font-size: 16px; margin-right: 10px; color: var(--accent-cyan); }

.sidebar-nav .nav-link.collapsed {
  color: var(--text-secondary); background: transparent; border: 1px solid transparent;
}
.sidebar-nav .nav-link.collapsed i { color: var(--text-secondary); }

.sidebar-nav .nav-link:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(117, 81, 255, 0.08));
  border: 1px solid rgba(0, 212, 255, 0.15);
  transform: translateX(3px);
}
.sidebar-nav .nav-link:hover i { color: var(--accent-cyan); text-shadow: var(--glow-cyan); }

.sidebar-nav .nav-link .bi-chevron-down { margin-right: 0; transition: transform 0.2s ease-in-out; }
.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down { transform: rotate(180deg); }

.sidebar-nav .nav-content { padding: 5px 0 0 0; margin: 0; list-style: none; }

.sidebar-nav .nav-content a {
  display: flex; align-items: center; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); padding: 10px 0 10px 40px; transition: all 0.3s;
}
.sidebar-nav .nav-content a i { font-size: 6px; margin-right: 8px; line-height: 0; border-radius: 50%; }
.sidebar-nav .nav-content a:hover, .sidebar-nav .nav-content a.active { color: var(--accent-cyan); }
.sidebar-nav .nav-content a.active i { background-color: var(--accent-cyan); }

/* Sidebar dropdown menus - dark theme */
.sidebar .dropdown-menu {
  background: var(--dark-surface);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.sidebar .dropdown-menu .dropdown-item { color: var(--text-secondary); transition: all 0.3s; }
.sidebar .dropdown-menu .dropdown-item:hover { background-color: rgba(0, 212, 255, 0.08); color: #fff; }
.sidebar .dropdown-menu .dropdown-item i { color: var(--text-secondary); }
.sidebar .dropdown-menu .dropdown-item:hover i { color: var(--accent-cyan); }
.sidebar .dropdown-item.active { background-color: rgba(0, 212, 255, 0.12); color: var(--accent-cyan); font-weight: 600; }
.sidebar .dropdown-item.active i { color: var(--accent-cyan); }

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
.dashboard .filter { position: absolute; right: 0px; top: 15px; }
.dashboard .filter .icon { color: #aab7cf; padding-right: 20px; padding-bottom: 5px; transition: 0.3s; font-size: 16px; }
.dashboard .filter .icon:hover, .dashboard .filter .icon:focus { color: #4154f1; }
.dashboard .filter .dropdown-header { padding: 8px 15px; }
.dashboard .filter .dropdown-header h6 { text-transform: uppercase; font-size: 14px; font-weight: 600; letter-spacing: 1px; color: #aab7cf; margin-bottom: 0; padding: 0; }
.dashboard .filter .dropdown-item { padding: 8px 15px; }

.dashboard .info-card { padding-bottom: 10px; }
.dashboard .info-card h6 { font-size: 28px; color: #012970; font-weight: 700; margin: 0; padding: 0; }
.dashboard .card-icon { font-size: 32px; line-height: 0; width: 64px; height: 64px; flex-shrink: 0; flex-grow: 0; }
.dashboard .sales-card .card-icon { color: #4154f1; background: #f6f6fe; }
.dashboard .revenue-card .card-icon { color: #2eca6a; background: #e0f8e9; }
.dashboard .customers-card .card-icon { color: #ff771d; background: #ffecdf; }

.dashboard .activity { font-size: 14px; }
.dashboard .activity .activity-item .activite-label { color: #888; position: relative; flex-shrink: 0; flex-grow: 0; min-width: 64px; }
.dashboard .activity .activity-item .activite-label::before { content: ""; position: absolute; right: -11px; width: 4px; top: 0; bottom: 0; background-color: #eceefe; }
.dashboard .activity .activity-item .activity-badge { margin-top: 3px; z-index: 1; font-size: 11px; line-height: 0; border-radius: 50%; flex-shrink: 0; border: 3px solid #fff; flex-grow: 0; }
.dashboard .activity .activity-item .activity-content { padding-left: 10px; padding-bottom: 20px; }
.dashboard .activity .activity-item:first-child .activite-label::before { top: 5px; }
.dashboard .activity .activity-item:last-child .activity-content { padding-bottom: 0; }

.dashboard .news .post-item+.post-item { margin-top: 15px; }
.dashboard .news img { width: 80px; float: left; border-radius: 5px; }
.dashboard .news h4 { font-size: 15px; margin-left: 95px; font-weight: bold; margin-bottom: 5px; }
.dashboard .news h4 a { color: #012970; transition: 0.3s; }
.dashboard .news h4 a:hover { color: #4154f1; }
.dashboard .news p { font-size: 14px; color: #777777; margin-left: 95px; }

.dashboard .recent-sales { font-size: 14px; }
.dashboard .recent-sales .table thead { background: #f6f6fe; }
.dashboard .recent-sales .table thead th { border: 0; }
.dashboard .recent-sales .dataTable-top { padding: 0 0 10px 0; }
.dashboard .recent-sales .dataTable-bottom { padding: 10px 0 0 0; }

.dashboard .top-selling { font-size: 14px; }
.dashboard .top-selling .table thead { background: #f6f6fe; }
.dashboard .top-selling .table thead th { border: 0; }
.dashboard .top-selling .table tbody td { vertical-align: middle; }
.dashboard .top-selling img { border-radius: 5px; max-width: 60px; }

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist { display: grid; max-width: 100%; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; padding-top: 15px; }
.iconslist .icon { background-color: #fff; border-radius: 0.25rem; text-align: center; color: #012970; padding: 15px 0; }
.iconslist i { margin: 0.25rem; font-size: 2.5rem; }
.iconslist .label { font-family: var(--bs-font-monospace); display: inline-block; width: 100%; overflow: hidden; padding: 0.25rem; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; color: #666; }

/*--------------------------------------------------------------
# Profile Page
--------------------------------------------------------------*/
.profile .profile-card img { max-width: 120px; }
.profile .profile-card h2 { font-size: 24px; font-weight: 700; color: #2c384e; margin: 10px 0 0 0; }
.profile .profile-card h3 { font-size: 18px; }
.profile .profile-card .social-links a { font-size: 20px; display: inline-block; color: rgba(1, 41, 112, 0.5); line-height: 0; margin-right: 10px; transition: 0.3s; }
.profile .profile-card .social-links a:hover { color: #012970; }
.profile .profile-overview .row { margin-bottom: 20px; font-size: 15px; }
.profile .profile-overview .card-title { color: #012970; }
.profile .profile-overview .label { font-weight: 600; color: rgba(1, 41, 112, 0.6); }
.profile .profile-edit label { font-weight: 600; color: rgba(1, 41, 112, 0.6); }
.profile .profile-edit img { max-width: 120px; }

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 { font-size: 18px; font-weight: 600; color: #4154f1; }
.faq .basic p { color: #6980aa; }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box { padding: 28px 30px; }
.contact .info-box i { font-size: 38px; line-height: 0; color: #4154f1; }
.contact .info-box h3 { font-size: 20px; color: #012970; font-weight: 700; margin: 20px 0 10px 0; }
.contact .info-box p { padding: 0; line-height: 24px; font-size: 14px; margin-bottom: 0; }
.contact .php-email-form .error-message { display: none; color: #fff; background: #ed3c0d; text-align: left; padding: 15px; margin-bottom: 24px; font-weight: 600; }
.contact .php-email-form .sent-message { display: none; color: #fff; background: #18d26e; text-align: center; padding: 15px; margin-bottom: 24px; font-weight: 600; }
.contact .php-email-form .loading { display: none; background: #fff; text-align: center; padding: 15px; margin-bottom: 24px; }
.contact .php-email-form .loading:before { content: ""; display: inline-block; border-radius: 50%; width: 24px; height: 24px; margin: 0 10px -6px 0; border: 3px solid #18d26e; border-top-color: #eee; animation: animate-loading 1s linear infinite; }
.contact .php-email-form input, .contact .php-email-form textarea { border-radius: 0; box-shadow: none; font-size: 14px; }
.contact .php-email-form input:focus, .contact .php-email-form textarea:focus { border-color: #4154f1; }
.contact .php-email-form input { padding: 10px 15px; }
.contact .php-email-form textarea { padding: 12px 15px; }
.contact .php-email-form button[type=submit] { background: #4154f1; border: 0; padding: 10px 30px; color: #fff; transition: 0.4s; border-radius: 4px; }
.contact .php-email-form button[type=submit]:hover { background: #5969f3; }

@keyframes animate-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 { padding: 30px; }
.error-404 h1 { font-size: 180px; font-weight: 700; color: #4154f1; margin-bottom: 0; line-height: 150px; }
.error-404 h2 { font-size: 24px; font-weight: 700; color: #012970; margin-bottom: 30px; }
.error-404 .btn { background: #51678f; color: #fff; padding: 8px 30px; }
.error-404 .btn:hover { background: #3e4f6f; }
@media (min-width: 992px) { .error-404 img { max-width: 50%; } }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 14px 0; font-size: 14px; transition: all 0.3s;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--text-secondary);
}
.footer .container-fluid { padding: 0 24px; }
.footer .footer-brand { font-weight: 600; color: #fff; font-size: 13px; }
.footer .footer-dev { font-size: 12px; color: var(--text-secondary); }
.footer .footer-dev a { color: var(--accent-cyan); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color 0.3s; }
.footer .footer-dev a:hover { color: #fff; text-shadow: var(--glow-cyan); }
.footer .footer-kondory-logo { height: 18px; filter: brightness(0) invert(1); margin: 0 2px; }
.footer .footer-wa {
  display: inline-flex; align-items: center; gap: 5px;
  color: #25d366; font-size: 12px; font-weight: 600; text-decoration: none;
  transition: all 0.3s;
}
.footer .footer-wa:hover { color: #fff; text-shadow: 0 0 10px rgba(37, 211, 102, 0.5); }
.footer .footer-wa i { font-size: 16px; }
.footer .copyright { text-align: center; color: #fff; }
.footer .credits { padding-top: 5px; text-align: center; font-size: 13px; color: var(--text-secondary); }

/*--------------------------------------------------------------
# Custom Form Validation
--------------------------------------------------------------*/
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: #ced4da !important; background-image: none !important; }
.was-validated .form-control:valid:focus, .was-validated .form-select:valid:focus { border-color: #86b7fe !important; box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important; }
.was-validated .form-control:invalid, .was-validated .form-select:invalid { border-color: #dc3545 !important; }
.was-validated .form-control:invalid:focus, .was-validated .form-select:invalid:focus { border-color: #dc3545 !important; box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important; }

/*--------------------------------------------------------------
# Login Page - Gradient Custom
--------------------------------------------------------------*/
.gradient-custom {
  background: linear-gradient(135deg, #4154f1 0%, #2c3e9e 100%);
  color: #ffffff; padding: 1rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
@supports not (text-wrap: balance) {
  .gradient-custom p, .gradient-custom .footer-text { max-width: 65ch; margin-left: auto; margin-right: auto; }
}
.gradient-custom h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; margin-bottom: clamp(1rem, 3vw, 1.5rem); text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); text-align: center; }
.gradient-custom h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; margin-bottom: clamp(1rem, 3vw, 1.5rem); text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); }
.gradient-custom p { font-size: clamp(0.9rem, 2vw, 1.2rem); line-height: 1.6; margin-bottom: clamp(0.75rem, 2vw, 1rem); text-align: justify; text-wrap: balance; text-wrap: pretty; hyphens: auto; }
.gradient-custom .footer-text { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 600; margin-top: clamp(1rem, 3vw, 1.5rem); text-align: center; text-wrap: balance; }
@media (min-width: 768px) { .gradient-form { height: 100vh !important; } }
@media (min-width: 769px) { .gradient-custom { border-top-right-radius: 0.3rem; border-bottom-right-radius: 0.3rem; } }

/*--------------------------------------------------------------
# Estilos mejorados - Estandar
--------------------------------------------------------------*/
.text-primary { color: #4154f1 !important; }
.bg-primary { background-color: #4154f1 !important; }
.border-primary { border-color: #4154f1 !important; }

/* Form controls mejorados */
.form-control:focus, .form-select:focus { border-color: #4154f1; box-shadow: 0 0 0 3px rgba(65, 84, 241, 0.12); }
.form-control::placeholder { color: #adb5bd; }

/* Botones mejorados */
.btn { border-radius: 8px; font-weight: 500; transition: all 0.3s ease; font-size: 14px; }
.btn-primary { background: #4154f1; border-color: #4154f1; }
.btn-primary:hover { background: #3645d9; border-color: #3645d9; box-shadow: 0 4px 12px rgba(65, 84, 241, 0.35); transform: translateY(-1px); }
.btn-success:hover { box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35); transform: translateY(-1px); }
.btn-danger:hover { box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35); transform: translateY(-1px); }
.btn-warning:hover { box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35); transform: translateY(-1px); }
.btn-info { background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%); border-color: var(--dark-surface); color: #fff; }
.btn-info:hover { background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%); border-color: var(--dark-bg); color: #fff; box-shadow: 0 4px 12px rgba(11, 20, 55, 0.4); transform: translateY(-1px); }

/* Tablas mejoradas */
.table { border-radius: 8px; overflow: hidden; }
.table thead th { background: #f0f2f8; color: #012970; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 2px solid #dce0e8; padding: 10px 14px; }
.table tbody tr { transition: background-color 0.2s ease; }
.table tbody tr:hover { background-color: #f0f4ff; }
.table tbody td { padding: 10px 14px; vertical-align: middle; font-size: 14px; color: #444; }

/* Badges mejorados */
.badge { border-radius: 6px; font-weight: 500; padding: 5px 10px; font-size: 11px; letter-spacing: 0.3px; }

/* Focus visible global (accesibilidad) */
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .nav-link:focus-visible {
  outline: 2px solid #4154f1; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(65, 84, 241, 0.15);
}

/* Scrollbar global */
* { scrollbar-width: thin; scrollbar-color: #c1c9d6 transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #c1c9d6; border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: #a0a8b5; }

/* Modales mejorados */
.modal-dialog { display: flex; align-items: flex-start; min-height: calc(100% - 1rem); padding-top: 8vh; }
.modal-content { border-radius: 12px; border: none; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15); }
.modal-header { background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%); border-bottom: none; padding: 16px 20px; border-radius: 12px 12px 0 0; }
.modal-header .modal-title { font-weight: 600; color: #fff; }
.modal-header .btn-close { filter: invert(1); opacity: 0.8; }
.modal-header .btn-close:hover { opacity: 1; }
.modal-footer { border-top: 1px solid #ebeef4; padding: 12px 20px; }

/* Pagination mejorada */
.page-link { border-radius: 8px !important; margin: 0 2px; border: 1px solid #dce0e8; color: #4154f1; font-size: 13px; transition: all 0.2s ease; }
.page-link:hover { background: #4154f1; border-color: #4154f1; color: #fff; }
.page-item.active .page-link { background: #4154f1; border-color: #4154f1; }

/* Seleccion de texto */
::selection { background: rgba(65, 84, 241, 0.15); color: #012970; }

/* Links dentro de cards */
.card a:not(.btn) { transition: color 0.2s ease; }

/* Smooth scroll y animacion de entrada */
html { scroll-behavior: smooth; }
#main .section { animation: fadeInUp 0.3s ease-out; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------
   Employee / Admin Cards
-------------------------------------------------------------- */
.employee-card {
  background: #fff; border-radius: 14px; padding: 24px 20px 18px;
  text-align: center; position: relative; border: 1px solid #e8ecf3;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
  height: 100%; display: flex; flex-direction: column; align-items: center;
}
.employee-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(65, 84, 241, 0.12); }
.employee-card.inactive { opacity: 0.7; }

.employee-card-status { position: absolute; top: 12px; right: 14px; display: flex; align-items: center; gap: 5px; }
.employee-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.employee-status-dot.active { background: #2eca6a; box-shadow: 0 0 6px rgba(46, 202, 106, 0.5); }
.employee-status-dot.inactive { background: #e74a3b; }
.employee-status-text { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #8a92a6; }

.employee-card-avatar { margin-bottom: 14px; }
.employee-avatar-circle {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #0b1437, #4154f1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; box-shadow: 0 4px 14px rgba(11, 20, 55, 0.35);
}
.employee-avatar-circle.admin-avatar { background: linear-gradient(135deg, #0b1437, #4154f1); box-shadow: 0 4px 14px rgba(11, 20, 55, 0.35); }
.employee-avatar-circle span { color: #fff; font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; }

.employee-card-name { font-size: 0.95rem; font-weight: 700; color: #1a1a2e; margin-bottom: 2px; line-height: 1.3; }
.employee-card-role { font-size: 0.78rem; color: var(--accent-purple); font-weight: 600; margin-bottom: 14px; }

.employee-card-details { width: 100%; margin-bottom: 16px; flex: 1; }
.employee-detail-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 0.78rem; color: #555; border-radius: 6px; transition: background 0.2s; text-align: left; }
.employee-detail-item:hover { background: #f0f4ff; }
.employee-detail-item i { color: #4154f1; font-size: 0.85rem; min-width: 16px; }
.employee-detail-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.employee-card-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 9px 16px; background: #f0f4ff; color: #4154f1; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1); border: 1px solid transparent;
}
.employee-card-btn:hover { background: #4154f1; color: #fff; border-color: #4154f1; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(65, 84, 241, 0.3); }

#searchEmployees:focus, #searchAdmins:focus { box-shadow: none; border-color: #4154f1; }
.input-group:focus-within .input-group-text { border-color: #4154f1; }

@media (max-width: 575.98px) {
  .employee-card-col { max-width: 100%; }
  .employee-card { padding: 20px 16px 14px; }
  .employee-avatar-circle { width: 56px; height: 56px; }
  .employee-avatar-circle span { font-size: 1.1rem; }
}

/*--------------------------------------------------------------
# Login Page (mp-logistic)
--------------------------------------------------------------*/
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/login-bg.webp') no-repeat center center;
  background-size: cover;
  font-family: 'Nunito', sans-serif;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 35, 68, 0.85) 0%, rgba(20, 60, 120, 0.7) 100%);
  z-index: 1;
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 1rem;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo img {
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0c2344;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.login-form .login-field {
  margin-bottom: 1rem;
}

.login-form .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #344767;
  margin-bottom: 0.35rem;
}

.login-form .input-group-text {
  background: #f0f4ff;
  border-color: #d1d9e6;
  color: #4154f1;
}

.login-form .form-control {
  border-color: #d1d9e6;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

.login-form .form-control:focus {
  border-color: #4154f1;
  box-shadow: 0 0 0 0.2rem rgba(65, 84, 241, 0.15);
}

.login-form .form-control::placeholder {
  color: #adb5bd;
  font-size: 0.85rem;
}

.login-btn {
  width: 100%;
  padding: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(135deg, #4154f1, #2c3e9e);
  border: none;
  margin-top: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(65, 84, 241, 0.4);
  background: linear-gradient(135deg, #3648d9, #243490);
}

.login-recovery {
  font-size: 0.85rem;
  color: #4154f1;
  text-decoration: none;
}

.login-recovery:hover {
  text-decoration: underline;
  color: #2c3e9e;
}

.login-credits {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
  font-size: 0.75rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.login-credits img {
  max-height: 18px;
}

.login-credits a {
  color: #4154f1;
  text-decoration: none;
}

.login-credits a:hover {
  text-decoration: underline;
}

/* Credits en login */
.credits {
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #012970;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.credits a {
  color: #4154f1;
}
