/* Hohen Ascensores - TablerCore Custom Overrides */

:root {
    --sidebar-width: 280px;
    --transition-speed: 0.25s;
    --brand-gradient: linear-gradient(135deg, #1c7ed6 0%, #1971c2 100%);
    --card-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,.1), 0 12px 32px rgba(0,0,0,.08);
}

/* AlpineJS: hide x-cloak elements before init */
[x-cloak] { display: none !important; }

/* ─── Page Layout ────────────────────────────────────────────── */
.page {
    display: flex;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-body {
    flex: 1;
}

/* ─── Card enhancements ──────────────────────────────────────── */
.card {
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,.06);
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.card-hover:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* ─── KPI Stat Cards ─────────────────────────────────────────── */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: .06;
    background: currentColor;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.stat-trend-up   { color: #2fb344; font-size: .8rem; font-weight: 600; }
.stat-trend-down { color: #d63939; font-size: .8rem; font-weight: 600; }

/* ─── Avatar / Icon shapes ───────────────────────────────────── */
.avatar-xl {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.4rem;
}

/* ─── Sidebar Brand ──────────────────────────────────────────── */
.navbar-brand-logo {
    background: var(--brand-gradient);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ─── Sidebar user card ──────────────────────────────────────── */
.sidebar-user-card {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* ─── Nav item active indicator ─────────────────────────────── */
.navbar-vertical .nav-link.active {
    background: rgba(32, 107, 196, .15);
    border-radius: .4rem;
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
}

/* ─── Table polish ───────────────────────────────────────────── */
.table-vcenter td,
.table-vcenter th {
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(var(--tblr-primary-rgb), .035);
}

/* ─── Badge enhancements ─────────────────────────────────────── */
.badge-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: .35rem;
}

/* ─── Status indicator pulse ─────────────────────────────────── */
@keyframes pulse-ring {
    0%   { transform: scale(.8); opacity: .8; }
    70%  { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1.2); opacity: 0; }
}

.status-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 2s ease-out infinite;
}

/* ─── Chart card ─────────────────────────────────────────────── */
.chart-area {
    position: relative;
    height: 260px;
}

/* ─── Login / Auth layout ────────────────────────────────────── */
.auth-cover {
    background: linear-gradient(160deg, #1c7ed6 0%, #0c3d6e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #fff;
}

.auth-cover-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-cover-subtitle {
    opacity: .8;
    font-size: 1.05rem;
    margin-top: .5rem;
}

.auth-cover-features li {
    padding: .35rem 0;
    opacity: .9;
    font-size: .95rem;
}

/* ─── Page header decoration ─────────────────────────────────── */
.page-header-bg {
    background: linear-gradient(135deg, rgba(var(--tblr-primary-rgb), .06) 0%, transparent 60%);
    border-bottom: 1px solid rgba(var(--tblr-primary-rgb), .08);
}

/* ─── Empty state ────────────────────────────────────────────── */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state .empty-icon {
    font-size: 3rem;
    opacity: .25;
    margin-bottom: 1rem;
}

/* ─── Hover lift ─────────────────────────────────────────────── */
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover) !important;
}

.transition-all {
    transition: all var(--transition-speed) ease-in-out;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar.show { display: block !important; }
    .stat-value   { font-size: 1.6rem; }
    .auth-cover   { display: none; }
}
}