body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  direction: rtl;
  text-align: center;
}

/* Login Form Styles */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-form h2 {
  color: #3f51b5;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.btn {
  background-color: #3f51b5;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.btn:hover {
  background-color: #303f9f;
}

.error-message {
  color: #f44336;
  margin-top: 10px;
  padding: 10px;
  background-color: #ffebee;
  border-radius: 5px;
}

.logout-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #f44336;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.logout-btn:hover {
  background-color: #d32f2f;
}

/* Table Styles */
table {
  margin: auto;
  border-collapse: collapse;
  width: 90%;
  background-color: #fff;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
}

th {
  background-color: #3f51b5;
  color: white;
  position: relative;
  cursor: pointer;
  user-select: none;
}

th:hover {
  background-color: #303f9f;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Sorting Styles */
.sort-indicator {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.7;
}

.sort-asc::after {
  content: "↑";
}

.sort-desc::after {
  content: "↓";
}

/* Filter Styles */
.filter-row {
  background-color: #e8eaf6;
}

.filter-input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 12px;
  box-sizing: border-box;
}

.filter-input:focus {
  outline: none;
  border-color: #3f51b5;
}

/* Controls Row */
.controls-row {
  margin: 20px auto;
  text-align: center;
  width: 90%;
}

.control-btn {
  background-color: #2196F3;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
  font-size: 14px;
}

.control-btn:hover {
  background-color: #1976D2;
}

.results-info {
  margin: 10px 0;
  color: #666;
  font-size: 14px;
}

/* Attachment Button Styles */
.view-attachment-btn {
  background-color: #4CAF50;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  min-width: 100px;
}

.view-attachment-btn:hover {
  background-color: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Checkbox Styles */
.review-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  transform: scale(1.2);
}

.review-checkbox:checked {
  accent-color: #4CAF50;
}

.review-checkbox:hover {
  transform: scale(1.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 80%;
  max-width: 800px;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.modal-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 5px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal-title {
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

h2 {
  margin-top: 40px;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  table {
    width: 100%;
    font-size: 12px;
  }
  
  th, td {
    padding: 5px;
  }
  
  .filter-input {
    font-size: 10px;
    padding: 3px;
  }
  
  .control-btn {
    font-size: 12px;
    padding: 6px 12px;
    margin: 2px;
  }
  
  .view-attachment-btn {
    font-size: 10px;
    padding: 4px 8px;
    min-width: 80px;
  }
} 