/* ═══════════════════════════════════════════════════
   MCREST INFOTECH — Global Design System
   Version: 1.0 | PHP Shared Hosting Compatible
═══════════════════════════════════════════════════ */

:root {
  --blue-brand: #1E3A8A;
  --blue-mid: #2451A0;
  --blue-dark: #162D6E;
  --blue-light: #EFF6FF;
  --orange-brand: #F97316;
  --orange-dark: #EA6A0A;
  --orange-light: #FFF7ED;
  --green-brand: #16A34A;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(30,58,138,0.10);
  --shadow-lg: 0 12px 36px rgba(30,58,138,0.15);
  --shadow-xl: 0 24px 60px rgba(30,58,138,0.18);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.5rem;
  --transition: all 0.28s cubic-bezier(0.25,0.8,0.25,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', 'Inter', sans-serif; color: var(--gray-700); background: var(--gray-50); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* Utility */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; border-radius: 100px; transition: var(--transition); cursor: pointer; border: none; font-family: inherit; }
.btn-lg { padding: 1rem 2rem; font-size: 0.9375rem; }
.btn-md { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-primary { background: var(--blue-brand); color: #fff; box-shadow: 0 4px 16px rgba(30,58,138,0.3); }
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(30,58,138,0.4); }
.btn-orange { background: var(--orange-brand); color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,0.3); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(249,115,22,0.4); }
.btn-outline { background: transparent; color: var(--blue-brand); border: 2px solid var(--blue-brand); }
.btn-outline:hover { background: var(--blue-brand); color: #fff; transform: translateY(-3px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.25); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }

/* Cards */
.card { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-100); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }

/* Form elements */
.form-input { width: 100%; padding: 0.875rem 1.25rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); font-family: inherit; font-size: 0.9375rem; color: var(--gray-700); background: var(--white); transition: var(--transition); outline: none; }
.form-input:focus { border-color: var(--orange-brand); box-shadow: 0 0 0 3px rgba(249,115,22,0.15); }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-600); margin-bottom: 0.5rem; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.25rem; padding-right: 2.5rem; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-blue { background: var(--blue-light); color: var(--blue-brand); }
.badge-orange { background: var(--orange-light); color: var(--orange-dark); }
.badge-green { background: #F0FDF4; color: var(--green-brand); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }

/* Page Hero */
.page-hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-brand) 60%, #1d4ed8 100%); padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(249,115,22,0.12) 0%, transparent 60%); }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.page-hero .breadcrumb a:hover { color: var(--orange-brand); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: #fff; line-height: 1.1; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.125rem; line-height: 1.7; max-width: 42rem; margin-top: 1rem; }

/* Section heading */
.section-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-brand); display: block; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--gray-900); line-height: 1.15; }
.section-sub { font-size: 1.125rem; color: var(--gray-500); line-height: 1.7; max-width: 42rem; margin: 1rem auto 0; }

/* Glassmorphism header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(226,232,240,0.6); transition: var(--transition); }
.nav-link { font-size: 0.9rem; font-weight: 600; color: var(--gray-600); padding: 0.25rem 0; transition: color 0.2s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--orange-brand); transition: width 0.25s ease; border-radius: 2px; }
.nav-link:hover, .nav-link.active { color: var(--blue-brand); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.float-anim { animation: float 6s ease-in-out infinite; }
.marquee-anim { animation: marquee 32s linear infinite; }

/* ERP / Dashboard */
.erp-sidebar { width: 260px; min-height: 100vh; background: var(--blue-dark); flex-shrink: 0; }
.erp-sidebar-link { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 1.25rem; color: rgba(255,255,255,0.65); font-size: 0.9rem; font-weight: 500; border-radius: 0.5rem; margin: 0.125rem 0.5rem; transition: var(--transition); cursor: pointer; }
.erp-sidebar-link:hover, .erp-sidebar-link.active { background: rgba(255,255,255,0.12); color: #fff; }
.erp-sidebar-link.active { background: var(--orange-brand); color: #fff; }
.erp-stat-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; border: 1.5px solid var(--gray-100); box-shadow: var(--shadow-sm); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { background: var(--gray-50); padding: 0.875rem 1rem; text-align: left; font-weight: 700; color: var(--gray-600); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1.5px solid var(--gray-200); }
.data-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--gray-50); }

/* Status */
.status-present { background: #F0FDF4; color: #15803D; }
.status-absent { background: #FEF2F2; color: #DC2626; }
.status-late { background: #FFFBEB; color: #D97706; }
.status-leave { background: #F5F3FF; color: #7C3AED; }
.status-halfday { background: #EFF6FF; color: #2563EB; }

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .erp-sidebar { width: 100%; min-height: auto; }
  .container { padding: 0 1rem; }
}
