*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Tahoma, Arial, sans-serif;
  background:#f3f6fb;
  color:#111827;
}

.login-body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:linear-gradient(135deg,#0f172a,#1e3a8a);
}

.login-card{
  background:white;
  width:100%;
  max-width:420px;
  padding:32px;
  border-radius:26px;
  text-align:center;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.login-icon{
  font-size:58px;
}

.login-card h1{
  margin:12px 0 8px;
  color:#0f172a;
  font-size:27px;
}

.login-card p{
  color:#64748b;
  margin-bottom:20px;
}

input, textarea, select{
  width:100%;
  padding:14px;
  border:1px solid #d1d5db;
  border-radius:14px;
  font-size:16px;
  margin:8px 0;
  font-family:inherit;
}

button, .btn{
  display:inline-block;
  border:0;
  border-radius:14px;
  padding:13px 18px;
  background:#2563eb;
  color:white;
  text-decoration:none;
  font-weight:bold;
  cursor:pointer;
  font-family:inherit;
}

button:hover, .btn:hover{
  opacity:.9;
}

.alert{
  padding:12px;
  border-radius:12px;
  margin:12px 0;
  font-weight:bold;
}

.alert.error{
  background:#fee2e2;
  color:#b91c1c;
}

.alert.success{
  background:#dcfce7;
  color:#166534;
}

.topbar{
  background:linear-gradient(135deg,#0f172a,#1e3a8a);
  color:white;
  padding:28px 7%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
}

.topbar h1{
  margin:0;
  font-size:28px;
}

.topbar p{
  margin:6px 0 0;
  opacity:.9;
}

.container{
  max-width:1100px;
  margin:28px auto;
  padding:0 15px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}

.card{
  background:white;
  border-radius:24px;
  padding:24px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.card-icon{
  font-size:44px;
}

.card h2{
  margin:12px 0 8px;
}

.card p{
  color:#64748b;
  line-height:1.7;
}

.green{
  background:#16a34a !important;
}

.dark{
  background:#0f172a !important;
}

.warning{
  background:#fef3c7;
  color:#92400e;
}

.preview-box{
  display:none;
  margin-top:25px;
  background:white;
  border-radius:24px;
  padding:20px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.preview-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.search{
  margin:15px 0;
}

.table-wrap{
  overflow:auto;
}

.table-wrap table{
  width:100%;
  border-collapse:collapse;
  background:white;
}

.table-wrap th{
  background:#1e3a8a;
  color:white;
}

.table-wrap th,
.table-wrap td{
  border:1px solid #ddd;
  padding:10px;
  text-align:center;
  white-space:nowrap;
}

.table-wrap tr:nth-child(even){
  background:#f8fafc;
}

.footer{
  text-align:center;
  color:#64748b;
  padding:25px;
}

@media(max-width:600px){
  .topbar{
    text-align:center;
    justify-content:center;
  }

  .topbar h1{
    font-size:23px;
  }
}

.notice-box{
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fed7aa;
  border-radius:18px;
  padding:16px;
  margin-bottom:20px;
  font-weight:bold;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}
