:root {
  /* Pro-M Zrt. Corporate Color Palette */
  --pro-m-navy: #002B49;
  --pro-m-navy-dark: #02182B;
  --pro-m-navy-light: #00385F;
  --pro-m-cyan: #00B4D8;
  --pro-m-cyan-light: #90E0EF;
  --pro-m-gold: #FFB703;
  --pro-m-gold-hover: #FB8500;
  
  --bg-gradient: linear-gradient(135deg, #02182B 0%, #002B49 50%, #00385F 100%);
  --card-bg: rgba(2, 30, 56, 0.75);
  --card-border: rgba(0, 180, 216, 0.25);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --primary: #0099D8;
  --primary-hover: #00B4D8;
  --accent: #FFB703;
  --accent-hover: #FB8500;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --glass-backdrop: blur(16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(2, 24, 43, 0.85);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 2px solid rgba(0, 180, 216, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #00B4D8 0%, #90E0EF 50%, #FFB703 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-icon {
  font-size: 1.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #00B4D8 0%, #90E0EF 100%);
  color: #02182B;
  border-color: #FFB703;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6);
}

.btn-secondary {
  background: rgba(0, 180, 216, 0.12);
  color: var(--text-main);
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.btn-secondary:hover {
  background: rgba(0, 180, 216, 0.25);
  border-color: var(--pro-m-cyan);
  transform: translateY(-1px);
}

.container {
  max-width: 1100px;
  width: 90%;
  margin: 2.5rem auto;
  flex: 1;
}

.card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.card-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.card-subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.poll-card {
  background: rgba(0, 43, 73, 0.45);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poll-card:hover {
  transform: translateY(-4px);
  border-color: var(--pro-m-cyan);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.25);
}

.poll-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.poll-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Response Table Styling */
.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
}

th {
  background: rgba(2, 24, 43, 0.9);
  color: #90E0EF;
  font-weight: 600;
}

tr:nth-child(even) td {
  background: rgba(0, 180, 216, 0.03);
}

.badge-yes {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.badge-no {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.badge-maybe {
  background: rgba(255, 183, 3, 0.2);
  color: #FFB703;
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #E2E8F0;
}

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(2, 24, 43, 0.8);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--pro-m-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25);
}

/* Comments section */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.comment-bubble {
  background: rgba(2, 24, 43, 0.6);
  border: 1px solid rgba(0, 180, 216, 0.25);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--pro-m-cyan);
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: normal;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 180, 216, 0.25);
  background: rgba(2, 24, 43, 0.85);
  font-size: 0.9rem;
}
