/* Loading State - Hide Content During Animation */
body.loading .workspace-page,
body.loading .sidebar,
body.loading .main-content {
  opacity: 0;
}

body.loaded .workspace-page,
body.loaded .sidebar,
body.loaded .main-content {
  animation: fadeInContent 0.5s ease forwards;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Workspace Page Layout */
.workspace-page {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

/* Loading Animation Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: logoAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 10px 25px rgba(37, 99, 235, 0.3));
  animation: logoPulse 2s ease-in-out infinite;
}

.logo-bg {
  animation: bgScale 2s ease-in-out infinite;
  transform-origin: center;
}

.logo-text {
  animation: textGlow 2s ease-in-out infinite;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    #2563eb,
    #1e3a8a,
    transparent
  );
  animation: progressSlide 1.5s ease-in-out infinite;
}

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 10px 25px rgba(37, 99, 235, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 35px rgba(37, 99, 235, 0.5));
  }
}

@keyframes bgScale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes textGlow {
  0%,
  100% {
    fill: #f8fafc;
    opacity: 1;
  }
  50% {
    fill: #ffffff;
    opacity: 0.95;
  }
}

@keyframes progressSlide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Hide content while loading */
.workspace-page.loading .workspace-sidebar,
.workspace-page.loading .workspace-main-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.workspace-page.loaded .workspace-sidebar,
.workspace-page.loaded .workspace-main-content {
  opacity: 1;
}

/* Left Sidebar Navigation */
.workspace-sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.back-to-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.back-to-home:hover {
  background: #2563eb;
  transform: translateX(-2px);
  color: white;
}

.back-icon {
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.back-to-home:hover .back-icon {
  transform: translateX(-3px);
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  margin: 0 0.75rem;
  border-radius: 8px;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #3b82f6;
  border-radius: 8px 0 0 8px;
  transition: width 0.2s ease;
}

.nav-item:hover {
  background: #f3f4f6;
  color: #1f2937;
  border-left-color: transparent;
}

.nav-item:hover::before {
  width: 3px;
}

.nav-item.active {
  background: #eff6ff;
  color: #3b82f6;
  border-left-color: transparent;
  font-weight: 600;
}

.nav-item.active::before {
  width: 3px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.user-info {
  margin-bottom: 0.875rem;
  padding: 0.5rem;
}

.user-email {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
  word-break: break-word;
}

.sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-link {
  padding: 0.625rem 0.875rem;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid #e5e7eb;
  background: white;
}

.auth-link:hover {
  background: #f3f4f6;
  color: #3b82f6;
  border-color: #3b82f6;
}

.logout-btn {
  background: white;
  color: #dc2626;
  border: 1px solid #fca5a5;
  cursor: pointer;
}

.logout-btn:hover {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #dc2626;
}

/* Main Content Area */
.workspace-main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  background: #f8fafc;
}

/* Enhanced Project Card Styles */

/* Enhanced Project Card Styles */
.project-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.project-info {
  flex: 1;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.project-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.project-status {
  margin-left: 1rem;
}

.status-badge {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-verified {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-locked {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.project-card-body {
  margin-bottom: 2rem;
}

.project-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.meta-icon {
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.meta-text {
  font-weight: 500;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.admin-controls {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.btn-sm {
  padding: 0.5rem;
  min-width: auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: none;
  color: #475569;
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  color: #2563eb;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
}

.project-card:hover::before {
  opacity: 1;
}

/* Enhanced Button Styles */
.btn {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: #2563eb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: #64748b;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.4);
}

.btn-secondary:active {
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

/* Enhanced Modal Styles */
.modal {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: white;
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
  background: white;
  position: relative;
  z-index: 1;
}

/* Ensure modal content is always visible */
.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none !important;
}

/* Enhanced Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Enhanced Button Styles */
.btn {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-icon {
  margin-right: 0.5rem;
}

/* Form Field Enhancements */
.form-group input[type="password"] {
  font-family: monospace;
  letter-spacing: 0.1em;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Required Field Indicator */
.form-group label:has-text("*")::after {
  content: " *";
  color: #ef4444;
  font-weight: bold;
}

/* Multi-select styling */
.form-group select[multiple] {
  background-image: none;
  padding-right: 0.75rem;
}

/* Modal Footer Enhancement */
.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 0 0 20px 20px;
  display: flex;
  justify-content: flex-end;
}

/* Create Project Modal Specific Enhancements */
#create-project-modal .modal-content {
  max-width: 700px;
}

#create-project-modal .form-group:first-child {
  margin-top: 0;
}

#create-project-modal .form-group:last-child {
  margin-bottom: 0;
}

/* Multi-Select Components */
.multi-select-container {
  position: relative;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  min-height: 44px;
  padding: 8px;
}

.multi-select-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.multi-select-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  background: transparent;
}

.multi-select-input input::placeholder {
  color: #9ca3af;
}

.add-author-btn,
.add-customer-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.add-author-btn:hover,
.add-customer-btn:hover {
  background: #2563eb;
}

.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.selected-tag {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 4px 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: tagAppear 0.2s ease;
}

.selected-tag .remove-tag {
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
}

.selected-tag .remove-tag:hover {
  background: #4f46e5;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background: #f9fafb;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-email {
  font-weight: 500;
  color: #1f2937;
}

.suggestion-name {
  font-size: 12px;
  color: #6b7280;
}

.suggestion-role {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #6b7280;
  margin-left: auto;
}

.suggestion-role.admin {
  background: #dbeafe;
  color: #1e40af;
}

.suggestion-role.client {
  background: #dcfce7;
  color: #166534;
}

@keyframes tagAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Form Field Groups */
.form-group.password-field {
  position: relative;
}

.form-group.password-field::after {
  content: "🔒";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.5;
  pointer-events: none;
}

/* Enhanced Select Dropdown Styling */
.form-group select option {
  padding: 0.5rem;
  background: white;
  color: #374151;
}

.form-group select option:hover {
  background: #f3f4f6;
}

/* Loading State for Form */
.form-loading {
  opacity: 0.6;
  pointer-events: none;
}

.form-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #3b82f6;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Form Validation States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Modal Animation Enhancements */
.modal.show .modal-content {
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Enhanced Status Badges */
.status-badge {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-verified {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-locked {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Report Badge */
.badge-report {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  margin-left: 0.5rem;
}

/* Report Cards Styling */
.reports-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.report-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.report-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.report-card:hover::before {
  opacity: 1;
}

.report-card-icon {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-right: 1px solid #e5e7eb;
  position: relative;
  z-index: 1;
}

.report-icon {
  font-size: 3rem;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.report-card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.report-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.report-card:hover .report-title {
  color: #10b981;
}

.report-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.report-description {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.report-description-empty {
  color: #d1d5db;
  font-size: 0.875rem;
  font-style: italic;
  margin: 0;
}

.report-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.report-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #9ca3af;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 5;
}

.report-actions .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.report-actions .btn:hover {
  transform: translateY(-2px);
}

.report-actions .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.report-actions .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Legacy support for old report-item structure */
.report-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.report-header h4 {
  margin: 0;
  flex: 1;
}

/* Enhanced Loading Animation */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced Typography */
.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.project-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.project-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Enhanced Workspace Header */
.workspace-header {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.workspace-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

/* Enhanced Form Styles */
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Enhanced Error State */
.error-state {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-radius: 16px;
  border: 1px solid #fecaca;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.error-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.error-state p {
  color: #7f1d1d;
  margin-bottom: 1.5rem;
}

/* Enhanced Project Meta */
.project-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.project-date,
.project-authors {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Enhanced Workspace Actions */
.workspace-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-icon {
  margin-right: 0.5rem;
}

/* Enhanced Project Card Layout */
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-card-body {
  margin-bottom: 1.5rem;
}

.project-card-footer {
  display: flex;
  justify-content: flex-end;
}

/* Delete Modal Warning Styles */
.warning-message {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.warning-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.warning-message h4 {
  color: #dc2626;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.warning-message p {
  color: #7f1d1d;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .workspace-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
  }

  .workspace-sidebar.open {
    transform: translateX(0);
  }

  .workspace-main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.625rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .sidebar-toggle:hover {
    background: #f8fafc;
    border-color: #3b82f6;
  }

  .toggle-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #374151;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-status {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .project-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .admin-controls {
    margin-left: 0;
    justify-content: center;
  }

  .workspace-header {
    padding: 1.5rem;
  }

  .workspace-header h2 {
    font-size: 1.5rem;
  }

  .workspace-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .attachment-card {
    flex-direction: column;
  }

  .attachment-card-icon {
    width: 100%;
    height: 80px;
  }

  .attachment-card-actions {
    width: 100%;
    justify-content: space-between;
  }

  .report-card {
    flex-direction: column;
  }

  .report-card-icon {
    width: 100%;
    height: 80px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .report-card-content {
    padding: 1.25rem;
  }

  .report-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .report-badge {
    align-self: flex-start;
  }

  .report-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .report-actions {
    width: 100%;
  }

  .report-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Enhanced Attachment Card Styles - Hover Overlay Design */
.attachments-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.attachment-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.attachment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.attachment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.attachment-card:hover::before {
  opacity: 1;
}

.attachment-card-file::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.attachment-card-webpage::before {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.attachment-card-icon {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-right: 1px solid #e5e7eb;
  position: relative;
  z-index: 1;
}

.attachment-card-file .attachment-card-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.attachment-card-webpage .attachment-card-icon {
  background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
}

.attachment-icon {
  font-size: 3rem;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.attachment-icon svg {
  color: #3b82f6;
  opacity: 0.7;
}

.attachment-card-webpage .attachment-icon svg {
  color: #8b5cf6;
}

.attachment-card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.attachment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.attachment-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.attachment-title:hover {
  color: #3b82f6;
}

.attachment-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.attachment-badge-file {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.attachment-badge-webpage {
  background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
  color: #6b21a8;
  border: 1px solid #c084fc;
}

.attachment-description {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.attachment-description-empty {
  color: #d1d5db;
  font-size: 0.875rem;
  font-style: italic;
  margin: 0;
}

.attachment-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.attachment-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.attachment-size {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  color: #6b7280;
}

.meta-icon {
  opacity: 0.6;
}

/* Hover Overlay - Action Buttons */
.attachment-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.attachment-card:hover .attachment-card-overlay {
  opacity: 1;
}

.attachment-overlay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem;
  justify-content: center;
  align-items: center;
}

.btn-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
  backdrop-filter: blur(8px);
}

.btn-overlay:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.btn-overlay:active {
  transform: translateY(0) scale(1);
}

.btn-overlay svg {
  width: 20px;
  height: 20px;
}

.btn-overlay span {
  font-size: 0.875rem;
  text-align: center;
}

.btn-view {
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-view:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.7);
}

.btn-download {
  border-color: rgba(16, 185, 129, 0.5);
}

.btn-download:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.7);
}

.btn-edit {
  border-color: rgba(245, 158, 11, 0.5);
}

.btn-edit:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: rgba(245, 158, 11, 0.7);
}

.btn-remove {
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.7);
}

/* Responsive attachment cards */
@media (max-width: 768px) {
  .attachment-card {
    flex-direction: column;
  }

  .attachment-card-icon {
    width: 100%;
    height: 120px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .attachment-overlay-buttons {
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem;
  }

  .btn-overlay {
    min-width: 70px;
    padding: 0.75rem 0.5rem;
  }

  .btn-overlay span {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .attachments-list {
    grid-template-columns: 1fr;
  }

  .attachment-card-content {
    padding: 1.25rem;
  }

  .attachment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .attachment-overlay-buttons {
    padding: 0.75rem;
  }

  .btn-overlay {
    min-width: 60px;
    padding: 0.625rem 0.375rem;
    gap: 0.25rem;
  }

  .btn-overlay svg {
    width: 18px;
    height: 18px;
  }
}
