* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  min-height: 100vh;
  color: #fff;
  direction: rtl;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

header h1 {
  font-size: 1.8rem;
  background: linear-gradient(90deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.car-card {
  text-align: center;
}

.car-display {
  padding: 2rem 0;
}

.car-indicator {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: all 0.3s ease;
}

/* Car Image Styles */
#car-image-wrapper {
  border-radius: 16px;
  padding: 4px;
  display: inline-block;
}

#car-image-wrapper.free {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  box-shadow: 0 0 20px rgba(56, 239, 125, 0.4);
}

#car-image-wrapper.taken {
  background: linear-gradient(135deg, #eb3349, #f45c43);
  box-shadow: 0 0 20px rgba(235, 51, 73, 0.4);
}

#car-status-emoji.free {
  content: '✅';
}

#car-status-emoji.taken {
  content: '🚗';
}

.car-message {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.holder-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 1rem 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

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

.user-info {
  flex: 1;
}

.user-info h2 {
  margin-bottom: 0.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-google {
  background: #fff;
  color: #333;
}

.btn-google:hover {
  background: #f5f5f5;
  transform: scale(1.02);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-logout {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.2);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.badge.approved {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.badge.pending {
  background: linear-gradient(135deg, #f2994a, #f2c94c);
  color: #333;
}

.badge.admin {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.car-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.text-muted {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

/* Admin Table */
.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.users-table th,
.users-table td {
  padding: 0.8rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.users-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.users-table img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.action-btn {
  padding: 0.4rem 0.8rem;
  margin: 0.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-approve {
  background: #11998e;
  color: #fff;
}

.btn-unapprove {
  background: #eb3349;
  color: #fff;
}

.btn-make-admin {
  background: #667eea;
  color: #fff;
}

.btn-remove-admin {
  background: #f2994a;
  color: #fff;
}

.action-btn:hover {
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 1.4rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .user-header {
    flex-direction: column;
    text-align: center;
  }
  
  .avatar {
    width: 60px;
    height: 60px;
  }
  
  .users-table {
    font-size: 0.85rem;
  }
  
  .users-table th,
  .users-table td {
    padding: 0.5rem 0.3rem;
  }
  
  .action-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
}