/* src/public/css/style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.header {
  background: #1a1a2e;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

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

.main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Login Page */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.login-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #1a1a2e;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #4f46e5;
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-secondary {
  background: #e5e5e5;
  color: #333;
}

.error {
  background: #fee2e2;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Dashboard */
.brand-section {
  background: white;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.brand-header {
  background: #1a1a2e;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
}

.brand-content {
  padding: 1.5rem;
}

.section-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}

.site-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.site-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.status-live {
  background: #dcfce7;
  color: #16a34a;
}

.status-preview {
  background: #fef3c7;
  color: #d97706;
}

.status-none {
  background: #e5e5e5;
  color: #666;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

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

.btn-success {
  background: #16a34a;
  color: white;
}

.btn-warning {
  background: #d97706;
  color: white;
}

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

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: opacity 0.3s;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
}

.toast-info {
  background: #3b82f6;
  color: white;
}

.toast-success {
  background: #16a34a;
  color: white;
}

.toast-error {
  background: #dc2626;
  color: white;
}

.input-text {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.loading {
  color: #666;
  font-style: italic;
}

.no-lps {
  color: #999;
}

.add-lp {
  display: flex;
  align-items: center;
}

/* Deploy Progress UI */
.deploy-progress {
  flex: 1;
  min-width: 200px;
}

.progress-bar {
  background: #e5e5e5;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress-fill {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-status {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}
