@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #22c55e;
  --primary-dark: #15803d;
  --secondary: #86efac;
  --background: #f0fdf4;
  --surface: #ffffff;
  --text: #064e3b;
  --text-light: #059669;
  --error: #dc2626;
  --success: #16a34a;
  --gradient: linear-gradient(135deg, #22c55e, #15803d);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

body {
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar Styles */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Main Container Styles */
.main-container {
  max-width: 480px;
  margin: 130px auto 40px;
  padding: 0 1.5rem;
}

/* Auth Container Styles */
.auth-container, .profile-card {
  background: var(--surface);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
}

/* Typography */
h1, h2, .profile-header {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
  text-align: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #dcfce7;
  border-radius: 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--background);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
}

/* Message Styles */
.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.welcome-message {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.welcome-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Button Styles */
.auth-btn, .submit-button, .logout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn:hover, .submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.logout-btn {
  background: var(--error);
  max-width: 200px;
  margin: 1.5rem auto 0;
}

.logout-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

/* Profile Specific Styles */
.profile-info {
  margin: 2rem 0;
}

.info-item {
  background: var(--background);
  padding: 1.25rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.info-label {
  color: var(--text-light);
  font-weight: 600;
  margin-left: 0.5rem;
}

.info-value {
  color: var(--text);
  font-weight: 500;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.modal-buttons .confirm-btn{
  padding: 6px 25px;
  background: #b91c1c;
  color: #dcfce7;
  border: none;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 700;
  margin: 15px 0;
}

.modal-buttons .cancel-btn{
  padding: 6px 25px;
  background: #059669;
  color: #dcfce7;
  border: none;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 700;
  margin: 15px 0;
}

.modal-content {
  background: var(--surface);
  border-radius: 20px;
  max-width: 400px;
  margin: 15% auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.1);
}

.modal-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--text);
}

/* Footer Styles */
.footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 2rem 1rem;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -4px 6px -1px rgba(34, 197, 94, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: var(--text);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Loading States */
.loading {
  position: relative;
  color: transparent !important;
}

.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 640px) {
  .main-container {
    margin: 100px auto 30px;
  }
  
  .auth-container, .profile-card {
    padding: 2rem;
  }
  
  h1, h2, .profile-header {
    font-size: 1.5rem;
  }
  
  .footer-links a {
    font-size: 0.875rem;
  }
  
  .social-icons a {
    font-size: 1.25rem;
  }
}

.account-link{
  text-align: center;
  margin: 15px 0;
}

.account-link a{
  color: #22c55e;
  transition: all 0.5s ease;
}

.account-link a:hover{
  color: #16a34a;
}