/*
 * Nodesys Admin — Pages CSS
 * Estilos específicos por página/componente, extraídos de los bloques <style> inline.
 * Cargado en todas las páginas del admin vía <link> en el <head>.
 */

/* =====================================================================
   SHARED COMPONENTS — usados en múltiples páginas
   ===================================================================== */

.card-header-custom {
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid #edf2f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-custom {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 5px 0;
}

.card-body-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #013e69;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.section-wrapper {
    padding: 25px;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 4px;
    margin-bottom: 25px;
}

pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e1e5eb;
    margin-top: 15px;
    color: #e83e8c;
    overflow-x: auto;
}

.tx-danger   { color: #dc3545; }
.tx-uppercase { text-transform: uppercase; }
.tx-11       { font-size: 11px; }
.tx-spacing-2 { letter-spacing: 2px; }
.tx-primary  { color: #013e69; }
.tx-info     { color: #14A0C1; }
.tx-inverse  { color: #343a40; }
.tx-pink     { color: #e83e8c; }

/* Utility: blur content (e.g., charts placeholders) */
.kt-blur-content {
    filter: blur(6px);
    opacity: 0.75;
}

.mg-b-20 { margin-bottom: 20px; }
.mg-b-30 { margin-bottom: 30px; }
.bg-gray-100 { background-color: #f4f5f7; }
.bd { border: 1px solid #dee2e6; }
.ht-md-80 { min-height: 80px; }
.wd-md-300 { max-width: 300px; }

/* =====================================================================
   ACCORDION
   ===================================================================== */

.accordion-button:not(.collapsed) {
    background-color: rgba(1, 62, 105, 0.05);
    color: #013e69;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(1, 62, 105, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(1, 62, 105, 0.1);
}

.accordion-colored .accordion-item {
    border-color: #013e69;
    margin-bottom: 0.5rem;
    border-radius: 4px !important;
}

.accordion-colored .accordion-button {
    background-color: #013e69;
    color: #fff;
}

.accordion-colored .accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-colored .accordion-button:not(.collapsed) {
    background-color: #074d7e;
}

/* =====================================================================
   ALERTS
   ===================================================================== */

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-bordered {
    border: 1px solid !important;
}

/* =====================================================================
   BAR PROGRESS
   ===================================================================== */

.progress {
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-xs { height: 3px; }
.progress-sm { height: 8px; }
.progress-md { height: 16px; }
.progress-lg { height: 24px; }
.progress-xl { height: 32px; }

.progress-rounded { border-radius: 50px; }
.progress-rounded .progress-bar { border-radius: 50px; }

.progress-neon { background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1); }
.progress-neon .progress-bar { box-shadow: 0 0 10px currentColor, 0 0 20px currentColor; }

.bg-gradient-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-gradient-success { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.bg-gradient-info    { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-warning { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.bg-gradient-danger  { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-gradient-dark    { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }

.stat-card { border-left: 4px solid #013e69; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; }

.skill-bar-container { margin-bottom: 25px; }
.skill-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; color: #2c3e50; }

.circular-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#013e69 0deg, #e9ecef 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.circular-progress::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
}
.circular-progress-text {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 700;
    color: #013e69;
}

.timeline-progress { position: relative; padding-left: 30px; }
.timeline-progress::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}
.timeline-dot {
    position: absolute;
    left: -24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #013e69;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #013e69;
}
.timeline-dot.completed { background: #28a745; box-shadow: 0 0 0 2px #28a745; }
.timeline-dot.in-progress { background: #ffc107; box-shadow: 0 0 0 2px #ffc107; animation: pulse 2s infinite; }

@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
.progress-shimmer {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.2); opacity: 0.8; }
}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.btn-demo-container .btn { margin-bottom: 5px; }
.btn-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

/* =====================================================================
   CALENDAR
   ===================================================================== */

.calendar-container {
    display: flex;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: calc(100vh - 220px);
    overflow: hidden;
}
.calendar-sidebar { width: 260px; border-right: 1px solid #e1e5eb; padding: 20px; background: #fcfcfc; }
.calendar-main { flex: 1; display: flex; flex-direction: column; }
.calendar-header { padding: 15px 20px; border-bottom: 1px solid #e1e5eb; display: flex; align-items: center; justify-content: space-between; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); flex: 1; }
.calendar-day-head { background: #f8f9fa; padding: 10px; text-align: center; font-weight: 700; font-size: 12px; text-transform: uppercase; color: #6b727a; border-bottom: 1px solid #e1e5eb; border-right: 1px solid #e1e5eb; }
.calendar-cell { min-height: 100px; padding: 10px; border-right: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5; transition: background 0.2s; cursor: pointer; }
.calendar-cell:hover { background-color: #fcfdfe; }
.calendar-cell.today { background-color: #fff9e6; }
.calendar-cell.other-month { background-color: #fafafa; color: #ccc; }
.day-number { font-size: 14px; font-weight: 500; margin-bottom: 8px; display: block; }
.event { font-size: 11px; padding: 2px 6px; border-radius: 3px; margin-bottom: 3px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-blue   { background-color: var(--primary-color); }
.event-green  { background-color: #28a745; }
.event-orange { background-color: #fd7e14; }
.btn-create-event { width: 100%; margin-bottom: 25px; font-weight: 500; text-transform: uppercase; font-size: 12px; }

/* =====================================================================
   CHARTS (Rickshaw / Sparkline)
   ===================================================================== */

.rickshaw_graph { position: relative; width: 100%; }
.jqstooltip { box-sizing: content-box; }

/* =====================================================================
   CHAT
   ===================================================================== */

.chat-wrapper {
    display: flex;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: calc(100vh - 200px);
    overflow: hidden;
}
.chat-left { width: 300px; border-right: 1px solid #e1e5eb; display: flex; flex-direction: column; }
.chat-main { flex: 1; display: flex; flex-direction: column; background-color: #fcfdfe; }
.chat-right { width: 250px; border-left: 1px solid #e1e5eb; background: #f8f9fa; display: none; }
@media (min-width: 1200px) { .chat-right { display: flex; flex-direction: column; } }

.chat-search { padding: 15px; border-bottom: 1px solid #f0f2f5; }
.contact-list { overflow-y: auto; flex: 1; }
.contact-item { display: flex; padding: 12px 15px; align-items: center; cursor: pointer; transition: 0.2s; border-bottom: 1px solid #f8f9fa; }
.contact-item:hover { background-color: #f0f2f5; }
.contact-item.active { background-color: #eef3f7; border-left: 3px solid var(--primary-color); }
.avatar-container { position: relative; margin-right: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.status-dot { position: absolute; bottom: 2px; right: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.status-online { background-color: #28a745; }
.chat-header { padding: 12px 20px; background: #fff; border-bottom: 1px solid #e1e5eb; display: flex; align-items: center; justify-content: space-between; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.msg { max-width: 75%; padding: 10px 15px; border-radius: 18px; font-size: 13.5px; position: relative; }
.msg-received { background: #fff; border: 1px solid #e1e5eb; align-self: flex-start; border-bottom-left-radius: 2px; }
.msg-sent { background: var(--primary-color); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.msg-time { font-size: 10px; opacity: 0.7; display: block; margin-top: 5px; text-align: right; }
.chat-footer { padding: 15px 20px; background: #fff; border-top: 1px solid #e1e5eb; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */

.chart-container-line { position: relative; height: 300px; width: 100%; }
.chart-container-pie  { position: relative; height: 250px; width: 100%; margin: 0 auto; }
canvas { max-height: 100% !important; }

.card:hover { transform: translateY(-2px); transition: all 0.3s ease; }
.badge { font-size: 1em; }

@media print {
    .btn, #sidebar, .topbar, .info-bar, .breadcrumb { display: none !important; }
    #content { padding-left: 0 !important; margin: 0 !important; }
    .page-body { padding: 20px !important; }
    .card { break-inside: avoid; margin-bottom: 20px; }
}
@media (max-width: 768px) {
    .chart-container-line { height: 250px; }
    .chart-container-pie  { height: 200px; }
}

/* =====================================================================
   RACKS & BINS — Inventory Dashboard
   ===================================================================== */

.rb-shell {
    padding: 12px 0;
}

.rb-panel {
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.rb-main {
    padding: 14px;
}

.rb-sidebar {
    padding: 14px;
    box-shadow: -8px 0 20px rgba(0,0,0,0.06);
}

.rb-main-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rb-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.rb-search {
    max-width: 360px;
    min-width: 240px;
    flex: 1 1 360px;
}

.rb-search .input-group-text {
    border-radius: 2px 0 0 2px;
    border-color: rgba(0,0,0,0.15);
}

.rb-search .form-control {
    border-radius: 0 2px 2px 0;
    border-color: rgba(0,0,0,0.15);
    font-size: 12px;
}

.rb-rack-select {
    width: 160px;
    min-width: 160px;
    flex: 0 0 160px;
    border-color: rgba(0,0,0,0.15);
    font-size: 12px;
}

@media (max-width: 576px) {
    .rb-controls {
        flex-wrap: wrap;
    }
}

.rb-title {
    margin: 12px 0 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #013e69;
    letter-spacing: 0.2px;
}

.rb-legend {
    display: flex;
    gap: 12px;
    align-items: center;
}

.rb-legend--inline {
    flex-wrap: wrap;
    justify-content: center;
}

.rb-legend--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e8eef4;
    border-radius: 4px;
    background: #fcfdff;
    margin-bottom: 12px;
}

.rb-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #343a40;
    white-space: nowrap;
}

.rb-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.rb-dot--available { background: #28a745; }
.rb-dot--full      { background: #007bff; }
.rb-dot--partial   { background: #ffc107; }
.rb-dot--unavailable   { background: #6c757d; }

.rb-racks {
    display: grid;
    gap: 10px;
}

.rb-x-axis {
    display: grid;
    grid-template-columns: 86px repeat(10, minmax(56px, 1fr));
    gap: 10px;
    align-items: end;
}

.rb-axis-spacer {
    height: 1px;
}

.rb-x-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #6b727a;
    text-transform: uppercase;
}

.rb-level {
    position: relative;
    display: grid;
    grid-template-columns: 86px repeat(10, minmax(56px, 1fr));
    gap: 10px;
    padding: 6px 0 14px;
    align-items: center;
}

.rb-level::after {
    content: "";
    position: absolute;
    left: 86px;
    right: 0;
    bottom: 4px;
    height: 6px;
    background: #fd7e14;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.rb-y-label {
    text-align: left;
    padding-left: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #343a40;
}

.rb-pallet {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 72px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 12px 12px 10px 10px;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    padding-bottom: 10px;
    transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rb-pallet:active {
    transform: translateY(1px);
}

.rb-pallet i {
    font-size: 20px;
    color: rgba(255,255,255,0.92);
}

.rb-pallet-label {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.96);
    letter-spacing: 0.3px;
}

.rb-pallet::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 12px;
    border-radius: 0 0 10px 10px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.28) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.12), rgba(0,0,0,0.12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.rb-pallet.status-available { background: #28a745; }
.rb-pallet.status-full      { background: #007bff; }
.rb-pallet.status-partial   { background: #ffc107; }

.rb-slot {
    height: 72px;
    border-radius: 12px;
}

.rb-pallet.status-partial i,
.rb-pallet.status-partial .rb-pallet-label {
    color: rgba(52,58,64,0.92);
}

.rb-pallet.is-selected {
    border-color: rgba(255,255,255,0.92);
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.95),
        0 0 0 5px rgba(0,123,255,0.22),
        0 10px 24px rgba(0,123,255,0.18);
}

.rb-details {
    border: 1px solid #e8eef4;
    border-radius: 4px;
    background: #fff;
    padding: 12px;
}

.rb-details.is-hidden {
    display: none;
}

.rb-details-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rb-details-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #013e69;
}

.rb-details-close {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rb-details-list {
    margin: 0;
    display: grid;
    gap: 8px;
}

.rb-detail {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: baseline;
    font-size: 12px;
}

.rb-detail dt {
    font-weight: 800;
    color: #343a40;
}

.rb-detail dd {
    margin: 0;
    color: #4b6174;
}

.rb-dmc {
    margin-top: 12px;
    border: 1px solid #e8eef4;
    border-radius: 4px;
    background: #fcfdff;
    padding: 12px;
}

.rb-dmc.is-hidden {
    display: none;
}

.rb-dmc-title {
    font-size: 12px;
    font-weight: 800;
    color: #343a40;
    margin-bottom: 10px;
}

.rb-dmc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 6px;
}

.rb-dmc-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #f4f5f7;
    color: #343a40;
    font-size: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}

.rb-dmc-item i {
    font-size: 16px;
    color: #6b727a;
}

@media (max-width: 1199.98px) {
    .rb-sidebar { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
}

@media (max-width: 576px) {
    .rb-x-axis,
    .rb-level {
        grid-template-columns: 72px repeat(10, minmax(48px, 1fr));
        gap: 8px;
    }

    .rb-level::after {
        left: 72px;
    }

    .rb-pallet {
        height: 64px;
    }

    .rb-slot {
        height: 64px;
    }
}

/* =====================================================================
   CAPTURA PALLET — Vista Operativa
   ===================================================================== */

.cp-shell {
    padding: 6px 0;
}

.cp-title {
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
    letter-spacing: 0.2px;
}

.cp-actions .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cp-actions i {
    font-size: 16px;
}

.cp-kv {
    display: grid;
    gap: 2px;
    padding: 2px 0;
}

.cp-k {
    font-weight: 800;
    font-size: 12px;
}

.cp-v {
    font-size: 13px;
}

.cp-operator-select {
    max-width: 260px;
}

.cp-ops-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-op-badge {
    border: 0;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
}

.cp-op-badge.is-active {
    box-shadow: 0 0 0 2px rgba(13,110,253,0.25);
}

.cp-capture-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: 12px;
    overflow-x: auto;
}

.cp-capture-select {
    flex: 0 0 170px;
    min-width: 170px;
}

.cp-capture-input {
    flex: 1 1 520px;
    min-width: 260px;
}

.cp-capture-row .btn {
    white-space: nowrap;
    flex: 0 0 auto;
}

.cp-pallet-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cp-table-scroll {
    max-height: 420px;
    overflow-y: auto;
    position: relative;
}

.cp-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-table-bg);
}

/* =====================================================================
   DATATABLE
   ===================================================================== */

.dataTables_wrapper .row { align-items: center; margin-bottom: 15px; }
.dataTables_wrapper .dataTables_length select { width: 80px; display: inline-block; margin: 0 10px; }
.dataTables_wrapper .dataTables_filter input { margin-left: 10px; border-radius: 4px; border: 1px solid #dee2e6; padding: 4px 10px; }
.page-item.active .page-link { background-color: #013e69; border-color: #013e69; }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before { background-color: #013e69; }

/* =====================================================================
   EDIT PROFILE & SETTINGS  (compartidos — son idénticos)
   ===================================================================== */

.profile-shell { display: grid; gap: 24px; }

.profile-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(12, 34, 54, 0.08);
    border-radius: 24px;
    background: linear-gradient(135deg, #0c2b45 0%, #155a8c 52%, #eef5fb 52%, #f9fbfd 100%);
    box-shadow: 0 24px 60px rgba(12, 43, 69, 0.12);
}
.profile-hero::before,
.profile-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.profile-hero::before { width: 280px; height: 280px; top: -120px; right: -60px; background: rgba(255,255,255,0.12); }
.profile-hero::after  { width: 180px; height: 180px; bottom: -90px; left: 32%; background: rgba(18,90,140,0.18); }

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #f5fbff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-hero h1 { margin: 14px 0 10px; color: #fff; font-size: clamp(2rem, 2.8vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.profile-hero p  { max-width: 620px; margin: 0; color: rgba(255,255,255,0.8); font-size: 15px; line-height: 1.7; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,0.12); color: #fff; font-size: 13px; }
.hero-chip strong { font-size: 15px; font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-actions .btn { min-width: 170px; border-radius: 14px; padding: 12px 20px; font-weight: 600; }
.hero-actions .btn-light { background: rgba(255,255,255,0.92); border-color: rgba(255,255,255,0.92); color: #0c2b45; }
.hero-actions .btn-outline-light { border-color: rgba(255,255,255,0.4); color: #fff; }

.profile-card { border: 1px solid rgba(14,38,60,0.08); border-radius: 22px; background: rgba(255,255,255,0.95); box-shadow: 0 16px 44px rgba(11,35,56,0.06); }

.profile-side-card { position: sticky; top: 28px; padding: 24px; }

.profile-cover {
    height: 140px;
    margin: -24px -24px 0;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(145deg, rgba(2,62,105,0.92), rgba(26,126,183,0.7)), url('../images/screenshots/01.png') center/cover;
}

.profile-img-container { position: relative; width: 124px; height: 124px; margin: -62px auto 18px; }
.profile-img-container img { width: 100%; height: 100%; border-radius: 30px; object-fit: cover; border: 5px solid #fff; box-shadow: 0 18px 36px rgba(10,38,58,0.18); }

.btn-edit-photo {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 38px;
    height: 38px;
    border: 3px solid #fff;
    border-radius: 14px;
    background: #013e69;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(1,62,105,0.28);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-edit-photo:hover { background: #0c5f99; transform: translateY(-2px); }

.profile-name { margin-bottom: 4px; text-align: center; color: #13263c; font-size: 24px; font-weight: 700; }
.profile-role { margin-bottom: 14px; text-align: center; color: #5e7285; font-size: 14px; }

.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.profile-badge { padding: 8px 12px; border-radius: 999px; background: #edf4fa; color: #0e4d79; font-size: 12px; font-weight: 600; }

.profile-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.profile-stat { padding: 14px 10px; border-radius: 18px; background: #f7fafc; text-align: center; }
.profile-stat strong { display: block; color: #13263c; font-size: 18px; font-weight: 700; }
.profile-stat span   { color: #6c7f91; font-size: 12px; }

.side-section + .side-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid #ebf0f4; }

.side-section-title,
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #1a3047;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.side-section-title::after,
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(17,48,74,0.12), rgba(17,48,74,0));
}

.profile-detail-list { display: grid; gap: 12px; }
.profile-detail { display: flex; gap: 12px; align-items: flex-start; color: #4b6174; font-size: 14px; }
.profile-detail i { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #eff5fa; color: #0b5b93; font-size: 18px; }
.profile-detail strong { display: block; margin-bottom: 2px; color: #13263c; font-size: 13px; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: #f4f7fb; color: #34506a; font-size: 12px; font-weight: 600; }

.profile-main-content { display: grid; gap: 24px; }
.section-card { padding: 24px; }
.section-lead { margin: -4px 0 18px; color: #6d8092; font-size: 14px; line-height: 1.7; }

.form-control-profile,
.form-select.form-control-profile {
    min-height: 52px;
    border: 1px solid #d9e3ec;
    border-radius: 16px;
    background-color: #fbfdff;
    color: #22384d;
    font-size: 14px;
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
textarea.form-control-profile { min-height: 140px; resize: vertical; }
.form-control-profile:focus,
.form-select.form-control-profile:focus {
    border-color: rgba(1,62,105,0.42);
    background-color: #fff;
    box-shadow: 0 0 0 0.22rem rgba(1,62,105,0.08);
}
.input-group .form-control-profile { border-left: 0; border-radius: 0 16px 16px 0; }

.mini-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini-card { padding: 18px; border: 1px solid #e6edf3; border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); }
.mini-card span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 14px; background: #edf4fa; color: #0c5f99; font-size: 20px; margin-bottom: 12px; }
.mini-card strong { display: block; color: #13263c; margin-bottom: 4px; font-size: 15px; }
.mini-card p { margin: 0; color: #6c8194; font-size: 13px; line-height: 1.6; }

.toggle-list { display: grid; gap: 14px; }
.toggle-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #e8eef4; border-radius: 18px; background: #fcfdff; }
.toggle-item strong { display: block; margin-bottom: 4px; color: #173048; font-size: 14px; }
.toggle-item span   { display: block; color: #6d8092; font-size: 13px; line-height: 1.6; }
.form-check.form-switch .form-check-input { width: 46px; height: 24px; margin-top: 0; border-radius: 999px; }

.timeline-list { display: grid; gap: 14px; }
.timeline-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fbfe;
}
.timeline-item i { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #eaf3fa; color: #0c5f99; font-size: 20px; }
.timeline-item strong { display: block; margin-bottom: 2px; color: #173048; font-size: 14px; }
.timeline-item span,
.timeline-item small { color: #6f8193; font-size: 13px; }

.danger-box { padding: 18px; border: 1px solid rgba(220,53,69,0.18); border-radius: 18px; background: linear-gradient(180deg, rgba(220,53,69,0.04), rgba(220,53,69,0.02)); }
.danger-box p { margin-bottom: 14px; color: #7a5860; font-size: 13px; }

.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.profile-actions .btn { min-width: 150px; border-radius: 14px; padding: 12px 18px; font-weight: 600; }

@media (max-width: 1199.98px) {
    .profile-side-card { position: static; }
    .mini-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .profile-hero, .section-card, .profile-side-card { padding: 20px; }
    .profile-cover { margin: -20px -20px 0; }
    .profile-stat-grid, .mini-card-grid { grid-template-columns: 1fr; }
    .timeline-item { grid-template-columns: 44px 1fr; }
    .timeline-item small { grid-column: 2; }
    .hero-actions, .profile-actions { justify-content: stretch; }
    .hero-actions .btn, .profile-actions .btn { width: 100%; }
}

/* =====================================================================
   FILE MANAGER
   ===================================================================== */

.file-manager-wrapper { display: flex; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); min-height: calc(100vh - 200px); overflow: hidden; }
.fm-sideleft { width: 240px; border-right: 1px solid #e1e5eb; padding: 20px 0; background: #fcfcfc; }
.fm-sideleft .nav-link { color: #555; padding: 10px 20px; font-size: 13px; display: flex; align-items: center; gap: 10px; transition: 0.2s; }
.fm-sideleft .nav-link:hover, .fm-sideleft .nav-link.active { background-color: #f0f2f5; color: var(--primary-color); font-weight: 500; }
.fm-content { flex: 1; display: flex; flex-direction: column; }
.fm-header { padding: 15px 20px; border-bottom: 1px solid #e1e5eb; display: flex; align-items: center; justify-content: space-between; background: #fff; }
.fm-body { padding: 25px; flex: 1; overflow-y: auto; }

.file-card { border: 1px solid #f0f2f5; border-radius: 8px; padding: 15px; text-align: center; transition: all 0.2s; cursor: pointer; height: 100%; background: #fff; position: relative; }
.file-card:hover { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.file-card.selected { border-color: var(--primary-color); background-color: rgba(6,91,150,0.1); }
.file-checkbox { position: absolute; top: 10px; left: 10px; display: none; }
.select-mode .file-checkbox { display: block; }
.file-icon { font-size: 40px; margin-bottom: 10px; display: block; }
.folder-icon    { color: #ffc107; }
.file-icon-pdf  { color: #dc3545; }
.file-icon-img  { color: #28a745; }
.file-icon-doc  { color: #007bff; }
.file-icon-js   { color: #f7df1e; }
.file-icon-json { color: #000; }
.file-icon-php  { color: #777bb4; }
.file-name { font-size: 13px; font-weight: 500; color: #333; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 11px; color: #999; }

.list-view { display: none; }
.list-view.active { display: block; }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th, .file-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e1e5eb; }
.file-table th { background-color: #f8f9fa; font-weight: 600; cursor: pointer; user-select: none; }
.file-table th:hover { background-color: #e9ecef; }
.file-table th.sort-asc::after  { content: ' ↑'; }
.file-table th.sort-desc::after { content: ' ↓'; }
.file-table .file-row { cursor: pointer; transition: background-color 0.2s; }
.file-table .file-row:hover   { background-color: #f8f9fa; }
.file-table .file-row.selected { background-color: rgba(6,91,150,0.1); }

.bulk-toolbar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: white; padding: 10px 20px; border-radius: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: none; z-index: 1000; }
.bulk-toolbar.show { display: flex; align-items: center; gap: 15px; }
.bulk-toolbar .btn { background: transparent; border: none; color: white; padding: 5px 10px; border-radius: 4px; }
.bulk-toolbar .btn:hover { background: rgba(255,255,255,0.2); }

.context-menu { position: absolute; background: white; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1001; display: none; min-width: 150px; }
.context-menu.show { display: block; }
.context-menu-item { padding: 8px 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.context-menu-item:hover { background-color: #f8f9fa; }

.dropzone { border: 2px dashed #ddd; border-radius: 8px; padding: 40px; text-align: center; color: #666; transition: all 0.3s; margin-bottom: 20px; }
.dropzone.dragover { border-color: var(--primary-color); background-color: rgba(6,91,150,0.05); }

.upload-progress { position: fixed; bottom: 80px; right: 20px; width: 300px; background: white; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 999; display: none; }
.upload-progress.show { display: block; }
.upload-item { padding: 10px 15px; border-bottom: 1px solid #eee; }
.upload-item:last-child { border-bottom: none; }
.upload-item .progress { height: 6px; margin-top: 5px; }

.permission-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; padding: 2px 6px; border-radius: 3px; color: white; }
.badge-readonly { background-color: #ffc107; }
.badge-private  { background-color: #dc3545; }

.preview-modal .modal-dialog { max-width: 90vw; max-height: 90vh; }
.code-preview { background: #f8f9fa; padding: 20px; border-radius: 4px; font-family: 'Courier New', monospace; white-space: pre-wrap; max-height: 70vh; overflow-y: auto; }
.storage-status { padding: 20px; border-top: 1px solid #e1e5eb; margin-top: auto; }
.btn-upload { margin: 0 20px 20px; width: calc(100% - 40px); font-size: 12px; }

/* =====================================================================
   FORMS
   ===================================================================== */

.custom-file-label { font-size: 13px; }

/* =====================================================================
   FORM LAYOUTS
   ===================================================================== */

.form-control-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #6b727a; margin-bottom: 8px; display: block; }
.form-layout-footer { padding: 20px; background-color: #f8f9fa; border-top: 1px solid #e1e5eb; display: flex; gap: 10px; }

@media (min-width: 576px) { .text-sm-end { text-align: right !important; } }

/* =====================================================================
   FORM WIZARDS
   ===================================================================== */

.wizard-steps-container {
    display: flex;
    justify-content: space-between;
    padding: 20px 60px;
    background: #f8f9fa;
    border-bottom: 1px solid #edf2f9;
    position: relative;
    margin-bottom: 30px;
}
.step-line-bg  { position: absolute; top: 37px; left: 17%; right: 17%; height: 2px; background: #dce1e7; z-index: 0; }
.step-line-fill { position: absolute; top: 37px; left: 16.5%; height: 2px; background: var(--primary-color); z-index: 1; width: 0%; transition: width 0.4s cubic-bezier(0.4,0,0.2,1); }

.step-item { display: flex; flex-direction: column; align-items: center; position: relative; flex: 1; z-index: 2; }
.step-circle { width: 35px; height: 35px; border-radius: 50%; background: #dce1e7; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; border: 4px solid #f8f9fa; transition: 0.3s; }
.step-item.active    .step-circle { background: var(--primary-color); box-shadow: 0 0 0 5px rgba(6,91,150,0.1); }
.step-item.completed .step-circle { background: #28a745; }
.step-text { font-size: 11px; font-weight: 700; text-transform: uppercase; margin-top: 10px; color: #adb5bd; }
.step-item.active .step-text { color: var(--primary-color); }

.wizard-vertical { display: flex; gap: 30px; }
.wizard-vertical-steps { width: 250px; display: flex; flex-direction: column; gap: 20px; border-right: 1px solid #edf2f9; }
.v-step { display: flex; align-items: center; gap: 15px; cursor: pointer; opacity: 0.6; }
.v-step.active { opacity: 1; color: var(--primary-color); }
.v-circle { width: 30px; height: 30px; border-radius: 50%; background: #dce1e7; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.v-step.active .v-circle { background: var(--primary-color); }

.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
   FORM VALIDATIONS
   ===================================================================== */

input.parsley-error, select.parsley-error, textarea.parsley-error {
    border-color: #dc3545;
    background-color: #fff8f8;
}
.parsley-errors-list { margin: 5px 0 0; padding: 0; list-style: none; font-size: 12px; color: #dc3545; }

/* =====================================================================
   ICONS
   ===================================================================== */

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; margin-top: 20px; }
.icon-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 10px; background: #fff; border: 1px solid #edf2f9; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; position: relative; }
.icon-item:hover { border-color: var(--primary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateY(-2px); }
.icon-item i { font-size: 32px; color: #343a40; margin-bottom: 10px; transition: color 0.2s; }
.icon-item:hover i { color: var(--primary-color); }
.icon-name { font-size: 11px; color: #6b727a; text-align: center; word-break: break-all; }

#copy-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #343a40; color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 13px; display: none; z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }


/* =====================================================================
   MAILBOX
   ===================================================================== */

.mailbox-container { display: flex; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); min-height: calc(100vh - 200px); margin-bottom: 60px; }
.mailbox-sideleft { width: 200px; border-right: 1px solid #e1e5eb; padding: 20px 0; }
.mailbox-content { flex: 1; position: relative; }
.nav-mailbox .nav-link { color: #555; padding: 10px 20px; font-size: 13px; display: flex; align-items: center; gap: 10px; border-radius: 0; cursor: pointer; }
.nav-mailbox .nav-link:hover { background-color: #f8f9fa; color: var(--primary-color); }
.nav-mailbox .nav-link.active { background-color: #f0f2f5; color: var(--primary-color); font-weight: 500; border-left: 3px solid var(--primary-color); }
.mail-list { list-style: none; padding: 0; margin: 0; }
.mail-item { display: flex; padding: 15px 20px; border-bottom: 1px solid #f0f2f5; cursor: pointer; transition: background 0.2s; align-items: flex-start; }
.mail-item:hover { background-color: #fcfdfe; }
.mail-item.unread { background-color: #f4f7fa; font-weight: 500; }
.mail-checkbox { margin-top: 4px; margin-right: 15px; }
.mail-star { color: #ccc; margin-right: 15px; font-size: 18px; transition: 0.2s; }
.mail-star.active { color: #f1c40f; }
.mail-user-img { width: 38px; height: 38px; border-radius: 50%; margin-right: 15px; }
.mail-body { flex: 1; min-width: 0; }
.mail-top-info { display: flex; justify-content: space-between; margin-bottom: 3px; }
.mail-subject { font-size: 14px; color: #333; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-text { font-size: 13px; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-time { font-size: 11px; color: #999; }
#mail-content-view { display: none; padding: 25px; animation: fadeIn 0.3s ease; }
.mail-view-header { border-bottom: 1px solid #f0f2f5; padding-bottom: 20px; margin-bottom: 20px; }
.mail-view-sender { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.mail-view-body { font-size: 14px; line-height: 1.6; color: #444; }
.btn-compose { margin: 0 20px 20px; width: calc(100% - 40px); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.mailbox-header { padding: 15px 20px; border-bottom: 1px solid #e1e5eb; display: flex; align-items: center; justify-content: space-between; background: #fcfcfc; }

/* =====================================================================
   MODALES
   ===================================================================== */

.static-modal { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: block; z-index: 1; }
.modal-preview-wrapper { background: #e9ecef; padding: 30px; border-radius: 8px; margin-bottom: 20px; }
.modal-header { background: #f8f9fa; border-bottom: 1px solid #edf2f9; }
.modal-title { font-size: 15px; font-weight: 700; color: #333; }
.modal-footer { background: #f8f9fa; border-top: 1px solid #edf2f9; }

/* =====================================================================
   NAVIGATION
   ===================================================================== */

.nav-pills .nav-link.active { background-color: var(--primary-color); }
.nav-tabs .nav-link.active  { border-top: 3px solid var(--primary-color); color: var(--primary-color); font-weight: 700; }
.nav-custom { background: #f8f9fa; border: 1px solid #edf2f9; border-radius: 4px; padding: 15px; }
.nav-vertical { flex-direction: column; border-right: 1px solid #edf2f9; }
.nav-vertical .nav-link { padding: 12px 20px; border-radius: 0; border-left: 3px solid transparent; }
.nav-vertical .nav-link.active { background: rgba(6,91,150,0.05); border-left-color: var(--primary-color); color: var(--primary-color); }
.nav-pills-icon .nav-link { border-radius: 8px; padding: 10px 20px; }
.nav-pills-icon .nav-link i { font-size: 18px; }
.tab-content { border: 1px solid #dee2e6; border-top: 0; padding: 20px; border-radius: 0 0 8px 8px; }
.nav-buttons .nav-link { background: #e9ecef; border-radius: 8px; margin: 0 5px; font-weight: 600; }
.nav-buttons .nav-link.active { background: var(--primary-color); color: white; }
.nav-buttons .nav-link:hover:not(.active) { background: #dee2e6; }
.nav-segmented { background: #e9ecef; border-radius: 8px; padding: 4px; }
.nav-segmented .nav-link { border-radius: 6px; color: #6c757d; font-weight: 500; }
.nav-segmented .nav-link.active { background: white; color: var(--primary-color); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.nav-underline .nav-link { border-bottom: 2px solid transparent; padding: 10px 15px; }
.nav-underline .nav-link.active { border-bottom-color: var(--primary-color); color: var(--primary-color); font-weight: 600; }
.nav-link .badge { margin-left: 8px; }

/* =====================================================================
   404 / ERROR PAGES  (standalone)
   ===================================================================== */

.error-background {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.error-background::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(6,91,150,0.85) 0%, rgba(7,77,126,0.9) 100%);
    z-index: 1;
}
.error-container { position: relative; z-index: 2; text-align: center; color: #fff; padding: 20px; max-width: 600px; }
.error-code  { font-size: 12rem; font-weight: 700; line-height: 1; margin-bottom: 0; text-shadow: 0 10px 30px rgba(0,0,0,0.2); letter-spacing: -5px; }
.error-title { font-size: 2.5rem; font-weight: 300; margin-bottom: 1rem; text-transform: uppercase; }
.error-message { font-size: 1.1rem; margin-bottom: 2.5rem; opacity: 0.9; }
.btn-home { background-color: #fff; color: var(--primary-color); border: none; padding: 12px 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.btn-home:hover { background-color: var(--bg-light); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); color: var(--dark-sidebar); }
.brand-logo { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); z-index: 3; max-width: 400px; }

/* =====================================================================
   PAGINATION
   ===================================================================== */

.demo-container { min-height: 80px; border: 1px solid #edf2f9; display: flex; align-items: center; justify-content: center; border-radius: 4px; margin-bottom: 20px; padding: 15px; }
.pagination { gap: 5px; }
.page-link { border-radius: 6px; color: #6b727a; border-color: #edf2f9; padding: 8px 14px; font-size: 13px; display: flex; align-items: center; transition: all 0.2s; }
.page-link:hover { background-color: #f8f9fa; color: var(--primary-color); border-color: var(--primary-color); }
.page-item.active .page-link { background-color: var(--primary-color); border-color: var(--primary-color); font-weight: 600; box-shadow: 0 2px 4px rgba(1,62,105,0.2); }
.page-item.disabled .page-link { cursor: not-allowed; opacity: 0.5; }
.pagination-rounded .page-link { border-radius: 50%; width: 38px; height: 38px; padding: 0; justify-content: center; }
.pagination-outlined .page-link { background-color: transparent; border: 2px solid #dee2e6; }
.pagination-outlined .page-item.active .page-link { background-color: var(--primary-color); border-color: var(--primary-color); }
.pagination-dark .page-link { background-color: rgba(255,255,255,0.1); border-color: transparent; color: #adb5bd; }
.pagination-dark .page-link:hover { background-color: rgba(255,255,255,0.2); color: #fff; }
.pagination-dark .page-item.active .page-link { background-color: rgba(255,255,255,0.9); color: #000; }
.pagination-primary .page-item.active .page-link { background-color: #0d6efd; border-color: #0d6efd; }
.pagination-success .page-item.active .page-link { background-color: #198754; border-color: #198754; }
.pagination-warning .page-item.active .page-link { background-color: #ffc107; border-color: #ffc107; color: #000; }
.pagination-danger .page-item.active .page-link  { background-color: #dc3545; border-color: #dc3545; }
.pagination-info .page-item.active .page-link    { background-color: #0dcaf0; border-color: #0dcaf0; color: #000; }
.pagination-shadow .page-link { box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.pagination-shadow .page-item.active .page-link { box-shadow: 0 4px 8px rgba(1,62,105,0.3); }
.pagination-simple .page-link { border: none; background: transparent; }
.pagination-simple .page-link:hover { background-color: #f8f9fa; }
.pagination-simple .page-item.active .page-link { background-color: var(--primary-color); color: white; }
.pagination-info-text { font-size: 13px; color: #6c757d; }

/* =====================================================================
   POPUPS
   ===================================================================== */

.tooltip-demo { cursor: help; }
.toast-container-demo { position: relative; min-height: 200px; }
.offcanvas-demo-btn { margin: 5px; }
.alert-modern { border: none; border-left: 4px solid; border-radius: 8px; }
.alert-modern .alert-heading { font-size: 16px; font-weight: 700; }
.dropdown-modern .dropdown-menu { border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: none; }
.dropdown-modern .dropdown-item { padding: 10px 20px; transition: all 0.2s; }
.dropdown-modern .dropdown-item:hover { background-color: #f8f9fa; padding-left: 25px; }
.dropdown-modern .dropdown-item i { margin-right: 10px; }
.collapse-custom .btn { border-radius: 8px; font-weight: 600; }
.collapse-custom .card { border: none; border-left: 3px solid var(--primary-color); }
.progress-modern { height: 24px; border-radius: 12px; }
.progress-modern .progress-bar { border-radius: 12px; }
.spinner-custom { width: 3rem; height: 3rem; }

/* =====================================================================
   SIGN UP / SIGN UP 2  (standalone wizard)
   ===================================================================== */

.wizard-container { position: relative; z-index: 2; width: 100%; max-width: 700px; background: rgba(255,255,255,0.95); border-radius: 8px; box-shadow: 0 25px 60px rgba(0,0,0,0.3); overflow: hidden; backdrop-filter: blur(10px); }
.wizard-header { background: var(--dark-sidebar); padding: 15px; text-align: center; color: #fff; min-height: 160px; }
.wizard-header img { width: 200px; height: auto; margin-bottom: 15px; }

.step-indicator {
    display: flex;
    justify-content: space-between;
    padding: 30px 60px;
    background: #f8f9fa;
    border-bottom: 1px solid #edf2f9;
    position: relative;
}
.step-indicator::before {
    content: "";
    position: absolute;
    top: 47px;
    left: 17%;
    right: 17%;
    height: 2px;
    background: #dce1e7;
    z-index: 0;
}
.progress-line {
    position: absolute;
    top: 47px;
    left: 16.5%;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.step { display: flex; flex-direction: column; align-items: center; position: relative; flex: 1; z-index: 2; }
.step-icon { width: 35px; height: 35px; border-radius: 50%; background: #dce1e7; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: 0.3s; border: 4px solid #f8f9fa; position: relative; z-index: 10; }
.step.active    .step-icon { background: var(--primary-color); box-shadow: 0 0 0 5px rgba(6,91,150,0.1); }
.step.completed .step-icon { background: #28a745; }
.step-label { font-size: 11px; font-weight: 700; text-transform: uppercase; margin-top: 10px; color: #adb5bd; }
.step.active    .step-label { color: var(--primary-color); }
.step.completed .step-label { color: #28a745; }

.wizard-form { padding: 40px; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s ease-in-out; }
.btn-wizard { padding: 10px 25px; font-weight: 500; text-transform: uppercase; font-size: 13px; border-radius: 4px; }
.wizard-footer { background: #f8f9fa; border-top: 1px solid #edf2f9; padding: 15px; text-align: center; color: #6b727a; }

/* =====================================================================
   SPINNERS (SpinKit)
   ===================================================================== */

:root {
    --sk-size:  50px;
    --sk-color: #013e69;
}

/* =====================================================================
   VECTOR MAPS
   ===================================================================== */

.jqvmap-zoomin, .jqvmap-zoomout { width: 20px; height: 20px; background-color: #013e69; line-height: 20px; padding: 0; }
.jqvmap-label { font-family: 'Roboto', sans-serif; background-color: rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 4px; color: #fff; }

/* =====================================================================
   WIDGETS
   ===================================================================== */

.widget-rickshaw { position: relative; width: 100%; height: 70px; }
.social-icons a { font-size: 1.5rem; text-decoration: none; margin-right: 10px; transition: color 0.3s; }
.social-icons a:hover { opacity: 0.8; }
.contact-info i { width: 20px; text-align: center; }
.transaction-table td { vertical-align: middle; }
.dot-indicator { width: 10px; height: 10px; display: inline-block; border-radius: 50%; margin-right: 5px; }
