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

body {
  font-family: 'Open Sans', sans-serif;
  background: #F9FAFB;
  color: #111827;
  line-height: 1.6;
}

.top-banner {
  background: #000;
  padding: 24px 0;
  text-align: center;
  margin-bottom: 0;
}

.top-banner h1 {
  color: white;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

/* Upload Section */
.upload-section {
  background: white;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.upload-area {
  border: 2px dashed #D1D5DB;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #F9FAFB;
}

.upload-area:hover {
  border-color: #111827;
  background: #F3F4F6;
}

.upload-area.dragover {
  border-color: #111827;
  background: #E5E7EB;
}

.upload-content svg {
  color: #6B7280;
  margin-bottom: 12px;
}

.upload-content p {
  color: #6B7280;
  margin: 4px 0;
}

.upload-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

.upload-status.success {
  background: #D1FAE5;
  color: #065F46;
  display: block;
}

.upload-status.error {
  background: #FEE2E2;
  color: #991B1B;
  display: block;
}

/* Filters Section */
.filters-section {
  background: white;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
}

.filter-group select,
.filter-group input {
  padding: 10px 14px;
  border: 2px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  background: #F9FAFB;
  color: #111827;
  min-width: 150px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-group select:hover,
.filter-group input:hover {
  border-color: #9CA3AF;
  background: #FFFFFF;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #111827;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.filter-group select:not([value=""]):not([value=""]) {
  background: #FFFFFF;
  border-color: #111827;
  font-weight: 500;
}

.filter-group input[type="date"] {
  color: #111827;
  position: relative;
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  margin-left: 4px;
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.filter-group input[type="date"]:not(:placeholder-shown) {
  background: #FFFFFF;
  border-color: #111827;
  font-weight: 500;
}

.filter-group select option {
  padding: 8px;
  background: white;
  color: #111827;
}

.filter-group select option:checked {
  background: #111827;
  color: white;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #111827;
  color: white;
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  background: #E5E7EB;
  color: #374151;
}

.btn-secondary:hover {
  background: #D1D5DB;
}

/* Reports List */
.reports-section {
  background: white;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.reports-list {
  display: grid;
  gap: 16px;
}

.report-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-report-card {
  cursor: default;
}

.report-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.admin-card-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.btn-edit {
  background: #DBEAFE;
  border: 1px solid #93C5FD;
  color: #1E40AF;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-edit:hover {
  background: #BFDBFE;
  border-color: #60A5FA;
  color: #1E3A8A;
}

.btn-edit:active {
  background: #DBEAFE;
  transform: scale(0.95);
}

.btn-delete {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-delete:hover {
  background: #FECACA;
  border-color: #F87171;
  color: #7F1D1D;
}

.btn-delete:active {
  background: #FEE2E2;
  transform: scale(0.95);
}

.admin-report-card {
  position: relative;
}

.report-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.report-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 12px;
}

.report-card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #E5E7EB;
  color: #374151;
}

.report-card-badge.weekly {
  background: #DBEAFE;
  color: #1E40AF;
}

.report-card-badge.monthly {
  background: #D1FAE5;
  color: #065F46;
}

.report-card-badge.quarterly {
  background: #FCE7F3;
  color: #9F1239;
}

.report-card-stats {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
  flex-wrap: wrap;
}

.report-card-summary-stat {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.report-card-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-card-stat-label {
  font-size: 11px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-card-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.sentiment-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sentiment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sentiment-dot.positive {
  background: #16A34A;
}

.sentiment-dot.neutral {
  background: #9CA3AF;
}

.sentiment-dot.negative {
  background: #DC2626;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #6B7280;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6B7280;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
  color: #111827;
}

.modal-content {
  background-color: #F9FAFB;
  margin: 20px auto;
  padding: 0;
  border-radius: 12px;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.login-modal-content {
  background-color: white;
  padding: 40px;
  overflow: visible;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: white;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.report-viewer {
  overflow-y: auto;
  max-height: 90vh;
  background: white;
}

.report-viewer iframe {
  width: 100%;
  height: 90vh;
  border: none;
}

/* Admin Navigation */
.admin-nav {
  margin-bottom: 24px;
  text-align: right;
}

.admin-nav a {
  text-decoration: none;
  font-size: 13px;
  color: #6B7280;
  transition: color 0.2s;
}

.admin-nav a:hover {
  color: #111827;
}

/* Professional view - hide admin link on main page */
.professional-view .admin-link {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.professional-view .admin-link:hover {
  color: rgba(255, 255, 255, 1);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .top-banner h1 {
    font-size: 24px;
    padding: 20px 16px;
  }
  
  .top-banner {
    padding: 20px 0;
  }
  
  .professional-view .admin-link {
    top: 16px;
    right: 16px;
    font-size: 11px;
  }
  
  .filters {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-group select,
  .filter-group input {
    width: 100%;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-top: 8px;
  }
  
  .report-card {
    padding: 16px;
  }
  
  .report-card-header {
    flex-direction: column;
  }
  
  .report-card-title {
    font-size: 16px;
  }
  
  .report-card-stats {
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }
  
  .report-card-stat {
    width: 100%;
  }
  
  .upload-area {
    padding: 30px 20px;
  }
  
  .upload-content svg {
    width: 40px;
    height: 40px;
  }
  
  .upload-content p {
    font-size: 14px;
  }
  
  .modal-content {
    width: 98%;
    margin: 10px auto;
    max-height: 95vh;
  }
  
  .close {
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  
  .report-viewer iframe {
    height: 85vh;
  }
  
  .summary-box,
  .filters-section,
  .reports-section,
  .upload-section {
    padding: 20px;
  }
  
  h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .top-banner h1 {
    font-size: 20px;
    letter-spacing: 0.02em;
  }
  
  .report-card-meta {
    flex-direction: column;
    gap: 6px;
  }
  
  .sentiment-indicator {
    font-size: 11px;
  }
}

