html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ========================================
   SMARTBUY ADMIN - ESTILOS PERSONALIZADOS
   ======================================== */

/* Estilos para el sidebar */
.sidebar {
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #005F8B 0%, #004a6d 100%);
    position: sticky;
    top: 56px;
    padding: 0;
    margin: 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    margin: 0;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: white;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #FE8100;
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
}

.sidebar-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    color: white;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Navbar personalizada */
.navbar-custom {
    background: linear-gradient(90deg, #005F8B 0%, #004a6d 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white !important;
}

.navbar-custom .btn-outline-light:hover {
    background-color: white;
    color: #005F8B;
}

/* Encabezados de tablas */
.table thead.table-light,
thead.table-light,
.table-light {
    background-color: #FE8100 !important;
}

.table thead.table-light th,
thead.table-light th,
.table-light th {
    background-color: #FE8100 !important;
    color: white !important;
    border-color: #e67300 !important;
}

/* Card headers */
.card-header.bg-primary {
    background: linear-gradient(90deg, #005F8B 0%, #004a6d 100%) !important;
    border-color: #005F8B !important;
}

/* Botones primarios */
.btn-primary {
    background-color: #005F8B;
    border-color: #005F8B;
}

.btn-primary:hover {
    background-color: #004a6d;
    border-color: #004a6d;
}

.btn-outline-primary {
    color: #005F8B;
    border-color: #005F8B;
}

.btn-outline-primary:hover {
    background-color: #005F8B;
    border-color: #005F8B;
}

/* Quitar márgenes del offcanvas */
.offcanvas {
    padding: 0 !important;
}

.offcanvas-body {
    padding: 0 !important;
    margin: 0 !important;
}

/* Main content */
.main-content {
    padding: 2rem;
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    background-color: white;
    padding: 1rem 0;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}