/* PBS Notify - Clean Light Theme */

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

:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-border: #e0e0e0;
  --color-text: #2c3e50;
  --color-text-light: #7f8c8d;
  --color-success: #27ae60;
  --color-error: #e74c3c;
  --color-primary: #3498db;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 15px;
}

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

/* Header */
header {
  text-align: center;
  margin-bottom: 48px;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.subtitle {
  color: var(--color-text-light);
  font-size: 14px;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}

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

.card-header h2 {
  margin-bottom: 0;
}

/* Status Message */
.status-message {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--color-text-light);
  font-size: 14px;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: var(--shadow-hover);
}

.btn:disabled {
  background: var(--color-border);
  color: var(--color-text-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn.unsubscribe {
  background: var(--color-error);
}

.btn-refresh {
  background: transparent;
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text-light);
}

.btn-refresh:hover {
  background: var(--color-bg);
  border-color: var(--color-text-light);
}

/* Statistics */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.stat-value {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.stat.success .stat-value {
  color: var(--color-success);
}

.stat.error .stat-value {
  color: var(--color-error);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-light);
}

/* Notifications List */
.notifications {
  max-height: 500px;
  overflow-y: auto;
}

.notification {
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all 0.2s;
}

.notification:hover {
  box-shadow: var(--shadow-hover);
}

.notification.success {
  border-left-color: var(--color-success);
}

.notification.error {
  border-left-color: var(--color-error);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.notification-status {
  font-weight: 600;
}

.notification.success .notification-status {
  color: var(--color-success);
}

.notification.error .notification-status {
  color: var(--color-error);
}

.notification-time {
  color: var(--color-text-light);
  font-size: 12px;
}

.notification-message {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
}

.loading,
.empty {
  text-align: center;
  padding: 40px;
  color: var(--color-text-light);
  font-size: 14px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 13px;
}

footer a {
  color: var(--color-primary);
  text-decoration: none;
}

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

/* Scrollbar */
.notifications::-webkit-scrollbar {
  width: 6px;
}

.notifications::-webkit-scrollbar-track {
  background: transparent;
}

.notifications::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.notifications::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-light);
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 20px 16px;
  }

  h1 {
    font-size: 28px;
  }

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

  .card {
    padding: 20px;
  }
}
