/* ==========================================================
   HAMIX FLAGSHIP DESIGN SYSTEM - PREMIUM ENTERPRISE V2
   Architecture: Executive Corporate / Fortune 500
   Colors: Midnight Navy (#0B1F3A), Premium Gold (#D4AF37)
========================================================== */

:root {
    --primary:          #0B1F3A; /* Midnight Navy */
    --primary-dark:     #050C16;
    --primary-light:    #162E4D;
    --secondary:        #D4AF37; /* Premium Gold */
    --secondary-hover:  #B8962E;
    --secondary-light:  rgba(212, 175, 55, 0.1);
    
    --text-main:        #1E293B;
    --text-muted:       #64748B;
    --text-white:       #FFFFFF;
    
    --bg-light:         #FFFFFF;
    --bg-gray:          #F5F7FA;
    --bg-dark:          #0B1F3A;
    --bg-dark-alt:      #050C16;

    --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast:   all 0.3s ease;

    --shadow-premium:   0 20px 50px -12px rgba(11, 31, 58, 0.15);
    --shadow-card:      0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-glow:      0 0 30px rgba(212, 175, 55, 0.25);

    --radius-lg:        12px;
    --radius-md:        8px;
    --radius-sm:        4px;

    --hero-bg:          url('assets/images/security/banner.jpg');
}

