/* RTL Support */
html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

/* Responsive Container */
.max-w-7xl {
  width: 100%;
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-left: max(1rem, env(safe-area-inset-left));
}

@media (max-width: 640px) {
  nav .flex {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  
  nav .flex::-webkit-scrollbar {
    display: none;
  }
  
  .tab-btn {
    white-space: nowrap;
  }
}

/* Enhanced Tab Buttons */
.tab-btn {
  border-color: transparent;
  color: #64748b;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: #0f172a;
  background-color: #f8fafc;
}

.tab-btn.active {
  border-color: #3b82f6;
  color: #1d4ed8;
  font-weight: 500;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #3b82f6;
  border-radius: 2px;
}

/* Enhanced Form Styles */
input, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  outline: none;
  transition: all 0.2s ease;
  background-color: #fff;
}

input:hover, select:hover {
  border-color: #cbd5e1;
}

input:focus, select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced Card Styles */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.5);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Login Form Enhancements */
#loginForm {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

#loginFormElement {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

#loginFormElement:hover {
  transform: translateY(-2px);
}

/* Button Styles */
button[type="submit"] {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Header Enhancements */
header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 1.5rem;
  }
  
  .text-2xl {
    font-size: 1.25rem;
  }
}

/* Loading States */
button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Error Message Styling */
#loginError {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

button, select,input {
  height: 45px;
}

form#loginFormElement {
    padding: 15px;
    border-radius: 10px;
}


