@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary: #E43825; /* LocPhat Red */
  --secondary: #76B94A; /* LocPhat Green */
  --bg-light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --input-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-light);
  background-image: 
    radial-gradient(at 0% 0%, hsla(96, 43%, 51%, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(11, 75%, 52%, 0.1) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 480px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 480px) {
  .container {
    padding: 2.5rem 2rem;
  }
}

.logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  padding: 5px;
  background: #ffffff;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--primary);
  width: 100%;
}

p.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  width: 100%;
}

/* Links */
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Rating Form */
.rating-section {
  width: 100%;
}

.rating-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-main);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-direction: row-reverse;
}

.stars input {
  display: none;
}

.stars label {
  font-size: 2.5rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
  color: var(--secondary);
}

.stars label:active {
  transform: scale(0.9);
}

textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-main);
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(118, 185, 74, 0.2);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text-main);
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(118, 185, 74, 0.2);
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-wrapper input[type="checkbox"] {
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-wrapper label {
  cursor: pointer;
  line-height: 1.4;
}

input[type="password"] {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text-main);
  transition: border-color 0.3s ease;
}

input[type="password"]:focus {
  outline: none;
  border-color: var(--secondary);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--primary);
  background: #d32f1f;
}

/* Toast/Alert */
.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  width: 100%;
}
.alert-success {
  background: rgba(118, 185, 74, 0.15); /* LocPhat Green */
  border: 1px solid rgba(118, 185, 74, 0.3);
  color: #15803d;
}
.alert-error {
  background: rgba(228, 56, 37, 0.15); /* LocPhat Red */
  border: 1px solid rgba(228, 56, 37, 0.3);
  color: #b91c1c;
}

/* Admin Dashboard Specific */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--glass-border); }
th { color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }
tr:hover { background: rgba(0,0,0,0.02); }
.stars-display { color: var(--secondary); letter-spacing: 2px; }
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; width: 100%; }
.header-row h1 { margin-bottom: 0; text-align: left; color: var(--text-main); width: auto; }
.btn-logout { display: inline-block; padding: 0.6rem 1.2rem; background: #ffffff; border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-main); text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-logout:hover { background: rgba(228, 56, 37, 0.1); border-color: rgba(228, 56, 37, 0.3); color: var(--primary); }
.message-box { background: rgba(0,0,0,0.03); padding: 0.75rem; border-radius: 8px; font-size: 0.95rem; margin-top: 0.5rem; border-left: 3px solid var(--secondary); color: var(--text-main); }
