/* =========================================================================
   HONDA JAKARTA CENTER (PT. IMORA MOTOR) - SIGNATURE BRAND DESIGN SYSTEM
   Color Identity: Honda Racing Red (#e52421), Charcoal Black (#111827), Metallic Silver (#cbd5e1)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Honda Jakarta Center Signature Brand Colors */
    --hjc-red: #e52421;
    --hjc-red-hover: #cc1e1b;
    --hjc-red-dark: #991b1b;
    --hjc-red-light: #fff1f2;
    --hjc-red-subtle: #fef2f2;
    --hjc-red-border: #fecaca;
    
    --hjc-black: #111827;
    --hjc-charcoal: #1e293b;
    --hjc-silver: #cbd5e1;
    --hjc-silver-light: #f1f5f9;
    
    /* Primary Action Theme */
    --primary: var(--hjc-red);
    --primary-hover: var(--hjc-red-hover);
    --primary-light: var(--hjc-red-light);
    --primary-dark: var(--hjc-red-dark);
    --primary-border: var(--hjc-red-border);
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;
    
    --info: #0ea5e9;
    --info-light: #f0f9ff;
    
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: #1e293b;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-hover: 0 14px 20px -3px rgb(0 0 0 / 0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* Iconic HJC Tri-Color Stripe (Black - Silver - Honda Red) */
.hjc-stripe {
    height: 3.5px;
    width: 100%;
    background: linear-gradient(90deg, #111827 0%, #111827 28%, #cbd5e1 28%, #cbd5e1 60%, #e52421 60%, #e52421 100%);
}

.hjc-badge-stripe {
    display: inline-block;
    height: 3px;
    width: 32px;
    background: linear-gradient(90deg, #111827 0%, #111827 28%, #cbd5e1 28%, #cbd5e1 60%, #e52421 60%, #e52421 100%);
    border-radius: 2px;
    margin-top: 4px;
}

/* Application Wrapper */
.imora-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Styling */
.imora-sidebar {
    width: 265px;
    background-color: var(--bg-sidebar);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--transition);
    z-index: 50;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
    position: relative;
}

.sidebar-logo-card {
    background: #ffffff;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.sidebar-brand-text {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 14px;
}

.nav-section-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #64748b;
    padding: 12px 12px 6px;
    margin-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: var(--transition);
    gap: 12px;
    position: relative;
    font-size: 13px;
}

.nav-item i {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: var(--transition);
}

.nav-item:hover {
    background-color: var(--bg-sidebar-hover);
    color: #ffffff;
}

.nav-item:hover i {
    color: var(--hjc-red);
}

.nav-item.active {
    background: linear-gradient(90deg, #e52421, #c81e1b);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 36, 33, 0.35);
}

.nav-item.active i {
    color: #ffffff;
}

.nav-badge {
    margin-left: auto;
    background-color: #e52421;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Modern Submenu & Accordion Styles */
.nav-group {
    margin-bottom: 4px;
}

.nav-has-sub {
    cursor: pointer;
    user-select: none;
}

.nav-arrow {
    margin-left: auto;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    color: #64748b;
}

.nav-has-sub.open .nav-arrow {
    transform: rotate(90deg);
    color: var(--hjc-red);
}

.nav-sub {
    display: none;
    padding: 4px 0 6px 20px;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.nav-sub.open {
    display: flex !important;
}

.nav-sub-item {
    display: flex !important;
    align-items: center;
    width: 100%;
    color: #94a3b8;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    padding: 7px 12px 7px 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.nav-sub-item:hover {
    color: #ffffff;
    background-color: var(--bg-sidebar-hover);
    padding-left: 16px;
}

.nav-sub-item.active {
    color: #f87171;
    font-weight: 600;
}

.nav-sub-item::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #475569;
    transition: var(--transition);
}

.nav-sub-item:hover::before {
    background-color: var(--hjc-red);
    width: 6px;
    height: 6px;
}

/* Custom Scrollbar for Sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

/* Main Content Area */
.imora-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-body);
}

