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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  position: relative;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.login-container {
  max-width: 400px;
  margin-top: 10vh;
  text-align: center;
  position: relative;
  z-index: 10;
}

.login-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.logo-bg {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.3;
  object-fit: contain;
  z-index: 1;
}

.fog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 100% 200%;
  z-index: 2;
  pointer-events: none;
}

.fog-1 {
  animation: fogRoll 8s ease-in-out infinite;
}

.fog-2 {
  animation: fogRoll 12s ease-in-out infinite;
  animation-delay: -2s;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0.3) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 100% 250%;
}

.fog-3 {
  animation: fogRoll 15s ease-in-out infinite;
  animation-delay: -5s;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.4) 55%,
    rgba(255, 255, 255, 0.2) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 100% 300%;
}

@keyframes fogRoll {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scaleY(1);
  }
  25% {
    opacity: 0.3;
    transform: translateY(-10px) scaleY(1.1);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-20px) scaleY(1.2);
  }
  75% {
    opacity: 0.4;
    transform: translateY(-10px) scaleY(1.1);
  }
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn.primary {
  background: #0066cc;
  color: white;
}

.btn.primary:hover {
  background: #0055aa;
}

.btn.success {
  background: #28a745;
  color: white;
}

.btn.danger {
  background: #dc3545;
  color: white;
}

.btn.secondary {
  background: #6c757d;
  color: white;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
}

.alert.success {
  background: #d4edda;
  color: #155724;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.header h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo {
  height: 1.5rem;
  width: auto;
}

.message-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-item:last-child {
  border-bottom: none;
}

.message-item:hover {
  background: #f9f9f9;
}

.message-info {
  flex: 1;
}

.message-sender {
  font-weight: 500;
}

.message-preview {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.message-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.25rem;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #cce5ff; color: #004085; }
.status-posted { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-failed { background: #f5c6cb; color: #721c24; }

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #666;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.vestaboard-preview {
  font-family: 'Courier New', monospace;
  background: #1a1a1a;
  color: #fff;
  padding: 1rem;
  border-radius: 4px;
  white-space: pre;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: center;
}

.actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #666;
}
