
:root {
    --primary: #0D47A1;
    --accent: #1976D2;
    --background: #F4F7FC;
    --text: #172B4D;
    --muted: #718096;
    --border: #E5EAF2;
    --white: #FFFFFF;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
  }
  
  button, input {
    font: inherit;
  }
  
  button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  .app-container {
    min-height: 100vh;
  }
  
  .hidden {
    display: none !important;
  }
  
  .login-page {
    min-height: 100vh;
    padding: 44px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .login-brand {
    text-align: center;
    margin-bottom: 25px;
  }
  
  .brand-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #42A5F5);
    border-radius: 22px;
    color: white;
    font-size: 35px;
    font-weight: 800;
    box-shadow: 0 10px 25px #0D47A126;
  }
  
  .online-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 30px;
    background: #E8F5E9;
    color: #238347;
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
  }
  
  .online-badge span {
    width: 7px;
    height: 7px;
    background: #32A852;
    border-radius: 50%;
  }
  
  .login-brand h1 {
    font-size: 27px;
    margin: 15px 0 7px;
    color: var(--primary);
  }
  
  .login-brand p {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
  }
  
  .login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border: 1px solid #EDF0F6;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 35px #23395B0D;
  }
  
  .login-card h2 {
    font-size: 22px;
    margin: 0 0 8px;
  }
  
  .muted {
    color: var(--muted);
    line-height: 1.6;
  }
  
  .login-card > .muted {
    margin: 0 0 25px;
  }
  
  label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    margin: 17px 0 9px;
  }
  
  input {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #DCE4EF;
    border-radius: 10px;
    outline: none;
    background: #FBFCFE;
    color: var(--text);
  }
  
  input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #1976D21A;
  }
  
  .password-wrap {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .password-wrap input {
    padding-right: 58px;
  }
  
  .password-toggle {
    position: absolute;
    right: 9px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 9px;
  }
  
  .btn {
    border: 0;
    border-radius: 10px;
    padding: 13px 17px;
    font-weight: 750;
    min-height: 46px;
    transition: opacity .15s, transform .15s;
  }
  
  .btn:active {
    transform: scale(.98);
  }
  
  .btn:disabled {
    opacity: .5;
    cursor: not-allowed;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 5px 13px #0D47A123;
  }
  
  .btn-outline {
    color: var(--primary);
    background: white;
    border: 1px solid #B7CCE8;
  }
  
  .full-width {
    width: 100%;
    margin-top: 23px;
  }
  
  .forgot {
    margin: 20px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
  }
  
  .message {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
  }
  
  .message.error {
    color: #C62828;
  }
  
  .message.success {
    color: #238347;
  }
  
  .login-page footer {
    margin-top: 25px;
    text-align: center;
    color: #8995A7;
    font-size: 11px;
  }
  
  .topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    min-height: 70px;
    padding: 13px max(20px, calc((100% - 1040px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  
  .topbar strong {
    display: block;
    font-size: 16px;
    margin-top: 5px;
  }
  
  .small-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 800;
  }
  
  .top-actions {
    display: flex;
    gap: 8px;
  }
  
  .icon-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: var(--primary);
    font-weight: 700;
  }
  
  .icon-button.danger {
    color: #C62828;
  }
  
  .page-content {
    max-width: 1040px;
    margin: 0 auto;
    padding: 30px 22px;
  }
  
  .welcome-heading h1 {
    font-size: 27px;
    margin: 14px 0 4px;
  }
  
  .welcome-heading > p {
    margin-top: 0;
  }
  
  .profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding: 25px;
    color: white;
    background: linear-gradient(120deg, #0D47A1, #1976D2 72%, #42A5F5);
    border-radius: 18px;
    box-shadow: 0 12px 24px #0D47A120;
  }
  
  .avatar {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid #FFFFFF75;
    background: #FFFFFF24;
    font-size: 28px;
    font-weight: 800;
  }
  
  .profile-caption {
    font-size: 10px;
    letter-spacing: 1px;
    color: #D6E9FF;
  }
  
  .profile-info h2 {
    font-size: 20px;
    margin: 6px 0 10px;
    overflow-wrap: anywhere;
  }
  
  .profile-info p {
    margin: 5px 0;
    font-size: 12px;
    color: #E4F0FF;
    overflow-wrap: anywhere;
  }
  
  .date-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 21px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-top: 18px;
  }
  
  .date-panel span, .date-panel strong {
    display: block;
  }
  
  .date-panel strong {
    margin-top: 6px;
  }
  
  .clock {
    color: var(--primary);
    font-size: 21px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  
  .attendance-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    margin-top: 20px;
  }
  
  .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .section-heading h2, .menu-section h2 {
    margin: 0;
    font-size: 18px;
  }
  
  .section-heading p {
    margin: 5px 0 0;
    font-size: 12px;
  }
  
  .status-badge {
    background: #EDF2F7;
    color: #526174;
    padding: 7px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }
  
  .status-badge.done {
    background: #E8F5E9;
    color: #238347;
  }
  
  .attendance-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 23px;
  }
  
  .time-box {
    padding: 18px;
    border-radius: 13px;
    background: #F7F9FD;
    border: 1px solid #EEF1F7;
  }
  
  .time-icon {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .time-box span, .time-box strong, .time-box small {
    display: block;
  }
  
  .time-box span {
    color: var(--muted);
    font-size: 12px;
  }
  
  .time-box strong {
    font-size: 25px;
    margin: 8px 0;
    color: var(--primary);
  }
  
  .time-box small {
    color: var(--muted);
  }
  
  .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
  }
  
  .attendance-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
  }
  
  .menu-section {
    margin-top: 32px;
  }
  
  .menu-section > .muted {
    margin-top: 6px;
  }
  
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 18px;
  }
  
  .menu-card {
    text-align: left;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 19px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: var(--text);
    min-height: 140px;
  }
  
  .menu-card:hover {
    border-color: #B6D0F1;
    box-shadow: 0 5px 18px #23395B0B;
  }
  
  .menu-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 4px;
  }
  
  .menu-icon.blue { background: #E3F2FD; color: #1565C0; }
  .menu-icon.purple { background: #F0E7FF; color: #7546BD; }
  .menu-icon.green { background: #E4F7EA; color: #24834B; }
  .menu-icon.orange { background: #FFF0DC; color: #B86C10; }
  .menu-icon.red { background: #FDE8E8; color: #B83232; }
  .menu-icon.slate { background: #EDF1F6; color: #536579; }
  
  .menu-card strong {
    font-size: 14px;
  }
  
  .menu-card small {
    color: var(--muted);
    font-size: 11px;
  }
  
  .detail-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    margin-top: 22px;
  }
  
  .dashboard-footer {
    padding: 28px 0 5px;
    text-align: center;
    color: #8995A7;
    font-size: 11px;
  }
  
  .data-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
  }
  
  .data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 430px;
  }
  
  .data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
  }
  
  .data-table th {
    background: #F7F9FD;
    color: #56677E;
  }
  
  .empty-state {
    padding: 24px 8px;
    color: var(--muted);
    line-height: 1.7;
  }
  
  @media (max-width: 600px) {
    .login-page {
      padding: 32px 17px 20px;
    }
  
    .login-card {
      padding: 23px 20px;
    }
  
    .login-brand h1 {
      font-size: 24px;
    }
  
    .page-content {
      padding: 24px 15px;
    }
  
    .profile-card {
      padding: 20px 16px;
      gap: 13px;
    }
  
    .avatar {
      width: 58px;
      height: 58px;
      font-size: 23px;
    }
  
    .profile-info h2 {
      font-size: 17px;
    }
  
    .attendance-card {
      padding: 18px 15px;
    }
  
    .attendance-times {
      gap: 9px;
    }
  
    .time-box {
      padding: 14px 11px;
    }
  
    .time-box strong {
      font-size: 22px;
    }
  
    .menu-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 11px;
    }
  
    .menu-card {
      padding: 15px;
      min-height: 130px;
    }
  
    .action-buttons {
      grid-template-columns: 1fr;
    }
  
    .date-panel {
      padding: 16px;
    }
  
    .clock {
      font-size: 18px;
    }
  }
  