/* â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�
   LPS - Land Price Schedule
   Custom styles (bá»• sung cho TailwindCSS CDN)
   Author: ThS. Nguyá»…n Máº¡nh HÃ¹ng - Ä�HNL TPHCM
   â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•� */

/* Reset & base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #F5F7FA;
    color: #1F2937;
    line-height: 1.5;
}

/* LPS Color Variables */
:root {
    --lps-primary: #1F4E79;
    --lps-primary-light: #2E74B5;
    --lps-primary-dark: #153958;
    --lps-accent: #059669;
    --lps-warning: #D97706;
    --lps-danger: #DC2626;
    --lps-bg: #F5F7FA;
    --lps-surface: #FFFFFF;
    --lps-border: #E5E7EB;
    --lps-text: #1F2937;
    --lps-text-light: #6B7280;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Focus ring - accessible */
*:focus-visible {
    outline: 2px solid var(--lps-primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Login page background */
.login-bg {
    background: linear-gradient(135deg, #1F4E79 0%, #2E74B5 50%, #3B82F6 100%);
    min-height: 100vh;
}

/* Card transitions */
.card-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.05);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--lps-primary);
    color: white;
}
.btn-primary:hover:not(:disabled) { background: var(--lps-primary-dark); }

.btn-secondary {
    background: white;
    color: var(--lps-text);
    border-color: var(--lps-border);
}
.btn-secondary:hover:not(:disabled) { background: #F9FAFB; border-color: #D1D5DB; }

.btn-danger {
    background: var(--lps-danger);
    color: white;
}
.btn-danger:hover:not(:disabled) { background: #B91C1C; }

.btn-ghost {
    background: transparent;
    color: var(--lps-text);
}
.btn-ghost:hover:not(:disabled) { background: #F3F4F6; }

/* Form inputs */
.input, .select, .textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--lps-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--lps-primary-light);
    box-shadow: 0 0 0 3px rgba(46, 116, 181, 0.1);
}
.input:disabled { background: #F3F4F6; cursor: not-allowed; }

.label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--lps-text);
    margin-bottom: 0.375rem;
}
.label .required { color: var(--lps-danger); }

.field-error {
    color: var(--lps-danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Alerts */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* Card */
.card {
    background: white;
    border: 1px solid var(--lps-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--lps-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body { padding: 1.25rem; }
.card-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--lps-border);
    background: #FAFBFC;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Stats card */
.stat-card {
    background: white;
    border: 1px solid var(--lps-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-label { font-size: 0.8125rem; color: var(--lps-text-light); margin-bottom: 0.25rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--lps-text); line-height: 1.2; }

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.table thead th {
    background: #F8FAFC;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--lps-border);
    white-space: nowrap;
}
.table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F1F5F9;
}
.table tbody tr:hover { background: #F8FAFC; }
.table tbody tr:last-child td { border-bottom: none; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--lps-border);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 30;
    transition: transform 0.2s ease;
}
.sidebar-brand {
    padding: 1.25rem;
    border-bottom: 1px solid var(--lps-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--lps-primary), var(--lps-primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}
.sidebar-brand-text { font-weight: 700; color: var(--lps-primary); font-size: 1rem; }
.sidebar-brand-sub { font-size: 0.6875rem; color: var(--lps-text-light); }

.sidebar-nav { padding: 0.75rem 0.5rem; }
.sidebar-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--lps-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.75rem 0.375rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin: 0.125rem 0;
    border-radius: 0.5rem;
    color: var(--lps-text);
    font-size: 0.875rem;
    transition: all 0.15s ease;
    text-decoration: none;
}
.sidebar-link:hover { background: #F3F4F6; }
.sidebar-link.active {
    background: #EFF6FF;
    color: var(--lps-primary);
    font-weight: 500;
}
.sidebar-link .icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.sidebar-link .num {
    margin-left: auto;
    font-size: 0.75rem;
    background: #F3F4F6;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    color: var(--lps-text-light);
}

/* Main content area */
.main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.2s ease;
}

/* Sidebar collapsed state - Desktop: thu gá»�n sidebar, main chiáº¿m full width */
.sidebar.collapsed {
    transform: translateX(-100%);
}
body.sidebar-collapsed .main-wrapper {
    margin-left: 0;
}
.topbar {
    background: white;
    border-bottom: 1px solid var(--lps-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
}
.topbar-title { font-weight: 600; color: var(--lps-text); }
.page-content { padding: 1.5rem; }

/* Avatar */
.avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Mobile bottom nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--lps-border);
    padding: 0.375rem 0;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    z-index: 40;
    box-shadow: 0 -2px 10px rgba(0,0,0,.04);
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.375rem;
    color: var(--lps-text-light);
    font-size: 0.625rem;
    text-decoration: none;
}
.mobile-nav-item.active { color: var(--lps-primary); }
.mobile-nav-item .icon { width: 1.25rem; height: 1.25rem; }

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 25;
    display: none;
}

/* â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�
   RESPONSIVE BREAKPOINTS
   â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•� */

/* Tablet & below */
@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .sidebar-overlay.active { display: block; }
}

/* Mobile */
@media (max-width: 767px) {
    .page-content { padding: 1rem; padding-bottom: 5rem; }
    .topbar { padding: 0.625rem 1rem; }
    .mobile-nav { display: grid; }
    .sidebar { width: 85%; max-width: 320px; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.375rem; }
    .stat-icon { width: 2.5rem; height: 2.5rem; }

    /* Hide desktop-only */
    .hide-mobile { display: none !important; }

    /* Table â†’ card layout on mobile */
    .table-responsive thead { display: none; }
    .table-responsive tbody tr {
        display: block;
        border: 1px solid var(--lps-border);
        border-radius: 0.5rem;
        padding: 0.75rem;
        margin-bottom: 0.625rem;
        background: white;
    }
    .table-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.375rem 0;
        border: none;
    }
    .table-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--lps-text-light);
        font-size: 0.75rem;
    }
}

/* Print */
@media print {
    .sidebar, .topbar, .mobile-nav, .btn, .no-print { display: none !important; }
    .main-wrapper { margin-left: 0; }
    body { background: white; }
    .card { border: 1px solid #999; box-shadow: none; }
}

/* Utilities */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.skeleton {
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 0.375rem;
}
@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Animations */
.fade-in { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Transitions for Alpine.js */
[x-cloak] { display: none !important; }
