:root{
  --brand-primary:#2563eb;
  --brand-primary-dark:#1d4ed8;
  --brand-bg:#f4f6fb;
  --brand-card:#ffffff;
  --brand-text:#111827;
  --brand-muted:#6b7280;
  --brand-border:#e5e7eb;
  --brand-success-bg:#dcfce7;
  --brand-success-text:#166534;
  --brand-warning-bg:#fef3c7;
  --brand-warning-text:#92400e;
  --brand-danger-bg:#fee2e2;
  --brand-danger-text:#991b1b;
  --sidebar-bg:#0f172a;
  --sidebar-link:#cbd5e1;
  --sidebar-link-active:#ffffff;
  --sidebar-link-active-bg:rgba(255,255,255,.08);
  --shadow-soft:0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:10px;
}

body{
  background:var(--brand-bg);
  color:var(--brand-text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

a{
  text-decoration:none;
}

.auth-page{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(14,165,233,.10), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.auth-card{
  background:#fff;
  border:none;
  border-radius:24px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
}

.auth-logo{
  width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--brand-primary), #0ea5e9);
  color:#fff;
  font-weight:700;
  font-size:20px;
}

.auth-title{
  font-size:1.75rem;
  font-weight:700;
  margin-bottom:.35rem;
}

.auth-subtitle{
  color:var(--brand-muted);
}

.form-control,
.form-select{
  border-radius:12px;
  border:1px solid var(--brand-border);
  min-height:46px;
}

.form-control:focus,
.form-select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 .2rem rgba(37,99,235,.12);
}

.btn-primary{
  background:var(--brand-primary);
  border-color:var(--brand-primary);
  border-radius:12px;
  font-weight:600;
}

.btn-primary:hover{
  background:var(--brand-primary-dark);
  border-color:var(--brand-primary-dark);
}

.admin-shell{
  min-height:100vh;
}

.sidebar{
  width:270px;
  min-height:100vh;
  background:var(--sidebar-bg);
  color:#fff;
  position:fixed;
  left:0;
  top:0;
  padding:22px 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:28px;
}

.brand-badge{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--brand-primary), #0ea5e9);
  color:#fff;
  font-weight:700;
}

.brand-text h5{
  margin:0;
  font-size:1rem;
  font-weight:700;
}

.brand-text span{
  color:#94a3b8;
  font-size:.875rem;
}

.sidebar .nav-link{
  color:var(--sidebar-link);
  border-radius:12px;
  padding:12px 14px;
  font-weight:500;
  margin-bottom:6px;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover{
  color:var(--sidebar-link-active);
  background:var(--sidebar-link-active-bg);
}

.page-wrap{
  margin-left:270px;
  padding:24px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}

.page-title{
  font-size:1.75rem;
  font-weight:700;
  margin:0;
}

.page-subtitle{
  color:var(--brand-muted);
  margin-top:4px;
}

.user-chip{
  background:#fff;
  border:1px solid var(--brand-border);
  border-radius:999px;
  padding:10px 14px;
  box-shadow:var(--shadow-soft);
  font-weight:500;
}

.card-ui{
  background:var(--brand-card);
  border:1px solid var(--brand-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
}

.card-ui .card-header{
  background:transparent;
  border-bottom:1px solid #f1f5f9;
  padding:18px 20px;
}

.card-ui .card-body{
  padding:20px;
}

.stat-card{
  padding:22px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--brand-border);
  box-shadow:var(--shadow-soft);
}

.stat-label{
  color:var(--brand-muted);
  font-size:.95rem;
  margin-bottom:10px;
}

.stat-value{
  font-size:2rem;
  font-weight:700;
  margin:0;
}

.toolbar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.table-wrap{
  overflow:auto;
}

.table thead th{
  background:#f8fafc;
  color:#475569;
  font-weight:600;
  border-bottom:1px solid var(--brand-border);
}

.table td,
.table th{
  vertical-align:middle;
  white-space:nowrap;
}

.badge-soft-success{
  background:var(--brand-success-bg);
  color:var(--brand-success-text);
  padding:.55rem .8rem;
  border-radius:999px;
  font-weight:600;
}

.badge-soft-warning{
  background:var(--brand-warning-bg);
  color:var(--brand-warning-text);
  padding:.55rem .8rem;
  border-radius:999px;
  font-weight:600;
}

.badge-soft-danger{
  background:var(--brand-danger-bg);
  color:var(--brand-danger-text);
  padding:.55rem .8rem;
  border-radius:999px;
  font-weight:600;
}

.schedule-block{
  border:1px solid #dbeafe;
  background:#f8fbff;
  border-radius:16px;
  padding:18px;
  margin-bottom:16px;
}

.schedule-block-title{
  font-weight:700;
  margin-bottom:14px;
}

.worker-check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.worker-check{
  border:1px solid var(--brand-border);
  border-radius:12px;
  padding:12px 14px;
  background:#fff;
}

.invoice-day{
  border:1px solid var(--brand-border);
  border-radius:16px;
  padding:16px;
  background:#fff;
  margin-bottom:16px;
}

.invoice-day h6{
  margin-bottom:14px;
  font-weight:700;
}

.invoice-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid #f1f5f9;
}

