/* Additional styling for the projects page */

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.nav-links a i {
  margin-right: 8px;
}

.nav-links a:hover {
  color: #e4e6eb;
  background-color: rgba(59, 130, 246, 0.1);
}

.nav-links a.active {
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.action-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-item {
  background-color: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s;
}

.project-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background-color: rgba(30, 41, 59, 0.7);
}

.project-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

.project-icon i {
  color: #3b82f6;
  font-size: 22px;
}

.project-info {
  flex: 1;
}

.project-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #e4e6eb;
}

.project-info p {
  color: #94a3b8;
  font-size: 14px;
}

.project-actions {
  display: flex;
  gap: 10px;
}

.project-actions button,
.project-actions a {
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.project-actions button:hover,
.project-actions a:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.btn-view:hover {
  color: #3b82f6;
}

.btn-edit:hover {
  color: #f59e0b;
}

.btn-delete:hover {
  color: #ef4444;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0;
  color: #64748b;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #475569;
}

.empty-state p {
  font-size: 16px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.modal-content {
  background-color: #1e293b;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: #94a3b8;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.close:hover {
  color: #e4e6eb;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #e4e6eb;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 6px;
  background-color: #0f172a;
  color: #e4e6eb;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #3b82f6;
  outline: none;
}

.icon-preview {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 50px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
  border-radius: 8px;
}

.icon-preview i {
  font-size: 24px;
  color: #3b82f6;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

.btn-cancel {
  background: none;
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background-color: rgba(71, 85, 105, 0.1);
  color: #e4e6eb;
}

.btn-submit {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Ensure the edit modal displays correctly */
#edit-project-modal.modal {
  z-index: 1000; /* Make sure it's on top of other elements */
}

#edit-project-modal .modal-content {
  z-index: 1001;
}

/* Debugging helper for modal display issues */
.modal.debug-visible {
  display: block !important;
  background-color: rgba(255, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .project-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .project-icon {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .project-info {
    margin-bottom: 15px;
    width: 100%;
  }
  
  .project-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Add these styles to the end of the file for public project indicators */

.public-project {
  border-color: rgba(59, 130, 246, 0.3);
  background-color: rgba(30, 41, 59, 0.6);
}

.public-project:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background-color: rgba(30, 41, 59, 0.8);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-badge i {
  margin-right: 4px;
}

.project-badge.public {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-author {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
  font-style: italic;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  cursor: pointer;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.tooltip-icon {
  margin-left: 6px;
  font-size: 0.85rem;
  color: #64748b;
  cursor: help;
}

.login-btn {
  display: flex;
  align-items: center;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
}

.login-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

.login-btn i {
  margin-right: 6px;
}
