/* Device Handover Notifier Frontend Styles */
div#dhn-device-grid { width: 100%; }
.dhn-device-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center;
}

.dhn-device-card { border: 1px solid #ccc; padding: 10px;flex-grow:1; background: #efefef; border-radius: 10px; text-align: center; }
.dhn-device-card h3 { margin: 10px 0; font-size: 20px; line-height: normal; font-weight: bold; font-family: arial; text-align: center; }
.dhn-device-card img { display: block; margin: 10px auto; width: 35px; height: 35px; border-radius: 20px; padding: 10px; background: #fff; object-fit: fill; border: 1px solid #ccc; }
.dhn-device-card p { margin: 0 0 5px 0; font-size: 15px; }
.dhn-device-card strong { font-weight: normal; }
.dhn-device-card p:nth-of-type(2) { font-size: 11px; font-weight: bold; background: #fff; border-radius: 5px; padding: 5px; margin-top: 10px; }
#dhn-notification-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  pointer-events: none;
}

.dhn-notification {
  background: #fffbe5;
  border: 1px solid #ffe066;
  padding: 16px;
  margin: 16px;
  border-radius: 6px;
  font-size: 1rem;
  pointer-events: auto;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dhn-select-device, .dhn-return-device, .dhn-request-device, .dhn-confirm-request, .dhn-decline-request, .dhn-copy-slug-url { background: #0073aa; color: #fff; border: none; border-radius: 4px; padding: 4px 15px; margin-top: 8px; font-size: 12px; font-family: tahoma; cursor: pointer; font-weight: normal; transition: background 0.2s; }
.dhn-return-device { background: #aa0000; }
.dhn-select-device:hover,
.dhn-return-device:hover,
.dhn-request-device:hover,
.dhn-confirm-request:hover,
.dhn-decline-request:hover,
.dhn-copy-slug-url:hover {
  background: #005177;
}

.dhn-loading {
  text-align: center;
  padding: 32px;
  font-size: 1.2em;
  color: #888;
}

.dhn-back-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
  margin-bottom: 24px;
}

.dhn-back-link svg {
  margin-right: 8px;
}

.dhn-popup-notification {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 260px;
  max-width: 90vw;
  background: #fff;
  color: #222;
  border-radius: 6px;
  box-shadow: 0 4px 24px #0002;
  padding: 16px 32px 16px 16px;
  font-size: 1rem;
  border-left: 6px solid #0073aa;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  animation: dhn-popup-fadein 0.3s;
}
.dhn-popup-success { border-left-color: #46b450; }
.dhn-popup-error { border-left-color: #d63638; }
.dhn-popup-info { border-left-color: #0073aa; }
.dhn-popup-close {
  margin-left: 16px;
  font-size: 1.2em;
  cursor: pointer;
  color: #888;
  font-weight: bold;
}
@keyframes dhn-popup-fadein {
  from { opacity: 0; top: 0; }
  to { opacity: 1; top: 32px; }
}

.dhn-login-wrapper {
  max-width: 420px;
  margin: 40px auto;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-family: system-ui, Arial;
}

.dhn-login-wrapper p {
  margin-bottom: 12px;
}

.dhn-login-wrapper label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}

.dhn-login-wrapper .input,
.dhn-login-wrapper input[type="text"],
.dhn-login-wrapper input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-sizing: border-box;
}

.dhn-login-wrapper .input:focus,
.dhn-login-wrapper input[type="text"]:focus,
.dhn-login-wrapper input[type="password"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0,115,170,0.2);
  outline: none;
}

.dhn-login-wrapper .login-remember {
  font-size: 14px;
  color: #666;
}

.dhn-login-wrapper .login-submit {
  display: flex;
  gap: 10px;
}

.dhn-login-wrapper .button-primary,
.dhn-login-wrapper input[type="submit"] {
  padding: 10px 16px;
  border-radius: 8px;
  background: #0073aa;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 15px;
}

.dhn-login-wrapper .button-primary:hover,
.dhn-login-wrapper input[type="submit"]:hover {
  background: #005f8a;
}

.dhn-login-wrapper input[type="hidden"] {
  display: none;
}

.dhn-success-page {
  text-align: center;
  padding: 100px 24px;
  max-width: 900px;
  margin: 40px auto;
  background: #f3f3f3;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.dhn-success-title {
  margin: 0 0 8px 0;
  font-size: 30px;
  color: #1d1d1f;
  font-weight:bold;
}
.dhn-success-holder {
  font-size: 16px;
  color: #4a4a4a;
}
.dhn-success-holder strong {
  color: #111;
}
.dhn-success-desc {
  background: #f5f7fb;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
  text-align: left;
  color: #303030;
  line-height: 1.6;
}
.dhn-success-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.dhn-success-button,
.dhn-success-link {
  min-width: 120px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.dhn-success-button {
  background: linear-gradient(135deg, #ff5f6d, #d81f27);
  color: #fff;
}
.dhn-success-link {
  background: linear-gradient(135deg, #5ac8fa, #007aff);
  color: #fff;
}
.dhn-success-button:hover,
.dhn-success-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

@media (max-width: 420px) {
  .dhn-login-wrapper {
    margin: 20px;
    padding: 18px;
  }
  .dhn-login-wrapper .login-submit {
    flex-direction: column;
  }
  .dhn-login-wrapper .button-primary,
  .dhn-login-wrapper input[type="submit"] {
    width: 100%;
  }
}