/* =========================================================
   Mobile Orange Theme - Sistem Penilaian 360
   Safe companion for Bootstrap (utility-first overrides avoided)
   ========================================================= */

/* ---------- Root Colors ---------- */
:root {
  --orange: #ff5a00;
  --orange-dark: #e94d00;
  --orange-soft: #fff1e8;
  --green: #188f5a;
  --green-soft: #e7f7ef;
  --purple: #6f3cc3;
  --purple-soft: #f0e9ff;
  --dark: #111827;
  --muted: #6b7280;
  --bg: #fffaf5;
  --card: #ffffff;
  --border: #f1e5da;
}

/* ---------- Reset Mobile ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #f4f4f5;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
}

/* ---------- Mobile Page & Shell ---------- */
.mobile-page {
  min-height: 100vh;
  background: #f4f4f5;
  padding-bottom: 80px;
}

.mobile-shell {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.12);
}

/* ---------- AppBar ---------- */
.mobile-appbar {
  height: 64px;
  background: linear-gradient(135deg, #ff6a00, #ff4b00);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-appbar h1 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- Content ---------- */
.mobile-content {
  padding: 16px;
  padding-bottom: 90px;
}

.mobile-title {
  margin: 0;
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 700;
}

.mobile-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Card ---------- */
.mobile-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(255, 90, 0, 0.08);
  border: 1px solid #f4e3d6;
}

/* ---------- Icon Helpers ---------- */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.icon-green {
  background: var(--green-soft);
  color: var(--green);
}

.icon-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

/* ---------- Badges ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 600;
  padding: 6px 10px;
  white-space: nowrap;
}

.status-warning {
  background: #fff4df;
  color: #bd6a00;
}

.status-success {
  background: var(--green-soft);
  color: var(--green);
}

.status-muted {
  background: #eef0f3;
  color: #6b7280;
}

.status-orange {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.status-green {
  background: var(--green-soft);
  color: var(--green);
}

.status-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

/* ---------- Buttons ---------- */
.orange-button {
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
  border-radius: 12px;
  font-weight: 700;
}

.orange-button:hover,
.orange-button:focus {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
}

.outline-orange-button {
  background: #fff;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 12px;
  font-weight: 700;
}

.outline-orange-button:hover,
.outline-orange-button:focus {
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-color: var(--orange-dark);
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 92px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.14);
}

.action-card i {
  font-size: 1.2rem;
}

.action-card.orange {
  background: linear-gradient(145deg, #ff7a1a, #ff5a00);
}

.action-card.green {
  background: linear-gradient(145deg, #21a36c, #188f5a);
}

.action-card.purple {
  background: linear-gradient(145deg, #8450db, #6f3cc3);
}

/* ---------- Category Card ---------- */
.category-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

/* ---------- Employee Card ---------- */
.employee-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
}

.employee-card.disabled {
  opacity: 0.72;
  pointer-events: none;
}

/* ---------- Rating ---------- */
.rating-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.rating-header {
  display: none;
}

.rating-table thead th {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 6px 2px;
}

.rating-table thead th:first-child {
  text-align: left;
  width: 45%;
}

.rating-row td {
  border-bottom: 1px solid var(--border);
  padding: 8px 2px;
  text-align: center;
}

.rating-row td:last-child {
  padding-right: 0;
}

.rating-label {
  text-align: left !important;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2937;
}

.rating-options {
  text-align: center;
}

.rating-option input[type="radio"],
.rating-radio {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
}

/* ---------- Bottom Nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 430px;
  width: 100%;
  height: 68px;
  background: #fff;
  border-top: 1px solid #f1e5da;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 20;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
}

.bottom-nav-item i {
  font-size: 1.08rem;
}

.bottom-nav-item.active {
  color: var(--orange);
}

/* ---------- Login Visual ---------- */
.login-wave {
  position: relative;
  height: 150px;
  margin: 14px -16px 8px;
  background: linear-gradient(180deg, rgba(255, 240, 229, 0.5), rgba(255, 226, 204, 0.92));
  border-top-left-radius: 70px;
  border-top-right-radius: 70px;
  overflow: hidden;
}

.login-wave::before,
.login-wave::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.16);
}

.login-wave::before {
  width: 220px;
  height: 120px;
  left: -40px;
  bottom: -36px;
}

.login-wave::after {
  width: 240px;
  height: 130px;
  right: -50px;
  bottom: -44px;
}

.login-bg-building {
  position: absolute;
  inset: auto 0 0 0;
  height: 86px;
  background:
    linear-gradient(to top, rgba(255, 152, 92, 0.2), rgba(255, 152, 92, 0)),
    repeating-linear-gradient(
      to right,
      rgba(255, 128, 64, 0.18) 0,
      rgba(255, 128, 64, 0.18) 28px,
      rgba(255, 128, 64, 0.06) 28px,
      rgba(255, 128, 64, 0.06) 46px
    );
}

/* ---------- Form Controls (Bootstrap-safe scope) ---------- */
.mobile-shell .form-control,
.mobile-shell .form-select,
.mobile-shell .input-group-text {
  border-color: var(--border);
}

.mobile-shell .form-control,
.mobile-shell .form-select {
  border-radius: 12px;
}

.mobile-shell .form-control:focus,
.mobile-shell .form-select:focus {
  border-color: #ffb38b;
  box-shadow: 0 0 0 0.2rem rgba(255, 90, 0, 0.14);
}

.mobile-shell .table {
  margin-bottom: 0;
}

/* ---------- Account Page ---------- */
.account-profile-card {
  border-radius: 18px;
}

.account-avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ff7a1a, #ff4b00);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.25);
}

.account-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.account-role {
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.35;
}

.account-info-card {
  border-radius: 18px;
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.account-info-row:last-child {
  border-bottom: 0;
}

.account-info-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
}

.account-info-value {
  font-size: 0.84rem;
  color: #111827;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.logout-button {
  border: 1px solid #ef4444;
  color: #b91c1c;
  background: #fff1f1;
  border-radius: 12px;
  font-weight: 700;
}

.logout-button:hover,
.logout-button:focus {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

/* ---------- Login Logo 360 ---------- */
.login-logo360 {
  text-align: center;
  margin-bottom: 10px;
}

.logo360-top {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.3px;
  background: linear-gradient(180deg, #0f2f73, #6ec8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 0 rgba(9, 21, 56, 0.24);
}

.logo360-middle {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff7a1a 0%, #ff3b00 36%, #0078ff 65%, #20c1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 10px rgba(255, 90, 0, 0.25);
}

.logo360-bottom {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(180deg, #ff8b2b, #ff4b00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
