:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #171a2b; background: #f5f6fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 1100px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: #fff; }
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 9vw; color: #fff; background: linear-gradient(145deg, #24134f 0%, #5833dc 52%, #8065ff 100%); }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.login-brand::before { width: 420px; height: 420px; right: -180px; top: -130px; }
.login-brand::after { width: 280px; height: 280px; left: -90px; bottom: -130px; }
.brand-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); font-size: 30px; font-weight: 800; }
.eyebrow { margin: 26px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 2px; opacity: .72; }
.purple { color: #6746ed; opacity: 1; }
.login-brand h1 { max-width: 620px; margin: 0; font-size: clamp(38px, 4vw, 64px); line-height: 1.16; }
.brand-copy { max-width: 530px; margin: 24px 0 32px; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.8; }
.feature-list { display: flex; flex-wrap: wrap; gap: 12px; }
.feature-list span { padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: rgba(255,255,255,.1); font-size: 13px; }
.login-panel { display: grid; place-items: center; padding: 60px; background: linear-gradient(160deg, #fbfaff, #f3f1ff); }
.login-card { width: min(440px, 100%); padding: 48px; border: 1px solid #e9e6f6; border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: 0 28px 70px rgba(63,43,130,.12); }
.login-card h2 { margin: 0; font-size: 34px; }
.login-subtitle { margin: 10px 0 34px; color: #8b8fa0; }
label { display: block; margin-top: 22px; color: #515568; font-size: 13px; font-weight: 700; }
input { width: 100%; height: 50px; margin-top: 10px; padding: 0 16px; border: 1px solid #e2e3ec; border-radius: 12px; outline: none; background: #fafafd; transition: .2s; }
input:focus { border-color: #775af1; box-shadow: 0 0 0 4px rgba(119,90,241,.1); background: #fff; }
#loginButton { width: 100%; height: 52px; margin-top: 30px; border: 0; border-radius: 13px; background: linear-gradient(135deg, #7957ff, #5833e8); color: white; font-weight: 800; box-shadow: 0 14px 25px rgba(101,71,245,.24); }
.message { min-height: 20px; margin-top: 16px; color: #d84f62; font-size: 13px; text-align: center; }
.database-tip { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: #f5f3ff; color: #7668a9; font-size: 12px; text-align: center; }
.admin-view { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; background: #17172b; color: white; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; font-size: 18px; font-weight: 800; }
.sidebar-brand b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #6b4cf4; }
nav { display: grid; gap: 8px; }
.nav-item, .logout-button { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: #a9aabd; text-align: left; }
.nav-item:hover, .nav-item.active { background: linear-gradient(90deg, #6748ef, #765cf1); color: white; }
.logout-button { margin-top: auto; }
.workspace { min-width: 0; background: #f5f6fb; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid #e9eaf1; background: white; }
.topbar h2 { margin: 0; font-size: 22px; }.topbar p { margin: 7px 0 0; color: #969aaa; font-size: 12px; }
.admin-profile { display: flex; align-items: center; gap: 12px; font-size: 13px; }.admin-profile b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #eeeaff; color: #6746ed; }
.page-section { padding: 30px 34px; }
.status-banner { margin: 24px 34px 0; padding: 13px 16px; border: 1px solid #f2d191; border-radius: 12px; background: #fff8e9; color: #9a681a; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats-grid article, .panel { border: 1px solid #e8e9f0; border-radius: 18px; background: white; box-shadow: 0 8px 28px rgba(38,34,76,.04); }
.stats-grid article { padding: 22px; }.stats-grid span { color: #818697; font-size: 13px; }.stats-grid strong { display: block; margin: 12px 0 8px; font-size: 32px; }.stats-grid small { color: #aaaebb; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 20px; }.panel { padding: 24px; }.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.panel-title h3 { margin: 0; font-size: 17px; }.panel-title p { margin: 7px 0 0; color: #9a9eac; font-size: 12px; }.panel-title button { border: 0; background: none; color: #6849eb; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }.quick-actions button { height: 72px; border: 1px solid #e3defb; border-radius: 14px; background: #f3f0ff; color: #6547e9; font-weight: 700; }
.table-wrap { margin-top: 22px; overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; }.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid #eff0f5; font-size: 13px; text-align: left; white-space: nowrap; }.data-table th { color: #9296a5; font-weight: 600; }.empty { padding: 60px 10px; color: #a1a5b2; text-align: center; }.tag { display: inline-block; padding: 5px 9px; border-radius: 7px; background: #eef0f6; color: #73798c; font-size: 11px; }.generic-panel { min-height: 560px; }
.tag-pending { background: #fff5e6; color: #d38918; }.tag-confirmed, .tag-available, .tag-active { background: #eaf8ee; color: #3d9a5a; }.tag-cancelled, .tag-rejected, .tag-disabled { background: #fff0f2; color: #d96572; }.tag-completed { background: #eef2ff; color: #5267d8; }.tag-maintenance { background: #fff8e7; color: #a76d14; }
.tag-success { background: #eaf8ee; color: #3d9a5a; }.tag-skipped { background: #fff5e6; color: #d38918; }.tag-failed { background: #fff0f2; color: #d96572; }
.panel-actions { display: flex; align-items: center; gap: 10px; }
.primary-action, .secondary-action, .modal-submit, .mini-button { border: 0; border-radius: 10px; font-weight: 700; transition: .16s ease; }
.primary-action { height: 38px; padding: 0 16px; background: linear-gradient(135deg, #7957ff, #5833e8) !important; color: #fff !important; box-shadow: 0 10px 20px rgba(101,71,245,.18); }
.secondary-action { height: 38px; padding: 0 16px; background: #f3f0ff !important; color: #6547e9 !important; border: 1px solid #e4defd !important; }
.mini-button { height: 30px; margin-right: 6px; padding: 0 10px; background: #f3f0ff; color: #6547e9; font-size: 12px; }
.mini-button.success { background: #eaf8ee; color: #338f51; }.mini-button.danger { background: #fff0f2; color: #d96572; }
.primary-action:hover, .secondary-action:hover, .modal-submit:hover, .mini-button:hover { transform: translateY(-1px); opacity: .9; }
.muted-text { color: #a0a5b3; font-size: 12px; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 30px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,18,38,.42); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: min(86vh, 760px); overflow: auto; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 28px 90px rgba(20,18,48,.22); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head h3 { margin: 0; font-size: 22px; }.modal-head p { margin: 8px 0 0; color: #8d91a2; font-size: 13px; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f2f3f8; color: #6d7284; font-size: 24px; line-height: 1; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.modal-form label { margin: 0; }.modal-form label:nth-child(5) { grid-column: 1 / -1; }
.modal-form input { height: 46px; }
.modal-submit { grid-column: 1 / -1; height: 48px; margin-top: 8px; background: linear-gradient(135deg, #7957ff, #5833e8); color: #fff; box-shadow: 0 12px 24px rgba(101,71,245,.2); }
.import-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.import-summary article { padding: 16px; border: 1px solid #ebeaf3; border-radius: 14px; background: #fafaff; }
.import-summary b { display: block; font-size: 26px; }.import-summary span { color: #8f94a5; font-size: 12px; }
.import-more { margin: 16px 0 0; color: #8f94a5; font-size: 13px; }
@media (max-width: 1180px) { .stats-grid { grid-template-columns: repeat(2,1fr); }.content-grid { grid-template-columns: 1fr; } }