/* Modern Top Header */
.imora-header {
    height: 72px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-brand-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-title-wrapper h1 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.header-title-wrapper p {
    font-size: 12px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Live Server Clock */
.server-clock-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8fafc;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    border: 1px solid var(--border-color);
}

.clock-dot {
    width: 8px;
    height: 8px;
    background-color: var(--hjc-red);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 2px rgba(229, 36, 33, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* User Profile Badge */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-menu:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #111827, #e52421);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(229, 36, 33, 0.25);
}

.user-info-text {
    text-align: left;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.user-role-badge {
    font-size: 11px;
    color: var(--hjc-red);
    font-weight: 700;
}

/* Page Body Container */
.page-body {
    padding: 32px;
    flex: 1;
}

/* Modern Card Design */
.imora-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.imora-card:hover {
    box-shadow: var(--shadow-md);
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.card-header-flex h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

/* Quick Stat Cards Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}

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

.stat-card:hover::after {
    background: var(--hjc-red);
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon-primary {
    background-color: var(--hjc-red-light);
    color: var(--hjc-red);
}

.stat-icon-success {
    background-color: var(--success-light);
    color: var(--success);
}

.stat-icon-warning {
    background-color: var(--warning-light);
    color: var(--warning);
}

.stat-icon-danger {
    background-color: #f1f5f9;
    color: #1e293b;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Action Quick Links */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.action-btn-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    gap: 10px;
    transition: var(--transition);
    text-align: center;
}

.action-btn-card:hover {
    background-color: var(--hjc-red-light);
    border-color: var(--hjc-red-border);
    color: var(--hjc-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 20px;
    transition: var(--transition);
}

.action-btn-card:hover .action-btn-icon {
    background-color: var(--hjc-red);
    color: #ffffff;
}

/* Modern News & Announcement Card System */
.news-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 16px;
}

.news-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.news-thumb-wrapper {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #111827, #334155);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumb-img {
    transform: scale(1.04);
}

.news-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cat-berita {
    background: linear-gradient(135deg, #111827, #334155);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
}

.cat-pengumuman {
    background: linear-gradient(135deg, #e52421, #b91c1c);
    color: #ffffff;
}

.news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-title {
    color: var(--hjc-red);
}

.news-snippet {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    font-weight: 700;
    color: var(--hjc-red);
}

/* Modern Data Table */
.imora-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
}

.imora-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.imora-table th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.imora-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    color: #334155;
    font-size: 13px;
}

.imora-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Modern Status Pill Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.status-approved {
    background-color: var(--success-light);
    color: #047857;
    border: 1px solid var(--success-border);
}

.status-pending {
    background-color: var(--warning-light);
    color: #b45309;
    border: 1px solid var(--warning-border);
}

.status-rejected {
    background-color: var(--danger-light);
    color: #b91c1c;
    border: 1px solid var(--danger-border);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #e52421, #c81e1b);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(229, 36, 33, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c81e1b, #991b1b);
    box-shadow: 0 4px 10px rgba(229, 36, 33, 0.4);
    transform: translateY(-1px);
}

/* Reader Modal Popup */
.imora-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.imora-modal-backdrop.active {
    display: flex;
}

.imora-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.25s ease;
}

.imora-modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.imora-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

.imora-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition);
}

.imora-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .imora-sidebar {
        position: fixed;
        left: -265px;
        top: 0;
        bottom: 0;
    }
    .imora-sidebar.show {
        left: 0;
    }
    .imora-header {
        padding: 0 16px;
    }
    .page-body {
        padding: 16px;
    }
}
/* ===================================================
   📱 ULTRA-CLEAN MOBILE FIRST RESPONSIVE SYSTEM
   =================================================== */

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #1e293b;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--transition);
}

.mobile-sidebar-toggle:hover {
    background-color: #f1f5f9;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .imora-layout {
        flex-direction: column;
    }

    /* Off-Canvas Mobile Drawer Sidebar */
    .imora-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    .imora-sidebar.active {
        transform: translateX(0);
    }

    .imora-main {
        width: 100%;
        margin-left: 0;
    }

    /* Mobile Header Layout */
    .mobile-sidebar-toggle {
        display: flex;
    }

    .imora-header {
        height: 62px;
        padding: 0 14px;
        position: sticky;
        top: 0;
        z-index: 100;
        gap: 10px;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .header-title-wrapper {
        min-width: 0;
        overflow: hidden;
    }

    .header-title-wrapper h1 {
        font-size: 15px !important;
        font-weight: 800 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #0f172a;
        line-height: 1.2;
    }

    .header-title-wrapper p {
        display: none !important;
    }

    /* Hide live clock on mobile to give room to avatar */
    .server-clock-badge {
        display: none !important;
    }

    /* Compact Avatar Button */
    .user-profile-menu {
        padding: 4px 6px;
        gap: 6px;
        background: transparent;
        border: none;
    }

    .user-info-text {
        display: none !important;
    }

    .user-profile-menu .avatar-circle {
        width: 38px;
        height: 38px;
        font-size: 13px;
        border: 2px solid var(--hjc-red);
    }

    .user-profile-menu img {
        width: 38px !important;
        height: 38px !important;
    }

    #profileDropdownMenu {
        right: 0 !important;
        top: 48px !important;
        width: 220px !important;
    }

    .page-body {
        padding: 14px 12px;
    }

    .stat-card {
        padding: 16px;
    }
}
/* ===================================================
   📰 MOBILE HORIZONTAL SWIPE NEWS FEED
   =================================================== */

