/* User Permissions Professional Styling */

.user-permissions-page {
  max-width: 100%;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: calc(100vh - 140px);
}

.user-permissions-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Card */
.user-permissions-header-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 40px;
}

.user-permissions-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 50px 40px;
  text-align: center;
  color: white;
}

.user-permissions-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

.user-permissions-subtitle {
  font-size: 20px;
  margin: 0;
  opacity: 0.95;
  font-weight: 300;
}

/* Content Section */
.user-permissions-content {
  background: white;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

/* Section Styling */
.permission-section,
.remove-access-section,
.best-practices-section {
  margin-bottom: 60px;
}

.permission-section:last-child,
.remove-access-section:last-child,
.best-practices-section:last-child {
  margin-bottom: 0;
}

.section-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
  display: block;
}

.permission-section h2,
.remove-access-section h2,
.best-practices-section h2 {
  font-size: 32px;
  color: #1f2937;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
  font-weight: 700;
  text-align: center;
}

.intro-text {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 30px 0;
  text-align: center;
}

/* Permissions Grid */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.permission-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.permission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.permission-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.permission-card h3 {
  font-size: 22px;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.permission-card p {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
  opacity: 0.95;
}

/* Image Container */
.image-container {
  margin: 40px 0;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.02);
}

/* Info Box */
.info-box {
  display: flex;
  gap: 20px;
  background: #eff6ff;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
}

.info-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 20px;
  color: #1e40af;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.info-content p {
  font-size: 15px;
  color: #1e3a8a;
  margin: 0;
  line-height: 1.6;
}

/* Steps Container */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 40px 0;
}

.access-step {
  display: flex;
  gap: 20px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 30px;
  border-left: 5px solid #667eea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.access-step:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-content h3 {
  font-size: 22px;
  color: #1f2937;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.step-content p {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.7;
}

.step-content strong {
  color: #667eea;
  font-weight: 700;
}

/* Warning Box */
.warning-box {
  display: flex;
  gap: 20px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
}

.warning-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.warning-content h4 {
  font-size: 20px;
  color: #92400e;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.warning-content p {
  font-size: 15px;
  color: #78350f;
  margin: 0;
  line-height: 1.6;
}

/* Best Practices Section */
.best-practices-section {
  padding-top: 40px;
  border-top: 3px solid #667eea;
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.practice-card {
  background: #f9fafb;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.practice-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.practice-card h3 {
  font-size: 20px;
  color: #1f2937;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.practice-card p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-permissions-page {
    padding: 20px 15px;
  }

  .user-permissions-header {
    padding: 40px 25px;
  }

  .user-permissions-title {
    font-size: 36px;
  }

  .user-permissions-subtitle {
    font-size: 16px;
  }

  .user-permissions-content {
    padding: 30px 20px;
  }

  .permissions-grid,
  .practices-grid {
    grid-template-columns: 1fr;
  }

  .info-box,
  .warning-box {
    flex-direction: column;
    gap: 15px;
  }

  .access-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .user-permissions-title {
    font-size: 28px;
  }

  .permission-section h2,
  .remove-access-section h2,
  .best-practices-section h2 {
    font-size: 26px;
  }

  .permission-card,
  .practice-card {
    padding: 20px;
  }
}