/* ----------------------------------------------------------
   BASE STYLES
---------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; color: var(--primary); line-height: 1.2; letter-spacing: -0.01em; }
p { margin-bottom: 1.5rem; }
a { text-decoration: none; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ----------------------------------------------------------
   TOP BAR
---------------------------------------------------------- */
.top-bar {
    background: var(--primary-dark);
    color: #FFF;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
.top-info { display: flex; gap: 30px; opacity: 0.8; }
.top-info i { color: var(--secondary); margin-right: 8px; }

.emergency-btn {
    background: var(--secondary);
    color: var(--primary);
    padding: 8px 20px;
    font-weight: 800;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

/* ----------------------------------------------------------
   HEADER & NAV
---------------------------------------------------------- */
header {
    background: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-premium);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo-wrap { display: flex; align-items: center; gap: 15px; }
.logo-wrap img { height: 55px; }
.logo-wrap .logo-text h2 { color: #FFF; font-size: 18px; line-height: 1; margin-bottom: 4px; text-transform: uppercase; }
.logo-wrap .logo-text p { color: var(--secondary); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

nav ul { display: flex; gap: 35px; }
nav a { color: #FFF; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; }
nav a:hover { color: var(--secondary); opacity: 1; }

.btn-quote {
    background: var(--secondary);
    color: var(--primary);
    padding: 12px 25px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------
   HERO SECTION
---------------------------------------------------------- */
.hero {
    height: 90vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--primary);
    color: #FFF;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(11, 31, 58, 0.75), rgba(11, 31, 58, 0.9)), var(--hero-bg);
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 80px;
}

.hero h1 { font-size: 72px; line-height: 1.1; color: #FFF; margin-bottom: 30px; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--secondary); }
.hero p { font-size: 20px; opacity: 0.85; margin-bottom: 45px; max-width: 650px; }

.hero-btns { display: flex; gap: 20px; margin-bottom: 50px; }

.hero-features { display: flex; gap: 30px; }
.hero-features span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.hero-features i { color: var(--secondary); }

.hero-stats-box {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px;
    border-radius: var(--radius-lg);
}

.hero-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hero-stat-item i { color: var(--secondary); margin-bottom: 15px; width: 32px; height: 32px; }
.hero-stat-item h3 { font-size: 32px; color: #FFF; margin-bottom: 5px; }
.hero-stat-item p { font-size: 11px; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; margin: 0; }

.scroll-down {
    position: absolute;
    bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 24px; height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px; height: 8px;
    background: var(--secondary);
    position: absolute;
    top: 8px; left: 50%; transform: translateX(-50%);
    border-radius: 2px;
    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ----------------------------------------------------------
   TICKER SECTION
---------------------------------------------------------- */
.ticker-section { padding: 40px 0; background: var(--bg-gray); border-bottom: 1px solid #EEE; overflow: hidden; }
.ticker-label { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); margin-bottom: 25px; }

.ticker-track {
    display: flex;
    gap: 100px;
    align-items: center;
    width: max-content;
    animation: tickerMove 30s linear infinite;
}

@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-track img { height: 35px; opacity: 0.5; filter: grayscale(1); transition: var(--transition-fast); }
.ticker-track img:hover { opacity: 1; filter: grayscale(0); }

/* ----------------------------------------------------------
   REUSABLE SECTION COMPONENTS
---------------------------------------------------------- */
.section { padding: 120px 0; }
.section.dark { background: var(--bg-dark); color: #FFF; }
.section.dark-alt { background: var(--bg-dark-alt); color: #FFF; }

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    padding-left: 50px;
}

.badge::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 35px; height: 1px;
    background: var(--secondary);
}

.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 48px; color: inherit; }
.section.dark h2 { color: #FFF; }

.bg-gray { background: var(--bg-gray); }

/* ----------------------------------------------------------
   MISSION & VISION
---------------------------------------------------------- */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: #FFF;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-premium);
    border-bottom: 4px solid transparent;
}

.mv-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary);
}

.mv-icon { font-size: 48px; margin-bottom: 25px; color: var(--secondary); }
.mv-icon i { width: 48px; height: 48px; }
.mv-card h3 { font-size: 28px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.mv-card p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin: 0; }

/* ----------------------------------------------------------
   ABOUT SECTION
---------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }

.about-images { display: flex; gap: 25px; align-items: flex-start; }
.img-large { flex: 1; }
.img-large img { border-radius: var(--radius-lg); width: 100%; height: 500px; object-fit: cover; }

.img-small-wrap { display: flex; flex-direction: column; gap: 25px; width: 180px; margin-top: 50px; }
.img-small img { border-radius: var(--radius-md); height: 140px; width: 100%; object-fit: cover; }

.about-text h2 { font-size: 42px; margin-bottom: 30px; }
.about-text p { font-size: 17px; color: var(--text-muted); margin-bottom: 35px; }

.check-list { margin-bottom: 40px; }
.check-list li { font-weight: 700; font-size: 15px; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.check-list li i { color: var(--secondary); width: 20px; height: 20px; }

.btn-link { font-weight: 800; text-transform: uppercase; font-size: 13px; color: var(--primary); letter-spacing: 1px; }
.btn-link i { margin-left: 10px; transition: var(--transition-fast); }
.btn-link:hover i { transform: translateX(5px); }

/* ----------------------------------------------------------
   SERVICES SECTION
---------------------------------------------------------- */
.services-wrapper { position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.service-card-v2 {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    transition: var(--transition-premium);
}

.service-card-v2:hover {
    background: var(--secondary);
    transform: translateY(-15px);
    border-color: var(--secondary);
}

.serv-icon { font-size: 42px; margin-bottom: 30px; color: var(--secondary); }
.serv-icon i { width: 42px; height: 42px; }
.service-card-v2 h3 { color: #FFF; font-size: 24px; margin-bottom: 20px; }
.service-card-v2 p { color: rgba(255,255,255,0.6); font-size: 15px; margin: 0; }

.service-card-v2:hover h3 { color: var(--primary); }
.service-card-v2:hover p { color: var(--primary); opacity: 0.8; }
.service-card-v2:hover .serv-icon { color: var(--primary); }

.services-footer { text-align: center; margin-top: 70px; }

/* ----------------------------------------------------------
   WHY CHOOSE US
---------------------------------------------------------- */
.why-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 100px; align-items: center; }
.why-content h2 { font-size: 44px; margin-bottom: 50px; }

.why-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.why-feat-item { display: flex; gap: 20px; }
.why-feat-icon { width: 50px; height: 50px; background: var(--bg-gray); color: var(--secondary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-feat-icon i { width: 24px; height: 24px; }
.why-feat-item h4 { font-size: 18px; margin-bottom: 8px; }
.why-feat-item p { font-size: 14px; color: var(--text-muted); margin: 0; }

.why-image { position: relative; }
.why-image img { border-radius: var(--radius-lg); height: 600px; width: 100%; object-fit: cover; }

.experience-card {
    position: absolute;
    top: 40px; right: -40px;
    background: var(--primary);
    color: #FFF;
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 240px;
    box-shadow: var(--shadow-premium);
}

.experience-card .stars { color: var(--secondary); margin-bottom: 15px; }
.experience-card h3 { color: #FFF; font-size: 36px; margin-bottom: 0; }
.experience-card p { font-size: 12px; font-weight: 700; text-transform: uppercase; opacity: 0.6; margin-bottom: 20px; }
.experience-card hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }

/* ----------------------------------------------------------
   INDUSTRIES
---------------------------------------------------------- */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.industry-card-v2 {
    height: 180px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    transition: var(--transition-premium);
    border: 1px solid rgba(255,255,255,0.05);
}

.industry-card-v2:hover { background: var(--secondary); transform: scale(1.05); }
.ind-icon { color: var(--secondary); margin-bottom: 15px; }
.ind-icon i { width: 32px; height: 32px; }
.industry-card-v2:hover .ind-icon { color: var(--primary); }
.industry-card-v2 h3 { color: #FFF; font-size: 15px; font-weight: 600; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.industry-card-v2:hover h3 { color: var(--primary); }

/* ----------------------------------------------------------
   ATTENDANCE SHOWCASE
---------------------------------------------------------- */
.attendance-showcase { background: var(--bg-gray); padding: 150px 0; }
.attendance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.attendance-content h2 { font-size: 48px; margin-bottom: 30px; }
.attendance-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }

.attendance-features { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 50px; }
.att-feat { display: flex; align-items: center; gap: 15px; }
.att-icon { width: 45px; height: 45px; background: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--secondary); box-shadow: var(--shadow-card); }
.att-icon i { width: 20px; height: 20px; }
.att-feat p { margin: 0; font-size: 14px; font-weight: 700; color: var(--primary); }

.attendance-visual { position: relative; }
.mockup-container { position: relative; height: 500px; }
.laptop-mockup { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-premium); }
.mobile-mockup { position: absolute; bottom: -50px; right: -20px; width: 220px; border-radius: 30px; border: 8px solid #333; box-shadow: var(--shadow-premium); }

/* ----------------------------------------------------------
   LEADERSHIP
---------------------------------------------------------- */
.leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.leader-card-v2 { position: relative; overflow: hidden; border-radius: var(--radius-lg); height: 500px; }
.leader-card-v2 img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-premium); }
.leader-card-v2:hover img { transform: scale(1.1); }

.leader-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; padding: 40px;
    background: linear-gradient(transparent, var(--primary));
    color: #FFF;
}

.leader-overlay h3 { color: #FFF; font-size: 24px; margin-bottom: 5px; }
.leader-overlay p { color: var(--secondary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin: 0; }

/* ----------------------------------------------------------
   CTA BANNER
---------------------------------------------------------- */
.cta-banner { background: var(--secondary); padding: 80px 0; }
.cta-flex { display: flex; justify-content: space-between; align-items: center; }
.cta-text h2 { font-size: 42px; margin-bottom: 10px; color: var(--primary); }
.cta-text p { font-size: 20px; font-weight: 600; color: var(--primary); opacity: 0.8; margin: 0; }

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
.footer-contact { background: var(--primary-dark); padding: 120px 0 40px; color: #FFF; }
.footer-main-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1.2fr; gap: 60px; margin-bottom: 80px; }

.footer-brand p { font-size: 15px; opacity: 0.6; margin: 30px 0; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFF; font-size: 18px; }
.social-links a:hover { background: var(--secondary); color: var(--primary); }

.footer-main-grid h4 { color: #FFF; font-size: 18px; margin-bottom: 30px; position: relative; }
.footer-main-grid h4::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 30px; height: 2px; background: var(--secondary); }

.footer-main-grid ul li { margin-bottom: 15px; }
.footer-main-grid ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-main-grid ul li a:hover { color: var(--secondary); padding-left: 8px; }

.footer-contact-col p { font-size: 14px; opacity: 0.6; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; }
.footer-contact-col i { color: var(--secondary); width: 18px; height: 18px; margin-top: 2px; }

.footer-legal { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; display: flex; justify-content: space-between; font-size: 13px; opacity: 0.5; }
.legal-links { display: flex; gap: 30px; }
.legal-links a { color: #FFF; }

/* ----------------------------------------------------------
   ANIMATIONS & REVEAL
---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: var(--transition-premium); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* ----------------------------------------------------------
   RESPONSIVENESS
---------------------------------------------------------- */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
    .hero h1 { font-size: 54px; }
    .about-grid, .why-layout, .attendance-grid { gap: 50px; }
    .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-flex { flex-direction: column; gap: 20px; }
    nav ul { gap: 20px; }
    .hero-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 42px; }
    .about-grid, .why-layout, .attendance-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: 1fr 1fr; }
    .leadership-grid { grid-template-columns: 1fr; }
    .cta-flex { flex-direction: column; text-align: center; gap: 30px; }
    .footer-main-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.btn {
    padding: 18px 40px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: none;
    transition: var(--transition-premium);
}

.btn-gold { background: var(--secondary); color: var(--primary); box-shadow: var(--shadow-glow); }
.btn-gold:hover { background: var(--secondary-hover); transform: translateY(-5px); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4); }

.btn-outline { background: transparent; border: 2px solid #FFF; color: #FFF; }
.btn-outline:hover { background: #FFF; color: var(--primary); }

.btn-attendance-nav {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 18px !important;
    font-size: 11px !important;
    margin-left: 15px;
}

.btn-attendance-nav i { width: 14px; height: 14px; }

.icon-sm { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }
.icon-lg { width: 48px; height: 48px; }
.icon-md { width: 32px; height: 32px; }

/* ----------------------------------------------------------
   GUARD PORTAL MODAL
---------------------------------------------------------- */
.portal-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 12, 22, 0.95);
    z-index: 2000;
    display: none; /* Controlled by JS */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.portal-container {
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    background: #FFF;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-modal.active .portal-container {
    transform: translateY(0);
}

.portal-header {
    background: var(--primary);
    color: #FFF;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-logo { display: flex; align-items: center; gap: 20px; }
.portal-logo h2 { color: #FFF; font-size: 22px; margin-bottom: 2px; }
.portal-logo p { color: var(--secondary); font-size: 11px; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: 1px; }

.portal-nav { display: flex; gap: 10px; }
.p-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-nav-btn i { width: 16px; height: 16px; }
.p-nav-btn:hover, .p-nav-btn.active { color: #FFF; background: rgba(255,255,255,0.1); }
.p-nav-btn.active { color: var(--secondary); background: rgba(212, 175, 55, 0.1); }

.portal-close {
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
}
.portal-close:hover { opacity: 1; color: var(--secondary); }

.portal-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: var(--bg-gray);
}

.p-tab { display: none; animation: fadeIn 0.4s ease; }
.p-tab.active { display: block; }

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

/* Dashboard Stats */
.p-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.p-stat-card {
    background: #FFF;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 20px;
}

.p-stat-card i {
    width: 45px; height: 45px;
    background: var(--bg-gray);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-stat-card.success i { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.p-stat-card.danger i { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.p-stat-card.warning i { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.p-stat-info h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 5px; }
.p-stat-info p { font-size: 28px; font-weight: 800; color: var(--primary); margin: 0; }

/* Tables */
.p-table-wrap {
    background: #FFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

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

.p-table th {
    background: var(--primary);
    color: #FFF;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 25px;
}

.p-table td {
    padding: 15px 25px;
    border-bottom: 1px solid #EEE;
    font-size: 14px;
    color: var(--text-main);
}

.p-table tr:last-child td { border-bottom: none; }
.p-table tr:hover { background: var(--bg-gray); }

/* Badges & Actions */
.p-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.p-badge.present { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.p-badge.absent { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.p-badge.leave { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.p-badge.pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.p-btn-sm {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid #DDD;
    background: #FFF;
    transition: var(--transition-fast);
}
.p-btn-sm:hover { background: var(--primary); color: #FFF; border-color: var(--primary); }
.p-btn-sm.p-btn-in { background: #10b981; color: #FFF; border-color: #10b981; }
.p-btn-sm.p-btn-out { background: #ef4444; color: #FFF; border-color: #ef4444; }

/* Controls */
.p-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.p-search { position: relative; width: 300px; }
.p-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 14px; height: 14px; }
.p-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: var(--radius-md);
    border: 1px solid #DDD;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.p-filters { display: flex; gap: 15px; }
.p-filters input, .p-filters select {
    padding: 10px 15px;
    border-radius: var(--radius-md);
    border: 1px solid #DDD;
    font-family: inherit;
    font-size: 13px;
}

.p-report-config { margin-bottom: 40px; }
.p-report-card { background: #FFF; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.p-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 25px 0 35px; }
.p-form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; }
.p-form-group input, .p-form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    border: 1px solid #DDD;
}

.p-report-actions { display: flex; gap: 20px; }

/* Mobile Nav Link */
.nav-portal-link { color: var(--secondary) !important; font-weight: 800 !important; }