.news-scroll-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.news-card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .news-scroll-container {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 14px !important;
        padding: 4px 2px 14px 2px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin;
    }

    .news-card-item {
        flex: 0 0 82% !important;
        max-width: 310px !important;
        scroll-snap-align: start !important;
    }
}
/* ===================================================
   📰 CLEAN VERTICAL 5-NEWS FEED LIST
   =================================================== */

.news-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card-vertical {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.news-card-vertical:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Tablet & Desktop Side-by-Side Thumbnail */
@media (min-width: 640px) {
    .news-card-vertical {
        flex-direction: row;
        height: 145px;
    }

    .news-card-vertical .news-thumb-wrap {
        width: 220px !important;
        height: 100% !important;
        flex-shrink: 0;
    }
}

/* ===================================================
   📰 ADAPTIVE PROPORTIONAL NEWS IMAGE SIZING
   =================================================== */

.news-card-vertical {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column !important;
    height: auto !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-card-vertical:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.news-thumb-wrap {
    width: 100% !important;
    height: auto !important;
    min-height: 180px;
    max-height: 380px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-thumb-wrap img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    display: block;
    background-color: #0b1120;
    transition: transform 0.3s ease;
}

.news-card-vertical:hover .news-thumb-wrap img {
    transform: scale(1.02);
}

/* ==========================================================================
   📱💻 HYBRID DASHBOARD ORDERING (MOBILE PINNED TOP vs DESKTOP COMPACT BOTTOM)
   ========================================================================== */

.dashboard-flow {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* 📱 MOBILE VIEW (<= 768px): Berita PINNED DI ATAS, Foto Panjang Proporsional */
@media (max-width: 768px) {
    .section-news { order: 1; }
    .section-quick { order: 2; }
    .section-stats { order: 3; }
    .section-recent { order: 4; }

    .news-responsive-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .news-card-hybrid {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .news-hybrid-thumb {
        width: 100%;
        height: auto;
        min-height: 180px;
        max-height: 380px;
        background: #0b1120;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .news-hybrid-thumb img {
        width: 100%;
        height: auto;
        max-height: 380px;
        object-fit: contain;
    }
}

/* 💻 DESKTOP VIEW (> 768px): Stats & Quick Action di ATAS, Berita Kotak-Kotak Kecil di BAWAH */
@media (min-width: 769px) {
    .section-stats { order: 1; }
    .section-quick { order: 2; }
    .section-news { order: 3; }
    .section-recent { order: 4; }

    .news-responsive-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .news-card-hybrid {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    .news-card-hybrid:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    }

    /* Kotak Kecil Thumbnail di Desktop */
    .news-hybrid-thumb {
        height: 130px;
        width: 100%;
        background: #0f172a;
        position: relative;
        overflow: hidden;
    }

    .news-hybrid-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .news-card-hybrid:hover .news-hybrid-thumb img {
        transform: scale(1.05);
    }
}

/* Hide items 6-8 on mobile screen, show all 8 on desktop */
@media (max-width: 768px) {
    .desktop-only-news {
        display: none !important;
    }
}

/* ==========================================================================
   ✨ LIVELY, VIBRANT & INTERACTIVE ENTERPRISE COMPONENTS
   ========================================================================== */

/* Dynamic Welcome Hero Bar */
.welcome-hero-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
    border-radius: 16px;
    padding: 22px 26px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.welcome-hero-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle, rgba(229, 36, 33, 0.18) 0%, rgba(229, 36, 33, 0) 70%);
    pointer-events: none;
}

/* Premium Stat Cards with Hover Glow */
.stat-card-lively {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-card-lively:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(229, 36, 33, 0.15);
    border-color: #cbd5e1;
}

.stat-card-lively::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

.stat-card-red:hover::before { background: linear-gradient(90deg, #e52421, #f87171); }
.stat-card-green:hover::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card-yellow:hover::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card-blue:hover::before { background: linear-gradient(90deg, #6366f1, #818cf8); }

.stat-icon-lively {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease;
}

.stat-card-lively:hover .stat-icon-lively {
    transform: scale(1.08) rotate(3deg);
}

.stat-icon-lively-red { background: linear-gradient(135deg, #e52421 0%, #b91c1c 100%); color: #ffffff; }
.stat-icon-lively-green { background: linear-gradient(135deg, #10b981 0%, #047857 100%); color: #ffffff; }
.stat-icon-lively-yellow { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); color: #ffffff; }
.stat-icon-lively-blue { background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%); color: #ffffff; }

.stat-val-lively {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1.1;
    margin-bottom: 3px;
}

.stat-lbl-lively {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.stat-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Lively Quick Action Tiles */
.quick-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .quick-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .quick-tiles-grid {
        grid-template-columns: 1fr;
    }
}

.quick-tile {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.quick-tile:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 22px -4px rgba(0, 0, 0, 0.08);
}

.quick-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.quick-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.quick-tile:hover .quick-tile-icon {
    transform: scale(1.1);
}

.quick-tile-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quick-tile:hover .quick-tile-arrow {
    background: var(--hjc-red);
    color: #ffffff;
    transform: translateX(2px);
}

.quick-tile-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 3px;
}

.quick-tile-desc {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

/* ==========================================================================
   📱 ULTRA-CLEAN MOBILE PROFILE STYLING
   ========================================================================== */

.profile-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.profile-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.highlight-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.profile-field-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    gap: 12px;
}

.profile-field-label {
    color: var(--text-muted);
    font-size: 12.5px;
    flex-shrink: 0;
}

.profile-field-val {
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

@media (max-width: 768px) {
    .profile-hero-card {
        padding: 20px 16px;
        text-align: center;
    }

    .profile-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .profile-hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-hero-inner .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* 2x2 Clean Mobile Grid for 4 Highlights */
    .profile-highlights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .highlight-box {
        padding: 10px 12px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-box .stat-icon-wrap {
        width: 34px !important;
        height: 34px !important;
    }

    .highlight-box .highlight-val {
        font-size: 13.5px !important;
    }

    .highlight-box .highlight-lbl {
        font-size: 10px !important;
    }

    /* Stack long fields on mobile */
    .profile-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .profile-field-val {
        text-align: left;
        font-size: 13px;
    }
}

/* ==========================================================================
   🏖️ RESPONSIVE LEAVE (CUTI) & ESS MODULE STYLES
   ========================================================================== */

.leave-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.leave-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.leave-filter-card {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.leave-filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.leave-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.leave-filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.leave-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    color: var(--text-main, #1e293b);
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
}

.leave-filter-select:focus {
    border-color: var(--primary, #e52421);
    box-shadow: 0 0 0 3px rgba(229, 36, 33, 0.1);
}

.leave-filter-reset {
    font-size: 12px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    transition: all 0.15s;
}

.leave-filter-reset:hover {
    background: #fee2e2;
}

@media (max-width: 1024px) {
    .leave-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .leave-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .leave-header-bar .btn-primary-imora {
        width: 100%;
        justify-content: center;
    }

    .leave-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .leave-stat-grid .imora-card {
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .leave-stat-grid .imora-card > div:first-child {
        width: 36px !important;
        height: 36px !important;
    }

    .leave-stat-grid .imora-card > div:first-child i {
        width: 18px !important;
        height: 18px !important;
    }

    .leave-stat-grid .imora-card [style*="font-size: 22px"] {
        font-size: 18px !important;
    }

    .leave-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .leave-filter-inputs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .leave-filter-select {
        width: 100%;
        font-size: 12.5px;
        padding: 9px 10px;
    }

    .leave-filter-reset {
        grid-column: span 2;
        justify-content: center;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .leave-stat-grid {
        grid-template-columns: 1fr;
    }

    .leave-filter-inputs {
        grid-template-columns: 1fr;
    }

    .leave-filter-reset {
        grid-column: span 1;
    }
}