/* ===== PPT Clinic - Visual estilo dashboard ===== */
.ppt-app, .ppt-app * { box-sizing: border-box; }
.ppt-app {
  display: flex;
  min-height: 640px;
  background: #eef6f0;
  border-radius: 24px;
  overflow: hidden;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 10px 40px rgba(20,60,40,0.08);
  margin: 20px 0;
}

/* Sidebar */
.ppt-sidebar {
  width: 220px;
  min-width: 220px;
  background: linear-gradient(180deg, #35c46f, #22a85c);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}
.ppt-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 40px;
}
.ppt-logo-dot {
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}
.ppt-nav { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ppt-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  transition: background .15s, color .15s;
}
.ppt-nav-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ppt-nav-item.active { background: #fff; color: #1f9d55; }
.ppt-nav-icon { font-size: 16px; }
.ppt-logout {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
}
.ppt-logout:hover { color: #fff; }

/* Main content */
.ppt-main {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
  background: #f6faf7;
}
.ppt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.ppt-topbar h1 {
  font-size: 26px;
  font-weight: 800;
  color: #17301f;
  margin: 0;
}
.ppt-search input {
  padding: 10px 18px;
  border-radius: 20px;
  border: 1.5px solid #d3e6d9;
  font-size: 14px;
  min-width: 240px;
  outline: none;
  background: #fff;
}
.ppt-search input:focus { border-color: #35c46f; }

/* Category buttons */
.ppt-cat-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ppt-cat-btn {
  border: none;
  background: #e4f3e9;
  color: #1f6b3c;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 18px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ppt-cat-btn:hover { background: #d0ecda; }
.ppt-cat-btn.active { background: #1f9d55; color: #fff; }

/* Script cards */
.ppt-script-list { display: flex; flex-direction: column; gap: 16px; }
.ppt-script-card {
  background: #16281d;
  color: #eafbf0;
  border-radius: 18px;
  padding: 20px 24px;
}
.ppt-script-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.ppt-script-title { font-weight: 700; font-size: 15px; }
.ppt-script-tag {
  background: rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #b7f0cc;
}
.ppt-script-text { font-size: 14px; line-height: 1.6; color: #d8f3e2; margin: 0 0 16px 0; }
.ppt-copy-btn {
  background: linear-gradient(135deg, #35c46f, #1f9d55);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ppt-copy-btn.copied { background: #17a94b; }
.ppt-copy-btn:hover { opacity: .92; }

/* Médicos grid */
.ppt-medico-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.ppt-medico-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(20,60,40,0.06);
}
.ppt-medico-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e4f3e9 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
}
.ppt-medico-card h3 { margin: 0 0 4px 0; font-size: 16px; color: #17301f; }
.ppt-medico-sub { color: #5c7768; font-size: 13px; margin: 0 0 12px 0; }
.ppt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ppt-tag { font-size: 11px; padding: 4px 10px; border-radius: 10px; font-weight: 600; }
.ppt-tag-do { background: #e0f6e6; color: #1f9d55; }
.ppt-tag-dont { background: #fbe4e4; color: #c0392b; }
.ppt-medico-meta { font-size: 12px; color: #77897e; margin: 6px 0 0 0; }

/* Imagens */
.ppt-filters { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ppt-filters select {
  padding: 9px 14px; border-radius: 14px; border: 1.5px solid #d3e6d9; font-size: 13px; background: #fff;
}
.ppt-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.ppt-image-pair { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 4px 16px rgba(20,60,40,0.06); }
.ppt-image-pair-photos { display: flex; gap: 10px; }
.ppt-photo-box {
  flex: 1; position: relative; background: #f0f5f1; border-radius: 12px; overflow: hidden;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.ppt-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.ppt-photo-box span {
  position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,0.55); color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 8px;
}
.ppt-image-caption { font-size: 12px; color: #5c7768; margin: 10px 0 0 0; }

/* Login screen */
.ppt-login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 480px;
  background: #eef6f0;
  border-radius: 24px;
  padding: 40px 20px;
}
.ppt-login-card {
  background: #fff;
  padding: 40px 36px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(20,60,40,0.10);
  width: 100%;
  max-width: 340px;
  text-align: center;
}
.ppt-login-logo { font-size: 30px; margin-bottom: 8px; }
.ppt-login-card h2 { margin: 0 0 4px 0; color: #17301f; }
.ppt-login-sub { color: #77897e; font-size: 13px; margin: 0 0 20px 0; }
.ppt-login-error { color: #c0392b; font-size: 13px; margin-bottom: 12px; }
.ppt-login-card form { display: flex; flex-direction: column; gap: 12px; }
.ppt-login-card input {
  padding: 11px 16px; border-radius: 12px; border: 1.5px solid #d3e6d9; font-size: 14px; outline: none;
}
.ppt-login-card input:focus { border-color: #35c46f; }
.ppt-login-card button {
  background: linear-gradient(135deg, #35c46f, #1f9d55);
  color: #fff; border: none; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 14px; cursor: pointer;
  margin-top: 6px;
}

/* Página de Configurações - tabela */
.ppt-admin-status {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 18px;
  background: #e0f6e6;
  color: #1f9d55;
}
.ppt-admin-status-error { background: #fbe4e4; color: #c0392b; }
.ppt-admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20,60,40,0.06);
}
.ppt-admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #77897e;
  padding: 14px 20px;
  border-bottom: 1px solid #e7f0ea;
}
.ppt-admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eef4f0;
  font-size: 14px;
  color: #17301f;
}
.ppt-admin-actions { display: flex; gap: 14px; align-items: center; }
.ppt-inline-form { display: inline; margin: 0; }
.ppt-link-btn {
  background: none;
  border: none;
  color: #1f9d55;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.ppt-link-btn:hover { text-decoration: underline; }
.ppt-link-btn-danger { color: #c0392b; }

/* Modal de edição */
.ppt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,40,28,0.45);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.ppt-modal-overlay.open { display: flex; }
.ppt-modal {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.ppt-modal h3 { margin: 0 0 18px 0; color: #17301f; }
.ppt-modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #375444;
  margin: 14px 0 6px 0;
}
.ppt-modal input[type="text"],
.ppt-modal textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #d3e6d9;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.ppt-modal input[type="text"]:focus,
.ppt-modal textarea:focus { border-color: #35c46f; }
.ppt-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 22px;
  align-items: center;
}

/* Responsivo */
@media (max-width: 720px) {
  .ppt-app { flex-direction: column; border-radius: 16px; }
  .ppt-sidebar { width: 100%; min-width: 100%; flex-direction: row; align-items: center; padding: 16px 20px; }
  .ppt-sidebar-logo { margin-bottom: 0; }
  .ppt-nav { flex-direction: row; flex: none; margin-left: auto; }
  .ppt-nav-item span:last-child { display: none; }
  .ppt-logout { display: none; }
  .ppt-main { padding: 20px; }
}
