/* =========================================
   BestPlan Portal - Page Specific Styles
   Login, Dashboard, Profile, Documents
   ========================================= */

/* === Login oldal === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--bp-beige) 0%, var(--bp-beige-dark) 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, var(--bp-green) 0%, var(--bp-green-dark) 100%);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.login-logo {
  width: 120px;
  height: auto;
  margin: 0 auto var(--space-4);
}

.login-title {
  color: white;
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
}

.login-body {
  padding: var(--space-8) var(--space-6);
}

.login-footer {
  text-align: center;
  padding: var(--space-6);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.login-footer a {
  font-size: var(--font-size-sm);
}

/* === Dashboard layout === */
.dashboard-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.dashboard-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo {
  height: 72px;
  width: auto;
}

.header-user {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-user-info {
  text-align: right;
}

.header-user-name {
  font-weight: 600;
  color: var(--gray-800);
  font-size: var(--font-size-sm);
}

.header-user-id {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bp-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* Main content */
.dashboard-main {
  flex: 1;
  padding: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Welcome section */
.welcome-section {
  margin-bottom: var(--space-8);
}

.welcome-title {
  color: var(--bp-green-dark);
  margin-bottom: var(--space-2);
}

.welcome-subtitle {
  color: var(--gray-600);
  margin: 0;
}

/* Dashboard cards grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Feature cards */
.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--bp-green-light);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--bp-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
}

.feature-card p {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* === Profil oldal === */
.profile-section {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--gray-100);
}

.profile-header h2 {
  margin: 0;
  font-size: var(--font-size-lg);
}

.profile-body {
  padding: var(--space-6);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-field {
  display: flex;
  flex-direction: column;
}

.profile-field-label {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.profile-field-value {
  font-size: var(--font-size-base);
  color: var(--gray-800);
}

/* === Dokumentumok === */
.documents-section {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-6);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--bp-green);
  background: rgba(98, 148, 137, 0.05);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--gray-400);
}

.upload-text {
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.upload-hint {
  font-size: var(--font-size-xs);
  color: var(--gray-400);
}

/* Document list */
.document-list {
  list-style: none;
}

.document-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition-fast);
}

.document-item:last-child {
  border-bottom: none;
}

.document-item:hover {
  background: var(--gray-50);
}

.document-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bp-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-gold-dark);
}

.document-info {
  flex: 1;
  min-width: 0;
}

.document-name {
  font-weight: 500;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.document-meta {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
}

.document-actions {
  display: flex;
  gap: var(--space-2);
}

/* === Responsive === */
@media (max-width: 640px) {
  .header-inner {
    padding: var(--space-3) var(--space-4);
  }
  
  .header-user-info {
    display: none;
  }
  
  .dashboard-main {
    padding: var(--space-4);
  }
  
  .welcome-title {
    font-size: var(--font-size-xl);
  }
  
  .login-body {
    padding: var(--space-6) var(--space-4);
  }
  
  .feature-card {
    padding: var(--space-5);
  }
}
