/* src/styles/index.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* === GLOBAL === */
body {
  background-color: #f7fafc;
  color: #2d3748;
  font-family: 'Inter', sans-serif;
}

/* === BUTTONS === */
.btn {
  background-color: #2b6cb0;
  color: white;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #4299e1;
}

.btn-icon svg {
  width: 1rem;
  height: 1rem;
}

.btn-success {
  background-color: #38a169;
}

.btn-success:hover {
  background-color: #48bb78;
}

.btn-danger {
  background-color: #e53e3e;
}

.btn-danger:hover {
  background-color: #f56565;
}

/* === FORMS === */
.input,
.textarea,
.select {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  width: 100%;
  height: 2.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}

/* === CARDS === */
.card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

/* === LINKS === */
.link {
  color: #2b6cb0;
  text-decoration: underline;
}

.link:hover {
  color: #4299e1;
}

/* === SECTION TITLES === */
.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 1rem;
}

/* === BADGES === */
.badge {
  background-color: #c6f6d5;
  color: #22543d;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  margin-right: 0.25rem;
  display: inline-block;
}

.badge-blue {
  background-color: #bee3f8;
  color: #2c5282;
}

/* === LAYOUT CONTAINERS === */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-light {
  background-color: #f7fafc;
}

.page-dark {
  background-color: #1a202c;
  color: #edf2f7;
}

/* === SPINNER === */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #2b6cb0;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}