/* Terminal-style theme - Mac Terminal inspired */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Mac Terminal color palette */
  --bg: #1e1e1e;
  --bg-alt: #2d2d2d;
  --surface: #3c3c3c;
  --surface-alt: #4a4a4a;
  --border: #5a5a5a;
  --text: #c5c8c6;
  --text-dim: #8a9a8a;
  --text-bright: #ffffff;
  
  /* Accent colors */
  --accent: #4a90d9;
  --accent-hover: #5aa0e8;
  --accent-bg: rgba(74, 144, 217, 0.1);
  
  /* Status colors */
  --green: #4caf50;
  --green-bg: rgba(76, 175, 80, 0.1);
  --yellow: #ffc107;
  --yellow-bg: rgba(255, 193, 7, 0.1);
  --red: #f44336;
  --red-bg: rgba(244, 67, 54, 0.1);
  --blue: #2196f3;
  --blue-bg: rgba(33, 150, 243, 0.1);
  
  /* Avatar colors */
  --avatar-red: #ef4444;
  --avatar-orange: #f97316;
  --avatar-yellow: #eab308;
  --avatar-green: #22c55e;
  --avatar-blue: #3b82f6;
  --avatar-purple: #a855f7;
  --avatar-pink: #ec4899;
  --avatar-cyan: #06b6d4;
  
  /* User Avatar */
  .user-avatar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
  }
  
  .user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  
  /* Typography */
  --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  line-height: 1.5;
  font-size: 14px;
}

.container {
  max-width: 1000px;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2rem;
}

p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

input::placeholder {
  color: var(--text-dim);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: var(--font-mono);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-success {
  background: var(--green);
  color: #fff;
}

.btn-success:hover {
  background: #5cb85c;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover {
  background: #f55a4a;
  transform: translateY(-1px);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 13px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 16px;
}

/* Sections */
.section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Lists */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-dim);
  font-size: 14px;
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Status indicators */
.status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-success {
  background: var(--green-bg);
  color: var(--green);
}

.status-warning {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.status-error {
  background: var(--red-bg);
  color: var(--red);
}

.status-info {
  background: var(--blue-bg);
  color: var(--blue);
}

/* Progress bars */
.progress-section {
  margin-top: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 0.5rem;
}

.progress-bar-track {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--surface-alt);
  color: var(--text-bright);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}

.table tr:hover td {
  background: var(--bg-alt);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.upload-zone .icon {
  font-size: 2rem;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

/* Auth section */
.auth-section {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-alt);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}
