@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
  --primary-color: #3498db;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

body {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

.container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 20px 10px;
  transition: width var(--transition-speed) ease;
  height: 100vh;
  position: sticky;
  top: 0;
}

.logo {
  text-align: center;
  padding: 10px 0 20px;
}

.logo img {
  width: 80%;
  max-width: 150px;
}

.menu ul {
  list-style: none;
  padding: 10px 0;
}

.menu li {
  margin-bottom: 5px;
  border-radius: 8px;
  overflow: hidden;
}

.menu li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.menu li.active a {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.menu li a i {
  font-size: 18px;
  margin-left: 10px;
  width: 24px;
  text-align: center;
}

.profile {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info h3 {
  font-size: 14px;
  margin-bottom: 2px;
}

.user-info p {
  font-size: 12px;
  opacity: 0.7;
}

.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

header {
  margin-bottom: 30px;
}

header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
}

header p {
  opacity: 0.8;
  line-height: 1.6;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  font-size: 20px;
}

.card-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.card-info p {
  font-size: 14px;
  opacity: 0.8;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* أنماط قسم التقييمات */
.reviews-container {
  padding: 20px;
}

.reviews-container h2 {
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  color: rgba(255, 255, 255, 0.8);
}

.filter-group select {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #b7d0dc;
  min-width: 150px;
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.stat-info h3 {
  color: #fff;
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.stat-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.reviews-list {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
}

.review-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  border-left: 3px solid var(--primary-color);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-title {
  color: #fff;
  font-weight: 500;
}

.review-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.review-rating {
  color: #FFD700;
  margin: 5px 0;
}

.review-comment {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.loading-placeholder {
  text-align: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.6);
}

.loading-placeholder i {
  font-size: 24px;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-collapsed-width);
  }
  
  .menu li a span,
  .user-info {
    display: none;
  }
  
  .logo img {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .menu ul {
    display: flex;
    overflow-x: auto;
    padding: 10px 5px;
  }
  
  .menu li {
    flex: 0 0 auto;
    margin-bottom: 0;
    margin-right: 5px;
  }
  
  .menu li a {
    padding: 10px 15px;
    flex-direction: column;
    text-align: center;
    font-size: 12px;
  }
  
  .menu li a i {
    margin-left: 0;
    margin-bottom: 5px;
  }
  
  .profile {
    display: none;
  }
  
  .content {
    padding: 20px;
  }
  
  .review-filters {
    flex-direction: column;
  }
  
  .review-stats {
    grid-template-columns: 1fr;
  }




  
/* تنسيق صفحة  التقييمات 




/* أنماط تقييم الموظفين */
.evaluation-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.evaluation-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.select-input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  margin-top: 5px;
}

.evaluation-form {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-header {
  margin-bottom: 20px;
}

.form-header h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.evaluation-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.evaluation-item label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.rating-container {
  display: flex;
  gap: 10px;
}

.rating-container input[type="radio"] {
  display: none;
}

.rating-container label {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-container label:hover {
  background: var(--primary-color);
}

.rating-container input[type="radio"]:checked + label {
  background: var(--primary-color);
  transform: scale(1.1);
}

.comments-section {
  margin-top: 30px;
}

.comments-section textarea {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  margin-top: 10px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.loading-placeholder {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.6);
}

.loading-placeholder i {
  font-size: 24px;
  margin-bottom: 10px;
}

.error-message {
  text-align: center;
  padding: 40px;
  color: #ff6b6b;
}

.error-message i {
  font-size: 24px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .evaluation-header {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    justify-content: center;
  }
}

}