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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 450px;
  width: 100%;
  text-align: center;
}

.login-box h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #667eea;
}

.login-box h2 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 2rem;
}

.error {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  color: #991b1b;
  text-align: left;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.help-text {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  font-style: italic;
}

button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.skip-btn {
  background: #6b7280 !important;
  font-size: 0.9rem !important;
  padding: 0.75rem !important;
}

.skip-btn:hover {
  background: #4b5563 !important;
  box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4) !important;
}

.footer-text {
  margin-top: 1.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-text a {
  color: #667eea;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* Main Portal Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 0.5rem;
}

header h2 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.tagline {
  color: #6b7280;
  font-style: italic;
  font-size: 1.1rem;
}

.user-info {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.logout-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1.5rem;
  background: #ef4444;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #dc2626;
}

main {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.intro-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.intro-section h3 {
  color: #667eea;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.intro-section p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.intro-section p strong {
  color: #374151;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.document-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.document-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.document-card h3 {
  color: #374151;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.document-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.doc-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s;
}

.doc-link:hover {
  transform: translateY(-2px);
}

.highlights-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 100%);
  border-radius: 12px;
}

.highlights-section h3 {
  color: #667eea;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.highlight-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlight-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.highlight-label {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-section {
  text-align: center;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.contact-section h3 {
  color: #374151;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-section p {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.contact-section a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* Admin Panel */
.admin-content {
  padding: 2rem;
}

.admin-content h2 {
  color: #374151;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.visitor-actions {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #f59e0b;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.admin-link:hover {
  background: #d97706;
}

.visitor-log {
  background: #1f2937;
  color: #f3f4f6;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

footer {
  text-align: center;
  color: white;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  header h2 {
    font-size: 1.25rem;
  }

  .user-info {
    position: static;
    display: block;
    margin-top: 1rem;
    width: 100%;
  }

  .logout-btn {
    position: static;
    display: block;
    margin-top: 1rem;
    width: 100%;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-number {
    font-size: 2rem;
  }
}

@media print {
  body {
    background: white;
  }
  
  .logout-btn, .user-info {
    display: none;
  }
}