@tailwind base;
@tailwind components;
@tailwind utilities;

body, html {
  font-family: 'Heebo', 'Arial', sans-serif;
  direction: rtl;
  background: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
}

.auth-container, .main-app {
  max-width: 480px;
  margin: 0 auto;
  padding: 1em;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  margin: 1em 0;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

button {
  font-size: 1em;
  padding: 0.5em 1em;
  margin: 0.2em;
  border-radius: 5px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

button:hover {
  background: #e0f7fa;
}

.card-options {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 1em 0;
}

.card-option {
  background: #fff;
  border: 2px solid #bdbdbd;
  border-radius: 12px;
  padding: 1em;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-option.selected {
  border-color: #2196f3;
}

.card-option.correct {
  background: #e8f5e9;
  border-color: #4caf50;
}

.card-option.incorrect {
  background: #ffebee;
  border-color: #f44336;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.profile-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
}

.profile-edit-form input {
  margin-bottom: 0.5em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: center;
}


.nav-btn {
  @apply bg-gradient-to-r from-blue-600 to-purple-600 text-white px-5 py-2 rounded-full shadow-lg font-bold transition-all duration-200 hover:scale-110 hover:from-purple-600 hover:to-blue-600;
}

.animate-fade-in {
  animation: fade-in 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98);}
  to { opacity: 1; transform: translateY(0) scale(1);}
}

.nav-btn {
  @apply bg-gradient-to-r from-blue-600 to-purple-600 text-white px-5 py-2 rounded-full shadow-lg font-bold transition-all duration-200 hover:scale-110 hover:from-purple-600 hover:to-blue-600;
}
