.admin-container {
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding-top: 80px;
}

/* Authentication Section */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 2rem;
}

.auth-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.auth-card h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.auth-card p {
  color: #94a3b8;
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-form label {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.875rem;
}

.auth-form input {
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.auth-error:not(:empty) {
  display: block;
}

/* Admin Content */
.admin-content {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

.admin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
}

.admin-actions {
  display: flex;
  gap: 1rem;
}

.refresh-btn,
.sign-out-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.refresh-btn:hover {
  background: rgba(34, 197, 94, 0.2);
}

.sign-out-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.sign-out-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

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

.stat-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
}

/* Applications List */
.applications-list h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.applications-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loading {
  text-align: center;
  color: #94a3b8;
  padding: 2rem;
}

.application-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.application-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.no-applications {
  text-align: center;
  color: #94a3b8;
  padding: 3rem;
  font-size: 1.1rem;
}

.error {
  color: #ef4444;
  text-align: center;
  padding: 2rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  margin: 1rem 0;
}

.application-details {
  margin: 1rem 0;
}

.application-details p {
  margin: 0.5rem 0;
  color: #f8fafc;
}

.application-details strong {
  color: #f8fafc;
}

.application-message {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  color: #f8fafc;
}

.application-message strong {
  color: #f8fafc;
}

.application-message p {
  margin-top: 0.5rem;
  line-height: 1.6;
  color: #f8fafc;
}

.file-attachment {
  margin: 0.5rem 0;
  color: #f8fafc;
}

.file-attachment strong {
  color: #f8fafc;
}

.file-attachment a {
  color: #60a5fa;
  text-decoration: none;
}

.file-attachment a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

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

.action-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-btn {
  background: #059669;
  color: white;
}

.status-btn:hover {
  background: #047857;
}

.delete-btn {
  background: #dc2626;
  color: white;
}

.delete-btn:hover {
  background: #b91c1c;
}

.status.pending {
  color: #fbbf24;
}

.status.reviewed {
  color: #10b981;
}

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

.application-header h3 {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.application-date {
  color: #94a3b8;
  font-size: 0.875rem;
}

.application-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.application-info p {
  color: #94a3b8;
  font-size: 0.875rem;
}

.application-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-pending {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.status-reviewed {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.application-message {
  background: rgba(15, 23, 42, 0.5);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  color: #e2e8f0;
  white-space: pre-wrap;
  font-size: 0.875rem;
  line-height: 1.5;
}

.application-files {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.file-link:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

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

.action-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mark-reviewed-btn {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.mark-reviewed-btn:hover {
  background: rgba(34, 197, 94, 0.2);
}

.delete-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-content {
    padding: 1rem;
  }
  
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-header h1 {
    font-size: 1.5rem;
  }
  
  .applications-stats {
    grid-template-columns: 1fr;
  }
  
  .application-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* System Admin Section */
.system-admin-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
}

.system-admin-section h2 {
  margin-bottom: 1.5rem;
  color: #f8fafc;
  font-size: 1.5rem;
}

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

.admin-tool-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-tool-card h3 {
  margin-bottom: 0.5rem;
  color: #f8fafc;
  font-size: 1.1rem;
}

.result-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #f8fafc;
}

.result-message strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.result-message small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.8;
  font-size: 0.75rem;
}

.admin-tool-card p {
  margin-bottom: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.admin-action-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.admin-action-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
}

.admin-action-btn:disabled {
  background: #475569;
  cursor: not-allowed;
  transform: none;
}

.result-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.result-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: block;
}

.result-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

.result-message.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: block;
}