/* Minimal extracted subset from the provided portal.css to style login + basic portal shell */

*,
*::before,
*::after {
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  background-color: #f4f6f8;
}

body {
  color: #3e3e3e;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  background-color: #f4f6f8;
}

h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
}

p {
  color: #3e3e3e;
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
}

a {
  color: #3e3e3e;
  text-decoration: none;
  transition: color 300ms ease;
}

a:hover {
  color: #484848;
  text-decoration: none;
  cursor: pointer;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  line-height: 1.5rem;
  white-space: nowrap;
  text-transform: none;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
  background-color: #00adee;
  border-radius: 3px;
  border: none;
  outline: none;
  user-select: none;
  transition: color 300ms ease, background-color 300ms ease;
}

button:hover {
  color: white;
  background-color: #0088bb;
  cursor: pointer;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: #676767;
  text-shadow: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  background: linear-gradient(0deg, #00adee 0%, #00b8fd 100%);
}

header > h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0 20px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  user-select: none;
}

.login-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #f4f6f8;
}

.login-container .login-container-inner {
  display: flex;
  flex-direction: column;
  width: 300px;
  padding: 20px;
  background-color: #eeeeee;
  border: 1px solid #dddddd;
  border-radius: 3px;
}

.login-container form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.login-container .messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3px;
}

.login-container .messages .error-msg {
  color: #f00;
  font-size: 0.8rem;
  text-align: center;
}

.login-container .login-inputs {
  display: flex;
  flex-direction: column;
}

.login-container .login-inputs label {
  display: flex;
  position: relative;
  padding-bottom: 6px;
}

.login-container .login-inputs label span {
  position: absolute;
  top: 6px;
  left: 6px;
}

.login-container .login-inputs label span i {
  color: rgba(0, 173, 238, 0.7);
  transition: color 300ms ease;
  font-style: normal;
}

.login-container .login-inputs label input {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 10px 10px 34px;
  background-color: #fff;
  border: 1px solid #dddddd;
  border-radius: 3px;
  outline: none;
  overflow: hidden;
  transition: all 300ms ease;
}

.login-container .login-inputs label input:focus {
  background-color: #fff;
  border: 1px solid #22c3ff;
}

.login-container .login-inputs label input:focus ~ span i {
  color: #00adee;
}

.app-shell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
}

.app-shell main {
  display: flex;
  flex: 1 1 auto;
  overflow: auto;
  padding: 20px;
  background-color: #f4f6f8;
}

.card {
  background: #fafbfc;
  border: 1px solid #dddddd;
  border-radius: 3px;
  padding: 20px;
  max-width: 720px;
  width: 100%;
}

.status {
  background-color: #E4E4E4;
  padding: 5px;
  border-radius: 5px;
  margin-right: 15px;
  transition: background-color 300ms linear;
}

.status.status-processing {
  color: #3e3e3e;
  background-color: rgba(245, 171, 53, 0.95);
}

.status.status-error {
  color: white;
  background-color: rgba(235, 0, 0, 0.95);
}

/* Header nav */
header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 12px;
}

header nav a,
header nav button {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
  cursor: pointer;
  height: auto;
  line-height: 1.4;
}

header nav a:hover,
header nav button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* Admin layout */
.admin-layout {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  width: 320px;
  min-width: 320px;
  border-right: 1px solid #ddd;
  background: #fafbfc;
  overflow: hidden;
}

.admin-sidebar .search-box {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.admin-sidebar .search-box input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 200ms ease;
}

.admin-sidebar .search-box input:focus {
  border-color: #00adee;
}

.user-list {
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-list li {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 150ms ease;
}

.user-list li:hover {
  background: #e8f4fd;
}

.user-list li.active {
  background: #d0ecfb;
  font-weight: 500;
}

.user-list li .user-name {
  font-size: 0.9rem;
  color: #3e3e3e;
}

.user-list li .user-email {
  font-size: 0.78rem;
  color: #888;
}

.admin-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 24px;
  background: #f4f6f8;
}

.admin-content h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 500;
  color: #3e3e3e;
}

.clinic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clinic-list li {
  padding: 6px 0;
}

.clinic-list li label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #3e3e3e;
}

.clinic-list li label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00adee;
}

.admin-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #6d5e00;
}

.admin-content .save-bar {
  margin-top: 18px;
}

.admin-content .save-bar button {
  height: 36px;
  padding: 0 20px;
  font-size: 0.9rem;
}

.admin-content .save-bar .save-msg {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.85rem;
  color: #2e7d32;
}

.admin-placeholder {
  color: #999;
  font-size: 0.95rem;
  margin-top: 40px;
  text-align: center;
}


