@import "tailwindcss";

:root {
  --color-blue: #4a6cf7;
  --color-purple: #8e44ad;
  --color-green: #2ecc71;
  --color-orange: #e67e22;
  --color-pink: #e84393;
  --color-gray: #f8f9fa;
  --color-text: #333;
  --color-border: #eaeaea;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --transition: all 0.2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background-color: var(--color-gray);
  line-height: 1.6;
}

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

.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.app-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-subtitle {
  font-size: 1.1rem;
  color: #666;
}

.app-nav {
  margin-bottom: 2rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: white;
  border: none;
  flex: 1;
  min-width: 100px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-text);
  font-weight: 500;
}

.nav-button.active {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-button.blue.active { color: var(--color-blue); }
.nav-button.purple.active { color: var(--color-purple); }
.nav-button.green.active { color: var(--color-green); }
.nav-button.orange.active { color: var(--color-orange); }
.nav-button.pink.active { color: var(--color-pink); }

.nav-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.nav-text {
  font-size: 0.9rem;
}

.app-content {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  min-height: 500px;
}

.content-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.content-icon {
  font-size: 1.75rem;
  margin-right: 0.75rem;
}

.content-icon.blue { color: var(--color-blue); }
.content-icon.purple { color: var(--color-purple); }
.content-icon.green { color: var(--color-green); }
.content-icon.orange { color: var(--color-orange); }
.content-icon.pink { color: var(--color-pink); }

.content-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

/* Component card styles */
.demo-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.demo-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.demo-card h3 span {
  margin-right: 0.5rem;
}

.demo-card-content {
  background-color: #f8fafc;
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* Buttons */
.demo-button {
  background-color: var(--color-blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.demo-button:hover {
  opacity: 0.9;
}

.demo-button.green { background-color: var(--color-green); }
.demo-button.red { background-color: #e74c3c; }
.demo-button.purple { background-color: var(--color-purple); }
.demo-button.orange { background-color: var(--color-orange); }

/* Forms */
.demo-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.demo-input:focus {
  outline: none;
  border-color: var(--color-blue);
}

.app-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .app-container {
    padding: 1rem;
  }
  
  .nav-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .nav-button {
    min-width: auto;
    padding: 0.5rem;
  }
  
  .content-header h2 {
    font-size: 1.5rem;
  }
  
  .app-content {
    padding: 1.5rem;
  }
}