/* MLM Session - Frontend Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px 20px;
}

/* Main Box */
.mlm-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 35px 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.mlm-dashboard {
  max-width: 650px;
}

/* Box Header */
.mlm-box-icon {
  font-size: 36px;
  text-align: center;
  margin-bottom: 8px;
}

.mlm-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 5px;
}

.mlm-box > p {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 25px;
}

/* Form */
.mlm-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mlm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mlm-field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.mlm-field input,
.mlm-field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #333;
  background: #fafafa;
}

.mlm-field input:focus,
.mlm-field textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
}

.mlm-field textarea {
  resize: vertical;
  min-height: 80px;
}

.mlm-field small {
  font-size: 11px;
  color: #999;
}

/* Buttons */
.mlm-btn {
  width: 100%;
  padding: 13px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

.mlm-btn:hover {
  background: #5a67d8;
}

.mlm-btn-green {
  background: #10b981;
}

.mlm-btn-green:hover {
  background: #059669;
}

/* Box Footer */
.mlm-box-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #777;
}

.mlm-box-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

/* Alerts */
.mlm-alert {
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
}

.mlm-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.mlm-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* User Top Bar */
.mlm-user-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.mlm-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #667eea;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.mlm-user-details {
  flex: 1;
}

.mlm-user-details strong {
  font-size: 15px;
  color: #1a1a2e;
}

.mlm-logout-link {
  color: #999;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
}

.mlm-logout-link:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Status Box */
.mlm-status {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 22px;
  text-align: center;
}

.mlm-status-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.mlm-status h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1a1a2e;
}

.mlm-status p {
  font-size: 13px;
  color: #555;
}

.mlm-reason {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-size: 12px;
  color: #991b1b;
}

.mlm-status-approved {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.mlm-status-rejected {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.mlm-status-pending {
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.mlm-status-not_started {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  .mlm-box {
    padding: 25px 18px;
  }
}
