body, html {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #fafbfc;
  margin: 0;
  padding: 0;
  color: #18181b;
}

.logs-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 32px;
  z-index: 100;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.logs-root {
  display: flex;
  min-height: 100vh;
  background: #fafbfc;
}

.logs-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-top: 56px;
  position: relative;
}

.logs-sidebar-title {
  font-weight: 600;
  font-size: 20px;
  padding: 24px 0 16px 32px;
  letter-spacing: -0.5px;
}

.logs-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.logs-sidebar-item {
  padding: 8px 0 8px 32px;
  font-size: 16px;
  color: #444;
  border-radius: 20px 0 0 20px;
  margin-right: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.logs-sidebar-item.active, .logs-sidebar-item:hover {
  background: #f4f4f5;
  color: #18181b;
  font-weight: 500;
}

.logs-logout-btn {
  margin: 32px 24px 24px 32px;
  padding: 10px 0;
  width: calc(100% - 56px);
  background: #fff0f0;
  color: #dc2626;
  border: 1px solid #ffe4e6;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  box-shadow: 0 1px 2px rgba(220,38,38,0.04);
  position: absolute;
  bottom: 0;
  left: 0;
}

.logs-logout-btn:hover, .logs-logout-btn:focus {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  outline: none;
}

.logs-main {
  flex: 1;
  padding: 72px 32px 32px 32px;
  background: #fafbfc;
  min-width: 0;
}

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

.logs-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #18181b;
}

.logs-header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.export-buttons {
  display: flex;
  gap: 0.5rem;
}

.export-button {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.export-button:hover:not(:disabled) {
  background: var(--background);
  border-color: var(--accent);
}

.export-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.filters-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

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

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.more-filters-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.more-filters-button:hover {
  color: var(--accent-hover);
}

.clear-filters-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  border-radius: 6px;
}

.clear-filters-button:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.more-filters-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.more-filters-icon.expanded {
  transform: rotate(180deg);
}

.more-filters-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
}

.filter-group input,
.filter-group select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--text);
  font-size: 0.875rem;
  width: 100%;
  transition: all 0.2s ease;
}

.filter-group input:hover,
.filter-group select:hover {
  border-color: var(--accent);
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.logs-container {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  overflow-x: auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 1200px;
}

.logs-table th {
  background: var(--background);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.logs-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.logs-table td:nth-child(3) {
  white-space: normal;
  min-width: 200px;
  max-width: 250px;
  word-wrap: break-word;
}

.logs-table td:nth-child(2) {
  max-width: 280px;
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.logs-table td:nth-child(7) {
  max-width: 200px;
  word-wrap: break-word;
  white-space: normal;
}

.logs-table td:nth-child(9) {
  max-width: 80px;
  text-align: center;
}

.logs-table td:nth-child(10) {
  max-width: 100px;
  text-align: center;
}

.log-row:hover {
  background: var(--background);
}

.log-level {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.log-level.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.log-level.warning {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.log-level.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.log-level.debug {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.no-logs {
  padding: 3rem;
  text-align: center;
  color: var(--text-light);
}

/* Base styles */
:root {
  --primary: #000b0f;
  --secondary: #ffffff;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text: #4b5563;
  --text-light: #6b7280;
  --background: #fafbfc;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --gradient-start: #3b82f6;
  --gradient-end: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

.theme-mode-icon-logs {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  z-index: 101;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.theme-mode-icon-logs:hover {
  opacity: 0.8;
}

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

  .logs-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .logs-header-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .export-buttons {
    flex-direction: column;
  }

  .filters-container {
    grid-template-columns: 1fr;
  }

  .logs-table {
    display: block;
    overflow-x: auto;
  }
}

.status-code {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
}

.status-code.success {
  background-color: #dcfce7;
  color: #166534;
}

.status-code.warning {
  background-color: #fef9c3;
  color: #854d0e;
}

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

select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--background);
  color: var(--text);
  font-size: 0.875rem;
  transition: all 0.2s;
  appearance: none;
  padding-right: 2rem;
}


select:hover {
  border-color: var(--accent);
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

select option {
  background-color: var(--card-bg);
  color: var(--text);
  padding: 0.5rem;
}

select:disabled {
  background-color: var(--background);
  cursor: not-allowed;
  opacity: 0.7;
} 

.refresh-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #18181b;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.refresh-button:hover {
  background: #18181b;
  color: #fff;
  border: 1px solid #18181b;
}

.refresh-icon {
  font-size: 18px;
  line-height: 1;
}