@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
body { background-color: #f4f7fb; color: #0f172a; height: 100vh; overflow: hidden; font-size: 11.5px; }

.app-wrapper { display: flex; width: 100vw; height: 100vh; overflow: hidden; }
.sidebar-panel { width: 210px; min-width: 210px; background: linear-gradient(180deg, #1e40af 0%, #0ea5e9 100%); color: #ffffff; display: flex; flex-direction: column; transition: width 0.3s ease; z-index: 20; box-shadow: 2px 0 10px rgba(0,0,0,0.05); }
.sidebar-header { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.logo-container { display: flex; align-items: center; gap: 8px; }
.logo-text { font-weight: 800; font-size: 15px; letter-spacing: 0.5px; color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle-btn { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: #ffffff; cursor: pointer; font-size: 10px; padding: 4px 6px; border-radius: 6px; transition: all 0.2s; }
.toggle-btn:hover { background: rgba(255,255,255,0.3); }
.user-summary { padding: 8px 12px; display: flex; align-items: center; gap: 10px; margin: 0 10px 8px 10px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.user-avatar { width: 34px; height: 34px; background: #1e3a8a; border: 2.5px solid #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #ffffff; box-shadow: 0 3px 6px rgba(0,0,0,0.25); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.user-name { font-size: 10.5px; font-weight: 700; color: #ffffff; }
.user-role { font-size: 8.5px; color: #e0f2fe; margin-top: 1px; }
.nav-links { flex-grow: 1; padding: 0 8px; overflow-y: auto; }
.nav-links::-webkit-scrollbar { width: 3px; }
.nav-links::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }
.sidebar-link { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #ffffff; border-radius: 6px; text-align: left; cursor: pointer; font-size: 11.5px; font-weight: 600; margin-bottom: 2px; transition: all 0.2s ease; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.sidebar-link:hover { background-color: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #ffffff; padding-left: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.sidebar-link.active { background: #ffffff; border-color: #ffffff; color: #1e3a8a; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,0.15); text-shadow: none; }
.sidebar-link.active:hover { padding-left: 10px; color: #1e3a8a; }
.sidebar-link i { font-size: 13px; width: 16px; text-align: center; }
.logout-footer { padding: 10px; margin-top: auto; }
.logout-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #ffffff; cursor: pointer; text-align: left; font-size: 11.5px; font-weight: 700; border-radius: 8px; transition: all 0.2s; }
.logout-btn:hover { background-color: rgba(239, 68, 68, 0.3); border-color: rgba(239,68,68,0.5); }
.sidebar-collapsed { width: 65px !important; min-width: 65px !important; }
.sidebar-collapsed .sidebar-text, .sidebar-collapsed .user-summary .user-meta { display: none !important; }
.sidebar-collapsed .sidebar-link { justify-content: center; padding: 8px 0; }
.sidebar-collapsed .sidebar-link:hover { padding-left: 0; }
.sidebar-collapsed .sidebar-link i { margin: 0; }
.sidebar-collapsed .logo-text { display: none; }
.sidebar-collapsed .user-summary { justify-content: center; padding: 6px; }

.main-content { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.top-header { height: 32px !important; min-height: 32px !important; max-height: 32px !important; background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%); border-bottom: 1px solid #38bdf8; display: flex; align-items: center; justify-content: space-between; padding: 0 12px !important; z-index: 999 !important; position: relative; }
.header-title { font-size: 14px; font-weight: 800; color: #1e3a8a; letter-spacing: -0.3px; margin: 0; }
.viewport-body { flex-grow: 1; padding: 12px 16px; overflow-y: auto; }

.form-group { margin-bottom: 10px; }
label { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: #475569; margin-bottom: 3px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 11.5px; outline: none; color: #1e293b; background-color: #ffffff; transition: all 0.2s ease; }
input:focus, select:focus, textarea:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); }
.btn-submit { width: 100%; background: linear-gradient(90deg, #1e3a8a, #0ea5e9); color: #ffffff; font-weight: 700; padding: 7px; border-radius: 6px; border: none; cursor: pointer; font-size: 11.5px; box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2); transition: all 0.2s ease; }
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); }

.table-container { background: #ffffff; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; margin-top: 10px; box-shadow: 0 2px 4px -1px rgba(0,0,0,0.02); }
.table-header-box { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 10.5px; }
th { padding: 7px 10px; font-weight: 700; border-bottom: 1px solid #e2e8f0; text-transform: uppercase; font-size: 8.5px; letter-spacing: 0.5px; color: #475569; }
td { padding: 7px 10px; color: #1e293b; font-weight: 500; }
tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.2s; }
tbody tr:hover { background-color: #f8fafc; }

.hidden { display: none !important; }
.spinner-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.spinner-card { background: white; padding: 16px 24px; border-radius: 10px; text-align: center; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2); }
.spinner-circle { width: 26px; height: 26px; border: 3px solid #e0f2fe; border-top: 3px solid #0ea5e9; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 8px; }
.spinner-text { font-size: 11px; font-weight: 700; color: #1e3a8a; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.badge { padding: 2px 6px; border-radius: 10px; font-size: 8.5px; font-weight: 700; display: inline-block; }
.status-green { background-color: #dcfce7; color: #166534; }
.status-yellow { background-color: #fef08a; color: #854d0e; }
.status-blue { background-color: #e0f2fe; color: #0369a1; }
.status-red { background-color: #fee2e2; color: #991b1b; }

#loginPageWrapper { position: fixed; inset: 0; z-index: 9999; display: flex; width: 100vw; height: 100vh; background-color: #f0f9ff; overflow: hidden; }
.login-left { width: 55%; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.8) 0%, transparent 40%), radial-gradient(circle at 90% 90%, rgba(0,180,255,0.2) 0%, transparent 50%), linear-gradient(135deg, #dbeafe 0%, #7dd3fc 50%, #38bdf8 100%); }
.hex-bg { position: absolute; inset: 0; opacity: 0.1; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="103.92" viewBox="0 0 60 103.92"><path d="M30 0 L60 17.32 L60 51.96 L30 69.28 L0 51.96 L0 17.32 Z" fill="none" stroke="%230284c7" stroke-width="2"/><path d="M30 103.92 L60 86.6 L60 51.96 L30 69.28 L0 51.96 L0 86.6 Z" fill="none" stroke="%230284c7" stroke-width="2"/></svg>'); background-size: 60px 103.92px; z-index: 0; }
.login-separator { width: 10px; background-color: #1d4ed8; height: 100%; z-index: 10; }
.login-right { width: calc(45% - 10px); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #f8fafc; overflow-y: auto; padding: 2rem 0; z-index: 10; }
.login-card { width: 100%; max-width: 380px; background-color: #ffffff; padding: 2rem 1.8rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2); border: 1px solid #e2e8f0; border-top: 5px solid #0ea5e9; margin: 0 auto; }
.custom-input-wrapper { position: relative; width: 100%; margin-bottom: 1rem; }
.custom-input-wrapper label { display: block; font-size: 0.7rem; font-weight: 800; color: #0b132b; letter-spacing: 0.5px; margin-bottom: 0.3rem; text-transform: uppercase; }
.custom-input-wrapper .icon-left { position: absolute; left: 12px; top: 30px; color: #94a3b8; font-size: 14px; z-index: 10; }
.custom-input-wrapper .icon-right { position: absolute; right: 12px; top: 30px; color: #94a3b8; font-size: 14px; cursor: pointer; z-index: 10; }
.custom-input-wrapper input { width: 100% !important; padding: 10px 36px 10px 36px !important; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; color: #1e293b; outline: none; background: #f8fafc; box-sizing: border-box; transition: all 0.2s; }
.custom-input-wrapper input:focus { border-color: #0ea5e9; background: #fff; box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15); }
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear, input[type="password"]::-webkit-reveal { display: none; }
.custom-ribbon { background: linear-gradient(90deg, #0f172a 0%, #1e40af 50%, #1e3a8a 100%); clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0% 50%); border: 2px solid #38bdf8; box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4); padding: 0.5rem 2rem; width: 90%; max-width: 650px; }
.hero-title { font-size: 4.5rem; font-weight: 900; letter-spacing: -2px; line-height: 1; text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(255, 255, 255, 0.8); }
@media (min-width: 768px) { .hero-title { font-size: 5.5rem; } }
.wf-container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; z-index: 10; flex-wrap: nowrap; width: 100%; }
.wf-step { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(180deg, #38bdf8 0%, #1e3a8a 100%); border: 3px solid #bae6fd; box-shadow: 0 5px 15px rgba(0,0,0,0.3), inset 0 3px 6px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; font-size: 10px; font-weight: bold; position: relative; transition: transform 0.3s; }
.wf-step:hover { transform: scale(1.1); }
.wf-step i { font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.wf-label { font-size: 10px; font-weight: 800; color: #0c4a6e; text-align: center; margin-top: 6px; line-height: 1.1; white-space: nowrap; }
.wf-arrow { color: #0284c7; font-size: 20px; opacity: 0.8; filter: drop-shadow(0 2px 2px rgba(255,255,255,0.5)); margin: 0 5px; }
@media (max-width: 1024px) { .login-left, .login-separator { display: none; } .login-right { width: 100%; padding: 1rem; } .login-card { max-width: 100%; padding: 1rem; } }