* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 30px;
}

h1 {
  color: #00d4ff;
  font-size: 2.5rem;
}

h2 {
  color: #00d4ff;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.hidden {
  display: none !important;
}

.section {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.resource-card, .build-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.resource-card h3 {
  color: #00d4ff;
  margin-bottom: 15px;
}

.quantity {
  font-size: 2.5rem;
  color: #ff6b6b;
  font-weight: bold;
  margin: 15px 0;
}

.build-meta {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  font-size: 0.9rem;
}

.state {
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.state-vorgeschlagen { background: #ff9e44; color: #1a1a2e; }
.state-voting { background: #00d4ff; color: #1a1a2e; }
.state-in Arbeit { background: #ff6b6b; color: white; }
.state-umgesetzt { background: #4ecca3; color: #1a1a2e; }

.admin-controls {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-controls input, .admin-controls select {
  padding: 8px 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-group input {
  padding: 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  flex: 1;
}

button {
  background: #00d4ff;
  color: #1a1a2e;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

button:hover {
  background: #00b8e6;
  transform: translateY(-2px);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #1a1a2e;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
}

.modal-content input, .modal-content textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.modal-content textarea {
  min-height: 150px;
}

.audit-entry {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  border-left: 4px solid #00d4ff;
}

.timestamp {
  color: #888;
  font-size: 0.85rem;
  margin-left: 15px;
}

.message {
  text-align: center;
  padding: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: 40px;
}

#login-btn {
  background: #5865F2;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

#login-btn:hover {
  background: #4752c4;
}

#user-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

#user-info button {
  background: rgba(255, 107, 107, 0.8);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.role-badge {
  background: #4ecca3;
  color: #1a1a2e;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 10px;
}

.role-badge.admin {
  background: #5865F2;
  color: white;
}