/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-logout-btn {
  background: none;
  border: none;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: inherit;
}

.nav-logout-btn:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card i {
    color: #4ade80;
    font-size: 1.2rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background-color: #e2e4e9;
  color: #333;
  border: 2px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: white;
}

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

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.info-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Section */
.team-section {
    padding: 3rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e293b;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.feature-detail-card {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-detail-card p {
    color: #64748b;
    line-height: 1.6;
}

.team-card {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.team-avatar i {
    font-size: 2rem;
    color: white;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.role {
    color: #64748b;
    font-style: italic;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    background: #1e293b;
    color: white;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
    color:#1e293b;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

.contact-info p {
    margin-bottom: 2rem;
    color: #64748b;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.contact-item i {
    color: #667eea;
    font-size: 1.2rem;
}

/* Form Styles */
.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Error Pages */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content {
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 6rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.error-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.error-message {
    color: #64748b;
    margin-bottom: 2rem;
}

.error-details {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #dc2626;
    text-align: left;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content p {
    opacity: 0.8;
}

/* Authentication Styles */
.auth-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 3rem;
  max-width: 450px;
  width: 100%;
  margin: 0 20px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.auth-header h2 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #64748b;
}

.auth-form {
  margin-bottom: 2rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.auth-form label i {
  color: #667eea;
  width: 16px;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form small {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1.1rem;
}

.auth-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.auth-footer p {
  color: #64748b;
  margin-bottom: 1rem;
}

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

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

.demo-credentials {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.demo-credentials h4 {
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.demo-credentials p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-admin {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.role-user {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

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

.dashboard-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

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

.admin-card {
  border: 2px solid #fbbf24;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.card-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.card-icon i {
  font-size: 3rem;
  color: #667eea;
}

.admin-card .card-icon i {
  color: #f59e0b;
}

.card-content h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.card-content p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.logout-section {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

/* Admin Panel Styles */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 {
  font-size: 2.5rem;
  color: #1e293b;
}

.admin-header p {
  color: #64748b;
  margin: 0;
}

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

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-content h3 {
  font-size: 2rem;
  color: #1e293b;
  margin: 0;
}

.stat-content p {
  color: #64748b;
  margin: 0;
}

.users-section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.users-section h2 {
  color: #1e293b;
  margin-bottom: 2rem;
}

.users-table-container {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.users-table th,
.users-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.users-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
}

.users-table tr:hover {
  background: #f8fafc;
}

.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.role-select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.875rem;
}

.btn-sm {
  padding: 0.5rem;
  font-size: 0.875rem;
}

.text-muted {
  color: #9ca3af;
  font-style: italic;
}

/* Scanner and Forms Styles */
.forms-container,
.scan-container,
.scans-container,
.exports-container,
.settings-container,
.admin-overview-container,
.admin-users-container {
  min-height: 80vh;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.form-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

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

.form-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.form-icon i {
  font-size: 3rem;
  color: #667eea;
}

.form-content h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.form-fields {
  margin: 1rem 0;
}

.field-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.form-actions {
  margin-top: 1.5rem;
}

/* Scan Form Styles */
.scan-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.scan-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.scan-subtitle {
  opacity: 0.9;
  margin-bottom: 1rem;
}

.scanner-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.mode-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.mode-keyboard {
  background: #3b82f6;
  color: white;
}

.mode-physical {
  background: #10b981;
  color: white;
}

.scan-section {
  padding: 3rem 0;
}

.scan-form-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.scan-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.scan-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.scan-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Scans List Styles */
.scans-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 20px;
}

.filter-form select {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
}

.scans-table-container {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 30px;
}

.scans-table {
  width: 100%;
  border-collapse: collapse;
}

.scans-table th,
.scans-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.scans-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
}

.scans-table tr:hover {
  background: #f8fafc;
}

.form-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 600;
}

.scan-data {
  font-size: 0.875rem;
}

.data-item {
  margin-bottom: 0.25rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: #f8fafc;
}

.pagination-info {
  color: #64748b;
  font-weight: 500;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 15px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

.modal-header h3 {
  margin: 0;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #1e293b;
}

.export-form,
.email-form,
.add-user-form {
  padding: 2rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Export Styles */
.exports-table {
  width: 100%;
  border-collapse: collapse;
}

.exports-table th,
.exports-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.exports-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-ready {
  background: #d1fae5;
  color: #065f46;
}

.status-building {
  background: #fef3c7;
  color: #92400e;
}

.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.status-sent {
  background: #dbeafe;
  color: #1e40af;
}

/* Export Summary Styles */
.export-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.export-info-card,
.export-actions-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.export-info-card h3,
.export-actions-card h3 {
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

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

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

.info-item label {
  font-weight: 600;
  color: #64748b;
}

.export-params {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.export-params h4 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.param-item {
  margin-bottom: 0.5rem;
  color: #64748b;
}

.actions-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.building-status,
.error-status {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
}

.building-status {
  background: #fef3c7;
  color: #92400e;
}

.error-status {
  background: #fee2e2;
  color: #991b1b;
}

.error-message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.token-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.token-info h4 {
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.cost-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Settings Styles */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.settings-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-header {
  margin-bottom: 2rem;
}

.card-header h3 {
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header p {
  color: #64748b;
  margin: 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  border-color: #667eea;
  background: #f8fafc;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
  background: #667eea;
  border-color: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
  opacity: 1;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.radio-content strong {
  color: #1e293b;
  display: block;
  margin-bottom: 0.25rem;
}

.radio-content p {
  color: #64748b;
  margin: 0;
  font-size: 0.875rem;
}

.token-display {
  text-align: center;
}

.token-count {
  margin-bottom: 2rem;
}

.token-number {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.token-label {
  color: #64748b;
  font-size: 1.1rem;
}

.token-info {
  margin-bottom: 2rem;
}

.token-info p {
  color: #64748b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-info .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.profile-info .info-item label {
  font-weight: 600;
  color: #64748b;
}

/* Admin Styles */
.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.admin-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.admin-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-card .card-header h3 {
  margin: 0;
  color: #1e293b;
}

.recent-scans-list,
.user-stats-list,
.form-stats-list {
  max-height: 400px;
  overflow-y: auto;
}

.scan-item,
.user-stat-item,
.form-stat-item {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scan-item:last-child,
.user-stat-item:last-child,
.form-stat-item:last-child {
  border-bottom: none;
}

.scan-info {
  flex: 1;
}

.form-badge-small {
  background: #667eea;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.scan-data-small {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #64748b;
}

.data-snippet {
  margin-right: 1rem;
}

.scan-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.count-badge {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 600;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #64748b;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.action-btn i {
  font-size: 1.5rem;
}

.action-btn span {
  font-size: 0.875rem;
  font-weight: 600;
}

.empty-state-small {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
}

/* User Management Styles */
.users-controls {
  margin-bottom: 2rem;
}

.user-inactive {
  opacity: 0.6;
}

.role-select-small {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.status-active {
  background: #d1fae5;
  color: #065f46;
}

.status-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

/* Activity Page Styles */
.activity-container {
  min-height: 80vh;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.chart-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

.chart-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.chart-header h3 {
  color: #1e293b;
  margin: 0;
  font-size: 1.2rem;
}

.chart-container {
  position: relative;
  height: 300px;
}

.activity-list {
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.activity-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.activity-user {
  color: #64748b;
  font-size: 0.875rem;
}

.activity-data {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.activity-time {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .info-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
      grid-template-columns: 1fr;
    }
    
    .admin-header {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }
    
    .admin-stats {
      grid-template-columns: 1fr;
    }
    
    .auth-card {
      padding: 2rem;
      margin: 0 10px;
    }
    
    .forms-grid,
    .settings-grid,
    .admin-content-grid {
      grid-template-columns: 1fr;
    }
    
    .export-details-grid {
      grid-template-columns: 1fr;
    }
    
    .charts-grid {
      grid-template-columns: 1fr;
    }
    
    .chart-container {
      height: 250px;
    }
    
    .scans-controls {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
    }
    
    .scan-actions {
      flex-direction: column;
      gap: 1rem;
    }
    
    .modal-content {
      width: 95%;
      margin: 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .scanner-mode {
        flex-direction: column;
        gap: 0.5rem;
    }

    .users-table-container,
    .scans-table-container,
    .exports-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .scanner-mode {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .quick-actions {
      grid-template-columns: 1fr;
    }
    
    .activity-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .activity-title {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        text-align: center;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .modal-content {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}