/* ==================================================
   GLOBAL VARIABLES
   ================================================== */
:root {
  --gm-primary: #2b59ff;
  --gm-primary-hover: #2047d8;
}

/* ==================================================
   RESET & BASE
   ================================================== */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f6f7f9;
  color: #333;
}

a {
  text-decoration: none;
}

/* ==================================================
   HEADER
   ================================================== */
.top-header {
  background: #1f2933;
  color: #fff;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 38px;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
}

.header-link {
  color: #ddd;
  margin-left: 20px;
  font-weight: 500;
}

.header-link:hover {
  color: #fff;
}

/* ==================================================
   MAIN LAYOUT
   ================================================== */
.main-container {
  padding: 30px;
}

/* ==================================================
   CARD
   ================================================== */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--gm-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gm-primary-hover);
}

.btn-success {
  background: #16a34a;
  color: #fff;
}

.btn-warning {
  background: #dc2626;
  color: #fff;
}

.btn-light {
  background: #e5e7eb;
}

/* ==================================================
   TABLE
   ================================================== */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f1f5f9;
  padding: 12px;
  text-align: left;
}

td {
  padding: 10px;
  border-top: 1px solid #e5e7eb;
}

/* ==================================================
   STATUS BADGES
   ================================================== */
.badge-low {
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
}

.badge-ok {
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 12px;
}

/* ==================================================
   FOOTER
   ================================================== */
.footer {
  text-align: center;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
}

/* ==================================================
   DASHBOARD
   ================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.dash-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.dash-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.dash-card h3 {
  margin: 0 0 8px;
}

.dash-card p {
  font-size: 14px;
  color: #6b7280;
}

.dash-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-actions a {
  background: var(--gm-primary);
  color: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.dash-actions a:hover {
  background: var(--gm-primary-hover);
}

.logout-link {
  color: #dc2626 !important;
}
/* ==================================================
   LOGIN PAGE – FINAL LOCKED VERSION
   ================================================== */

body.login-page {
  background: #f3f4f6;
}

/* Center card */
.login-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card */
.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Brand */
.login-brand {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo {
  width: 90px;
  margin-bottom: 10px;
}

.login-brand h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--gm-primary);
}

.login-brand p {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

/* Header */
.login-header {
  margin-bottom: 18px;
}

.login-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.login-header p {
  margin-top: 4px;
  font-size: 13.5px;
  color: #6b7280;
}

/* Inputs */
.login-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dbe2f1;
  background: #eef4ff;
  font-size: 14px;
  margin-bottom: 12px;
}

.login-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--gm-primary);
}

/* Password eye */
.password-wrap {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 15px;
  opacity: 0.7;
}

.toggle-password:hover {
  opacity: 1;
}

/* Button */
.btn-login {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--gm-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-login:hover {
  background: var(--gm-primary-hover);
}

/* Loader */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

.btn-login.loading .btn-text {
  display: none;
}

.btn-login.loading .btn-loader {
  display: inline-block;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Error */
.login-error {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: #dc2626;
}

/* Footer */
.login-footer {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 12px;
}
.dashboard-container {
  padding: 25px;
  background: #f3f4f6;
}

.hero-card {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 25px;
}

.primary-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-primary {
  background: var(--gm-primary);
  color: #fff;
  padding: 16px 30px;
  border-radius: 14px;
  font-size: 18px;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  padding: 16px 26px;
  border-radius: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

