/* apps/web/src/components/Layout.css */
.layout {
  display: flex;
  background-color: #f5f5f5;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  color: #fff;
  background-color: #1a1a1a;
  padding: 1rem 0;
  box-shadow: 0 2px 4px #0000001a;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo h1 {
  cursor: pointer;
  margin: 0;
  transition: color .2s;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo h1:hover {
  color: #4caf50;
}

.nav {
  display: flex;
  flex: 1;
  gap: 2rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
  font-size: .95rem;
}

.nav a:hover {
  color: #4caf50;
}

.auth-section {
  display: flex;
  align-items:  center;
  gap: 1rem;
  margin-left: auto;
}

.user-email {
  color: #ddd;
  font-size: .9rem;
}

.sign-in-btn, .sign-up-btn, .logout-btn {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: .5rem 1rem;
  transition: background-color .2s;
  font-size: .9rem;
}

.sign-in-btn {
  color: #fff;
  background-color: #0000;
  border: 1px solid #fff;
}

.sign-in-btn:hover {
  color: #1a1a1a;
  background-color: #fff;
}

.sign-up-btn {
  color: #fff;
  background-color: #4caf50;
}

.sign-up-btn:hover {
  background-color: #45a049;
}

.logout-btn {
  color: #fff;
  background-color: #f44336;
}

.logout-btn:hover {
  background-color: #da190b;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.footer {
  color: #fff;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  margin-top: 4rem;
  padding: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: #4caf50;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }

  .auth-section {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .footer-content {
    text-align: center;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    justify-content: center;
  }

  .main-content {
    padding: 1rem;
  }
}

/* apps/web/src/App.css */
* {
  box-sizing: border-box;
}

html, body, #root {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.loading {
  display: flex;
  color: #666;
  justify-content: center;
  align-items:  center;
  min-height: 100vh;
  font-size: 1.2rem;
}

.page {
  min-height: 100%;
  padding: 2rem 0;
}

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

.primary-btn, .secondary-btn {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: .75rem 1.5rem;
  transition: background-color .2s, transform .1s;
  font-size: 1rem;
  font-weight: 500;
}

.primary-btn {
  color: #fff;
  background-color: #4caf50;
}

.primary-btn:hover:not(:disabled) {
  background-color: #45a049;
  transform: translateY(-2px);
}

.primary-btn:disabled {
  cursor: not-allowed;
  background-color: #ccc;
}

.secondary-btn {
  color: #333;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

.secondary-btn:hover:not(:disabled) {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.secondary-btn:disabled {
  cursor: not-allowed;
  background-color: #f9f9f9;
}

.home-page .hero {
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  margin-bottom: 3rem;
  padding: 3rem 0;
}

.home-page .hero h2 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
}

.home-page .hero p {
  opacity: .9;
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

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

.features {
  margin-bottom: 3rem;
}

.features h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

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

.feature-card {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px #0000001a;
}

.feature-card h4 {
  color: #667eea;
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.info-section {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px #0000001a;
}

.info-section h3 {
  color: #667eea;
  margin-top: 0;
}

.steps {
  margin: 0;
  padding-left: 2rem;
  line-height: 1.8;
}

.steps li {
  margin-bottom: 1rem;
}

.turbo-landing-page .turbo-hero {
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 8px;
  margin-bottom: 3rem;
  padding: 3rem 0;
}

.turbo-landing-page .turbo-hero h2 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
}

.turbo-landing-page .turbo-hero p {
  opacity: .9;
  margin: 0;
  font-size: 1.1rem;
}

.turbo-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-section {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px #0000001a;
}

.feature-section h3 {
  color: #f5576c;
  margin-top: 0;
}

.benefits-list {
  margin: 0;
  padding-left: 2rem;
  line-height: 1.8;
}

.benefits-list li {
  margin-bottom: 1rem;
}

.turbo-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.dashboard-page {
  background-color: #fff;
  border-radius: 8px;
}

.dashboard-header {
  text-align: center;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.dashboard-header h2 {
  color: #333;
  margin: 0 0 .5rem;
}

.dashboard-header p {
  color: #666;
  margin: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px #0000001a;
}

.stat-card h3 {
  opacity: .9;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1rem;
  font-size: .9rem;
}

.stat-value {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
}

.stat-label {
  opacity: .9;
  margin: .5rem 0 0;
  font-size: .85rem;
}

.dashboard-section {
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 2rem;
  padding: 2rem;
}

.dashboard-section h3 {
  color: #333;
  border-bottom: 2px solid #667eea;
  margin-top: 0;
  padding-bottom: 1rem;
}

.empty-state {
  text-align: center;
  color: #666;
  padding: 2rem;
}

.devices-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.device-item {
  background: #fff;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  padding: 1.5rem;
}

.device-item h4 {
  color: #333;
  margin: 0 0 .5rem;
}

.device-item p {
  color: #666;
  margin: .5rem 0;
  font-size: .9rem;
}

.status-active {
  color: #4caf50;
  font-weight: bold;
}

.status-inactive {
  color: #ffa726;
  font-weight: bold;
}

.status-error {
  color: #f44336;
  font-weight: bold;
}

.transactions-list {
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}

.transactions-list table {
  border-collapse: collapse;
  width: 100%;
}

.transactions-list th {
  text-align: left;
  color: #333;
  background-color: #f0f0f0;
  border-bottom: 2px solid #ddd;
  padding: 1rem;
  font-weight: 600;
}

.transactions-list td {
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem;
}

.dashboard-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.auth-page {
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  justify-content: center;
  align-items:  center;
  min-height: 100vh;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}

.auth-card {
  background: #fff;
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 40px #0003;
}

.auth-card h2 {
  text-align: center;
  color: #333;
  margin: 0 0 2rem;
}

.auth-form {
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  color: #333;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 500;
}

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

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px #667eea1a;
}

.form-group input:disabled {
  cursor: not-allowed;
  background-color: #f9f9f9;
}

.input-error {
  color: #f44336;
  margin-top: .5rem;
  font-size: .85rem;
}

.error-message {
  color: #c62828;
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.auth-footer {
  text-align: center;
  color: #666;
  font-size: .9rem;
}

.auth-footer p {
  margin: .5rem 0;
}

.auth-footer a {
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}

.auth-footer a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.terms {
  color: #999;
  font-size: .85rem;
  margin-top: 1rem !important;
}

@media (max-width: 768px) {
  .page-content {
    padding: 0 1rem;
  }

  .home-page .hero h2, .turbo-landing-page .turbo-hero h2 {
    font-size: 1.8rem;
  }

  .cta-buttons, .turbo-cta, .dashboard-actions {
    flex-direction: column;
  }

  .cta-buttons button, .turbo-cta button, .dashboard-actions button {
    width: 100%;
  }

  .dashboard-stats, .devices-list {
    grid-template-columns: 1fr;
  }

  .auth-container {
    max-width: 100%;
  }
}