.invoice-line:last-child{
  border-bottom:none;
}

.summary-box{
  background:#0f172a;
  color:#fff;
  border-radius:18px;
  padding:22px;
}

.summary-box .summary-row{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
}

.summary-box .summary-total{
  border-top:1px solid rgba(255,255,255,.15);
  padding-top:14px;
  margin-top:14px;
  font-size:1.15rem;
  font-weight:700;
}

@media (max-width: 991.98px){
  .sidebar{
    position:relative;
    width:100%;
    min-height:auto;
  }

  .page-wrap{
    margin-left:0;
  }

  .worker-check-grid{
    grid-template-columns:1fr;
  }
}




:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #dbe3ee;
  --card-bg: rgba(255, 255, 255, 0.96);
}

body.login-page {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 25%),
    radial-gradient(circle at bottom left, rgba(96, 165, 250, 0.14), transparent 25%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
}

.login-wrapper {
  min-height: 100vh;
}

.login-card {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
  overflow: hidden;
}

.login-brand {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.form-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.custom-input-group .input-group-text {
  background: #fff;
  border: 1px solid var(--border);
  border-right: 0;
  color: #64748b;
  border-radius: 14px 0 0 14px;
  padding-left: 14px;
  padding-right: 14px;
}

.custom-input-group .form-control {
  border: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  padding: 14px 12px;
  font-size: 15px;
  box-shadow: none;
}

.custom-input-group .form-control:focus {
  box-shadow: none;
}

.password-toggle {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 0;
  color: #64748b;
  border-radius: 0 14px 14px 0;
  min-width: 54px;
}

.password-toggle:hover {
  background: #f8fafc;
  color: var(--text-main);
}

.custom-input-group:focus-within .input-group-text,
.custom-input-group:focus-within .form-control,
.custom-input-group:focus-within .password-toggle {
  border-color: rgba(37, 99, 235, 0.65);
}

.form-check-label {
  color: var(--text-muted);
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.login-btn {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border: none;
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.login-footer small {
  color: var(--text-muted);
}

@media (max-width: 575.98px) {
  .login-card .card-body {
    padding: 28px 22px !important;
  }

  .login-title {
    font-size: 26px;
  }
}


body {
  margin: 0;
  background: #f5f7fb;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
}

.layout-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: #111827;
  color: #fff;
  padding: 24px 18px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.brand-box {
  margin-bottom: 28px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.brand-text h5 {
  margin: 0;
  font-size: 22px;
  color: #fff;
}

.brand-text small {
  color: #94a3b8;
  font-size: 14px;
}

.sidebar .nav-link {
  color: #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: #1f2937;
  color: #fff;
}

.main-content {
  margin-left: 270px;
  width: calc(100% - 270px);
}

.topbar-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
}

.page-subtitle {
  color: #64748b;
  font-size: 16px;
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  border-radius: 999px;
}

.admin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.ui-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.ui-card .card-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 24px;
}

.ui-card .card-body {
  padding: 24px;
}

.form-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
}

.worker-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
}

.worker-table td {
  padding: 18px 20px;
}

.status-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.search-box-wrap {
  position: relative;
  width: 360px;
  max-width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 2;
}

.search-input {
  padding-left: 42px;
  height: 46px;
}

.no-results {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}

.no-results i {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 991px) {
  .layout-shell {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

.property-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
  white-space: nowrap;
}

.property-table td {
  padding: 18px 20px;
  vertical-align: middle;
}