/* Estilos modernos para o Magyst */
:root {
  --primary-color: #7561FD;
  --secondary-color: #1C1C1C;
  --background-color: #f8f9fc;
  --text-color: #333;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --error-color: #dc3545;
  --light-purple: #ece9ff;
  --dark-purple: #5240d5;
  --gray-light: #f0f0f0;
  --gray-medium: #888;
  --shadow-sm: 0 2px 4px rgba(117, 97, 253, 0.1);
  --shadow-md: 0 4px 8px rgba(117, 97, 253, 0.15);
  --shadow-lg: 0 8px 16px rgba(117, 97, 253, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Estilos gerais */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* Header moderno */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.brand img {
  height: 40px;
}

.brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

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

#user-name {
  font-weight: 500;
  color: var(--primary-color);
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 1rem;
  transition: color 0.2s;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
}

.nav-link:hover {
  color: var(--dark-purple);
  background-color: var(--light-purple);
}

.logout-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Seção de entrada */
.input-section {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  position: relative;
  border: 1px solid var(--border-color);
}

.plano-info {
  background-color: var(--light-purple);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(117, 97, 253, 0.2);
}

.plano-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.uso-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-container {
  width: 200px;
  height: 10px;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.input-group {
  display: flex;
  gap: 1rem;
}

input[type="url"],
input[type="text"],
input[type="email"],
input[type="password"] {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--light-purple);
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button:hover {
  background-color: var(--dark-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Seção de resultado */
.result-section {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: none;
  border: 1px solid var(--border-color);
}

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

.result-header h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 0;
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-button {
  background-color: transparent;
  color: var(--text-color);
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  box-shadow: none;
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  font-weight: 600;
}

.tab-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: none;
  box-shadow: none;
}

/* Autenticação */
.auth-container {
  max-width: 400px;
  margin: 50px auto;
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.auth-header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.auth-button {
  width: 100%;
  margin-top: 1.5rem;
}

.auth-links {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Mensagens */
.error-message {
  color: var(--error-color);
  background-color: rgba(220, 53, 69, 0.1);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: none;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.success-message {
  color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.1);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: none;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .user-info {
    width: 100%;
    justify-content: flex-end;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .actions {
    width: 100%;
  }
}
