:root {
  --bg-color: #f0f4f1;
  --card-bg: #ffffff;
  --primary: #4a7c59; 
  --primary-hover: #3b6347;
  --text-main: #2c3e35;
  --text-muted: #6b7a70;
  --border: #d1dfd5;
  --danger: #d9534f;
}

* { box-sizing: border-box; }

body {
  margin: 0; 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
}

header {
  background: var(--card-bg);
  border-bottom: 2px solid var(--primary);
  padding: 16px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky; 
  top: 0; 
  z-index: 10;
}

.header-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 70px;
  width: auto;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.header-text h1 { margin: 0; font-size: 22px; color: var(--primary); }
.header-text p { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); }

main { max-width: 980px; margin: 24px auto; padding: 0 16px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .grid { grid-template-columns: 1fr 1.5fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

h2 { margin: 0 0 16px; font-size: 18px; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 8px;}

/* Estilo do texto em vermelho */
.instrucoes-login {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--danger);
}

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.info-row { margin-top: 16px; align-items: center; }
.spacer { flex: 1; }
.search-box { flex: 1; min-width: 200px; }

label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 6px; }

select, input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--text-main);
  outline: none;
  font-size: 14px;
}
select:focus, input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1); }

button {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }

.pill {
  display: inline-flex; align-items: center; padding: 6px 12px;
  border-radius: 20px; background: #f0f4f1; border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.pill.highlight { background: #e6f0ea; color: var(--primary); border-color: var(--primary); }

.list { margin-top: 16px; display: grid; gap: 10px; max-height: 500px; overflow-y: auto; padding-right: 4px; }

.student {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  border-radius: 8px; border: 1px solid var(--border); background: #fafafa;
}
.student:hover { border-color: var(--primary); }

.student .meta { flex: 1; min-width: 0; }
.student .name { font-weight: 600; font-size: 14px; }
.student .email { font-size: 13px; color: var(--text-muted); margin-top: 4px; word-break: break-all; }
.student .actions { display: flex; gap: 8px; }

.hidden { display: none !important; }
.placeholder-text { text-align: center; color: var(--text-muted); padding: 40px 0; }
.kbd { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-family: monospace; color: #333; border: 1px solid #ccc; }

/* COMPARTILHAMENTO DE LINK */
.link-display-box {
  background-color: #e8ece9;
  min-height: 60px;
  border-radius: 12px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  word-break: break-all;
  text-align: center;
}
.link-display-box a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.link-display-box a:hover {
  text-decoration: underline;
}

.btn-share {
  background-color: #ffcc00;
  color: #000;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-share:hover {
  background-color: #e6b800;
}

/* MODAL DE SENHA */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-content input[type="password"] { margin: 16px 0; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.btn-cancel {
  background: #e0e0e0; 
  color: #333; 
  border: none;
  padding: 10px 16px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 600;
  transition: all 0.2s;
}
.btn-cancel:hover { background: #d0d0d0; }
