:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #059669;
  --danger-color: #dc2626;
  --warning-color: #d97706;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: white;
  color: var(--gray-900);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.user-info:hover {
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.user-avatar-small {
  border: 2px solid var(--primary-color);
  transition: transform 0.2s;
}

.user-avatar-small:hover {
  transform: scale(1.05);
}

.user-name {
  font-size: 0.9rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.menu-toggle:hover {
  background-color: var(--gray-100);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gray-200);
}

.sidebar.open {
  right: 0;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  color: white;
  position: relative;
}

.sidebar-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.sidebar-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.sidebar-content {
  flex: 1;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.user-profile {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.user-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  display: block;
}

.user-name-large {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.user-email {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.sidebar-nav {
  list-style: none;
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.sidebar-nav li {
  margin-bottom: 0.75rem;
}

.sidebar-nav li:last-child {
  margin-bottom: 0;
  border-top: 1px solid var(--gray-200);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--gray-700);
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
  position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover {
  background-color: var(--gray-50);
  color: var(--gray-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 2px 2px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.btn-secondary:hover {
  background-color: var(--gray-200);
}

.btn-success {
  background-color: var(--secondary-color);
  color: white;
}

.btn-success:hover {
  background-color: #047857;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 90px);
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(37, 99, 235, 0.05) 50%, transparent 100%);
  pointer-events: none;
}

.welcome-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.welcome-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* News Section */
.news-section {
  margin-top: 4rem;
  background: white;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-100);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  background: white;
  border-radius: 1.25rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.news-description {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-date,
.news-author {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-author {
  color: var(--primary-color);
  font-weight: 500;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  margin: 2rem auto;
  padding: 0;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--gray-500);
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

.modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-file {
  padding: 0.5rem;
}

/* Loading */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

/* Profile Page */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.profile-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 2rem;
}

.profile-header {
  background: linear-gradient(135deg, var(--primary-color), #1e40af);
  padding: 2rem;
  text-align: center;
  color: white;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

.profile-info {
  padding: 2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--gray-700);
}

.info-value {
  color: var(--gray-900);
}

/* Future Sections */
.future-sections {
  margin-top: 4rem;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.future-title {
  color: var(--gray-800);
  margin-bottom: 3rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.future-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  cursor: pointer;
}

.future-item:hover {
  background-color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.future-icon {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.future-item:hover .future-icon {
  transform: scale(1.1);
}

.future-label {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 1rem;
}

/* Utilities */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .header-content {
    flex-wrap: wrap;
    padding: 1rem 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.75rem;
  }
  
  .user-info {
    padding: 0.4rem 0.75rem;
  }
  
  .user-name {
    display: none;
  }
  
  .welcome-section {
    padding: 2.5rem 1.5rem;
    margin-bottom: 3rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .welcome-description {
    font-size: 1rem;
  }
  
  .news-section {
    padding: 2rem 1.5rem;
    margin-top: 3rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
  
  .section-title {
    justify-content: center;
    font-size: 1.5rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-actions {
    justify-content: center;
  }
  
  .future-sections {
    padding: 3rem 1.5rem;
    margin-top: 3rem;
  }
  
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .future-item {
    padding: 1.5rem 1rem;
  }
  
  .profile-container {
    padding: 1rem;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .welcome-section {
    padding: 2rem 1rem;
    border-radius: 1rem;
  }
  
  .welcome-title {
    font-size: 1.75rem;
  }
  
  .news-section {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
  }
  
  .news-content {
    padding: 1rem;
  }
  
  .modal-body,
  .modal-header,
  .modal-footer {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
  
  .future-sections {
    padding: 2rem 1rem;
    border-radius: 1rem;
  }
  
  .future-grid {
    grid-template-columns: 1fr;
  }
  
  .future-item {
    padding: 1.25rem 1rem;
  }
  
  .sidebar {
    width: 300px;
    right: -300px;
  }
  
  .sidebar-content {
    padding: 1.5rem 1rem;
  }
  
  .user-profile {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .user-avatar-large {
    width: 70px;
    height: 70px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Permissions Page Styles */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.permission-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.permission-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.permission-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.admin-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-email {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
}

.admin-level {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  width: fit-content;
}

.admin-level.super_admin {
  background: linear-gradient(135deg, var(--primary-color), #1e40af);
  color: white;
}

.admin-level:not(.super_admin) {
  background: var(--secondary-color);
  color: white;
}

.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.permission-item:hover {
  background: var(--gray-50);
  border-color: var(--primary-color);
}

.permission-icon {
  font-size: 1.25rem;
  width: 2rem;
  text-align: center;
}

.permission-name {
  font-weight: 500;
  color: var(--gray-700);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.security-warnings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.warning-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--warning-color);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.warning-item:hover {
  background: rgba(251, 191, 36, 0.15);
  transform: translateX(-2px);
}

.warning-icon {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.warning-content {
  flex: 1;
}

.warning-title {
  font-weight: 600;
  color: var(--warning-color);
  margin-bottom: 0.25rem;
}

.warning-text {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Responsive adjustments for permissions page */
@media (max-width: 768px) {
  .permissions-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .permission-card {
    padding: 1rem;
  }
  
  .warning-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  .sidebar,
  .menu-toggle,
  .admin-actions,
  .modal,
  .btn {
    display: none !important;
  }
}