/* =====================================================
   ANDROID BOX OMS V1
   DASHBOARD + LOGIN
===================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f3f5f7;
  color: #1f2937;
}

.hidden {
  display: none !important;
}


/* =====================================================
   LOGIN
===================================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 20px;

  border-radius: 18px;

  background: #111827;
  color: #ffffff;

  font-size: 22px;
  font-weight: 700;
}

.login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 28px;
}

.subtitle {
  margin: 10px 0 30px;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 52px;

  padding: 0 15px;
  margin-bottom: 20px;

  border: 1px solid #d1d5db;
  border-radius: 10px;

  background: #ffffff;

  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: #111827;
}

#loginButton {
  width: 100%;
  height: 54px;

  border: none;
  border-radius: 10px;

  background: #111827;
  color: #ffffff;

  font-size: 17px;
  font-weight: 700;

  cursor: pointer;
}

#loginButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#loginMessage {
  min-height: 22px;
  margin: 18px 0 0;

  text-align: center;
  font-size: 14px;
}


/* =====================================================
   APP
===================================================== */

.app-page {
  min-height: 100vh;
  background: #f3f5f7;
}


/* =====================================================
   HEADER
===================================================== */

.app-header {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 28px;

  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;

  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #111827;
  color: #ffffff;

  font-size: 15px;
  font-weight: 700;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
}

.dashboard-title {
  margin-top: 3px;
  font-size: 13px;
  color: #6b7280;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user-info {
  text-align: right;
}

.user-name {
  font-size: 15px;
  font-weight: 700;
}

.user-role {
  margin-top: 3px;
  font-size: 13px;
  color: #6b7280;
}

.logout-button {
  height: 40px;
  padding: 0 16px;

  border: 1px solid #d1d5db;
  border-radius: 9px;

  background: #ffffff;
  color: #374151;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

.logout-button:hover {
  background: #f9fafb;
}


/* =====================================================
   DASHBOARD
===================================================== */

.dashboard {
  width: 100%;
  max-width: 1400px;

  margin: 0 auto;
  padding: 28px;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 22px;
}

.dashboard-welcome h2 {
  margin: 0 0 7px;
  font-size: 27px;
}

.dashboard-welcome p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}


/* =====================================================
   STAT CARDS
===================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;

  margin-bottom: 24px;
}

.stat-card {
  min-height: 125px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 20px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 14px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-label {
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.stat-number {
  margin-top: 18px;

  color: #111827;

  font-size: 34px;
  font-weight: 700;
}

.stat-card.urgent {
  border: 2px solid #dc2626;
  background: #fff7f7;
}

.stat-card.urgent .stat-label,
.stat-card.urgent .stat-number {
  color: #b91c1c;
}

.stat-card.warning {
  border: 2px solid #d97706;
  background: #fffaf0;
}

.stat-card.warning .stat-label,
.stat-card.warning .stat-number {
  color: #b45309;
}


/* =====================================================
   PANELS
===================================================== */

.dashboard-panel {
  margin-bottom: 22px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 14px;

  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 22px;

  border-bottom: 1px solid #e5e7eb;
}

.panel-header h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.panel-header p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.empty-state {
  padding: 42px 20px;

  text-align: center;

  color: #9ca3af;
  font-size: 15px;
}


/* =====================================================
   TECH ALERT
===================================================== */

.alert-box {
  margin-bottom: 22px;
  padding: 18px 20px;

  border: 1px solid #f59e0b;
  border-radius: 12px;

  background: #fffbeb;
}

.alert-title {
  margin-bottom: 5px;

  color: #92400e;

  font-size: 16px;
  font-weight: 700;
}

.alert-text {
  color: #92400e;
  font-size: 14px;
  line-height: 1.5;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .login-page {
    padding: 15px;
  }

  .login-card {
    padding: 30px 22px;
    border-radius: 15px;
  }

  .login-card h1 {
    font-size: 25px;
  }

  input {
    height: 55px;
    font-size: 17px;
  }

  #loginButton {
    height: 56px;
    font-size: 18px;
  }


  /* HEADER */

  .app-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .header-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
  }

  .app-title {
    font-size: 15px;
  }

  .dashboard-title {
    font-size: 12px;
  }

  .user-info {
    display: none;
  }

  .logout-button {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }


  /* DASHBOARD */

  .dashboard {
    padding: 18px 14px 30px;
  }

  .dashboard-welcome {
    margin-bottom: 18px;
  }

  .dashboard-welcome h2 {
    font-size: 23px;
  }

  .dashboard-welcome p {
    font-size: 14px;
    line-height: 1.5;
  }


  /* CARDS */

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    min-height: 110px;
    padding: 15px;
    border-radius: 11px;
  }

  .stat-label {
    font-size: 13px;
  }

  .stat-number {
    margin-top: 13px;
    font-size: 29px;
  }


  /* PANELS */

  .panel-header {
    padding: 17px;
  }

  .panel-header h3 {
    font-size: 17px;
  }

  .panel-header p {
    font-size: 13px;
    line-height: 1.4;
  }

  .empty-state {
    padding: 35px 15px;
    font-size: 14px;
  }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 370px) {

  .stat-grid {
    grid-template-columns: 1fr;
  }

}
