/* ===========================================
   Y COMMUNITY - DASHBOARD CSS ENHANCED
   דשבורד מתקדם עם כל התכונות
   =========================================== */

/* Navigation Header Enhanced */
.nav-header {
  background: var(--brand-gradient-primary);
  box-shadow: 0 4px 20px rgba(1, 48, 36, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand-white);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

/* Navigation Menu */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu a {
  color: var(--brand-white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-menu a:hover {
  background: rgba(160, 223, 80, 0.2);
  transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--brand-white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem 0;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  color: var(--brand-primary-dark);
  display: block;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--brand-primary-light-10);
  transform: none;
}

/* User Section */
.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brand-white);
}

.user-greeting {
  font-weight: 500;
}

.user-name {
  color: var(--brand-primary-light);
  font-weight: 700;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  color: var(--brand-white);
  border: 2px solid rgba(239, 68, 68, 0.3);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: #ef4444;
  border-color: #dc2626;
  transform: translateY(-2px);
}

/* Dashboard Main */
.dashboard-main {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: calc(100vh - 80px);
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 1rem;
  background: var(--brand-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-subtitle {
  font-size: 1.2rem;
  color: var(--brand-gray-600);
  font-weight: 500;
  margin-bottom: 0;
}

/* Branches Grid */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.branch-card {
  background: var(--brand-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: var(--brand-primary-light);
}

.branch-card:hover::before {
  transform: scaleX(1);
}

.branch-card.coming-soon {
  opacity: 0.8;
  position: relative;
}

.branch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--brand-gradient-primary);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(1, 48, 36, 0.3);
}

.branch-icon .icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.branch-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 1rem;
}

.branch-description {
  color: var(--brand-gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.branch-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.feature {
  background: var(--brand-primary-light-10);
  color: var(--brand-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--brand-primary-light-20);
}

.coming-soon-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--brand-warning);
  color: var(--brand-white);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.branch-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brand-gray-200);
}

.action-text {
  font-weight: 600;
  color: var(--brand-primary-dark);
}

.action-arrow {
  font-size: 1.5rem;
  color: var(--brand-primary-light);
  transition: transform 0.3s ease;
}

.branch-card:hover .action-arrow {
  transform: translateX(-4px);
}

/* Tools Section */
.tools-section {
  margin-bottom: 4rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 2rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--brand-white);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-primary-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.tool-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--brand-gray-600);
  line-height: 1.4;
}

/* Stats Section */
.stats-section {
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--brand-white);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--brand-gray-600);
  font-weight: 500;
}

/* Modal Enhancements */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--brand-white);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--brand-gray-200);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brand-gray-500);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--brand-gray-100);
  color: var(--brand-gray-700);
}

.modal-body {
  padding: 2rem;
}

.coming-soon-content {
  text-align: center;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.coming-soon-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 1rem;
}

.coming-soon-content p {
  color: var(--brand-gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.features-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-preview {
  background: var(--brand-primary-light-10);
  color: var(--brand-primary-dark);
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--brand-primary-light-20);
}

.progress-bar {
  background: var(--brand-gray-200);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  background: var(--brand-gradient-primary);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--brand-primary-dark);
  font-weight: 600;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--brand-gray-200);
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    order: 2;
  }
  
  .nav-user {
    order: 1;
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
  }
  
  .dashboard-title {
    font-size: 2rem;
  }
  
  .branches-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .dashboard-main {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  }
  
  .branch-card,
  .tool-card,
  .stat-card,
  .modal-content {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .dashboard-title {
    color: #e2e8f0;
  }
  
  .branch-title,
  .tool-card h4,
  .stat-number {
    color: #e2e8f0;
  }
} 