:root {
  --primary-color: #00B7D9;
  --secondary-color: #6BD9FF;
  --success-color: #38B24A;
  --warning-color: #FF8A4B;
  --danger-color: #FF5547;
  --info-color: #3B82F6;
  --dark-bg: #0F172A;
  --card-bg: #1E293B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --border-color: #334155;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.modern-dashboard {
  background: #0F172A;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
}

.content-wrapper {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

/* Modern Back Button */
.modern-back-btn:hover {
  color: var(--primary-color) !important;
  transform: translateX(-4px);
}

/* Task Detail Header */
.task-detail-header {
  animation: fadeInUp 0.5s ease;
}

/* Form Inputs */
.form-control {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 183, 217, 0.1);
  color: var(--text-primary);
  outline: none;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 183, 217, 0.3);
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #2fa03d;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(56, 178, 74, 0.3);
}

/* ============================================
   DAILY REPORT MODAL STYLES
   ============================================ */
.daily-report-modal .modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.daily-report-modal .modal-header {
  background: linear-gradient(135deg, rgba(0, 183, 217, 0.1), rgba(107, 217, 255, 0.05));
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.daily-report-modal .modal-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.daily-report-modal .modal-title i {
  color: var(--primary-color);
  font-size: 1.75rem;
}

.daily-report-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.daily-report-modal .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.daily-report-modal .modal-body {
  padding: 2rem;
  max-height: 75vh;
  overflow-y: auto;
}

.daily-report-modal .modal-body::-webkit-scrollbar {
  width: 8px;
}

.daily-report-modal .modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
}

.daily-report-modal .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-sm);
}

.daily-report-modal .modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Daily Report Form Grid */
.dr-form-grid {
  display: grid;
  gap: 1.5rem;
}

.dr-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dr-form-group.col-span-2 {
  grid-column: span 2;
}

.dr-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dr-label i {
  color: var(--primary-color);
  font-size: 1rem;
}

.dr-label .required {
  color: var(--danger-color);
  margin-left: 0.25rem;
}

.dr-input,
.dr-select,
.dr-textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.dr-input:focus,
.dr-select:focus,
.dr-textarea:focus {
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 183, 217, 0.15);
  outline: none;
}

.dr-input:disabled,
.dr-input[readonly] {
  background: rgba(15, 23, 42, 0.3);
  cursor: not-allowed;
  opacity: 0.7;
}

.dr-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.dr-code-display {
  background: linear-gradient(135deg, rgba(0, 183, 217, 0.15), rgba(107, 217, 255, 0.1));
  border: 2px dashed var(--primary-color);
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  animation: codeGlow 2s ease-in-out infinite;
}

@keyframes codeGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 183, 217, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 183, 217, 0.5);
  }
}

/* Daily Report Image Upload Section */
.dr-image-upload-section {
  background: rgba(0, 183, 217, 0.05);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.dr-image-upload-section:hover {
  border-color: var(--primary-color);
  background: rgba(0, 183, 217, 0.08);
}

.dr-dropzone {
  background: rgba(15, 23, 42, 0.5);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dr-dropzone:hover {
  border-color: var(--primary-color);
  background: rgba(0, 183, 217, 0.1);
  transform: translateY(-2px);
}

.dr-dropzone.drag-over {
  border-color: var(--success-color);
  background: rgba(56, 178, 74, 0.1);
  transform: scale(1.02);
}

.dr-dropzone-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.dr-dropzone-text {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.dr-dropzone-hint {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.dr-dropzone-hint .file-types {
  color: var(--primary-color);
  font-weight: 600;
}

/* Daily Report Image Preview Grid */
.dr-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dr-preview-item {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  transition: all 0.3s ease;
  animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dr-preview-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.dr-preview-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.dr-preview-caption {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.75rem;
  resize: none;
  height: 50px;
  transition: all 0.2s ease;
}

.dr-preview-caption:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 183, 217, 0.1);
  outline: none;
}

.dr-preview-caption::placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

.dr-remove-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  background: var(--danger-color);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dr-remove-btn:hover {
  background: #d11a1a;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 4px 12px rgba(255, 85, 71, 0.5);
}

.dr-remove-btn i {
  color: white;
  font-size: 0.875rem;
}

.dr-image-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 183, 217, 0.1);
  border: 1px solid rgba(0, 183, 217, 0.3);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.dr-image-count i {
  font-size: 1.125rem;
}

/* Daily Report Submit Button */
.dr-submit-btn {
  background: linear-gradient(135deg, var(--success-color), #2ecc71);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(56, 178, 74, 0.3);
}

.dr-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 178, 74, 0.4);
  background: linear-gradient(135deg, #2ecc71, var(--success-color));
}

.dr-submit-btn:active {
  transform: translateY(0);
}

.dr-submit-btn i {
  font-size: 1.25rem;
}

.dr-cancel-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dr-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Upload Daily Report Button (Trigger) */
.upload-daily-report-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.upload-daily-report-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50%, 100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.upload-daily-report-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, #7c3aed, #6366f1);
}

.upload-daily-report-btn:active {
  transform: translateY(-1px);
}

.upload-daily-report-btn i {
  font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .daily-report-modal .modal-body {
    padding: 1.25rem;
  }

  .dr-form-group.col-span-2 {
    grid-column: span 1;
  }

  .dr-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .dr-preview-image {
    height: 100px;
  }

  .dr-code-display {
    font-size: 1rem;
    padding: 0.875rem;
  }

  .upload-daily-report-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Loading State */
.dr-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: #e04438;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 85, 71, 0.3);
}

/* Custom Dropdown Styles */
.custom-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-trigger {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  min-height: 42px;
}

.custom-dropdown-trigger:hover {
  border-color: #475569;
  background: rgba(15, 23, 42, 0.7);
}

.custom-dropdown.active .custom-dropdown-trigger {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 183, 217, 0.1);
}

.custom-dropdown-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-icon {
  transition: transform 0.3s ease;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.custom-dropdown.active .custom-dropdown-icon {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #1E293B;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.custom-dropdown.active .custom-dropdown-menu {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.custom-dropdown-search {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-dropdown-search i {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.custom-dropdown-search-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--text-primary);
  font-size: 0.813rem;
  outline: none;
}

.custom-dropdown-search-input:focus {
  border-color: var(--primary-color);
}

.custom-dropdown-items {
  padding: 0.5rem;
}

.custom-dropdown-item {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.custom-dropdown-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.custom-dropdown-item:hover {
  background: rgba(0, 183, 217, 0.1);
  color: var(--primary-color);
}

.custom-dropdown-item.selected {
  background: rgba(0, 183, 217, 0.2);
  color: var(--primary-color);
  font-weight: 600;
}

.custom-dropdown-item.hidden {
  display: none;
}

/* CKEditor Styling */
.ck.ck-editor__main > .ck-editor__editable {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  min-height: 200px;
  border-radius: var(--radius-md);
}

.ck.ck-editor__main > .ck-editor__editable:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 183, 217, 0.1);
}

.ck.ck-toolbar {
  background: #1E293B;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.ck.ck-content p {
  margin: 0.5rem 0;
}

/* Comment Items */
.comment-item {
  animation: fadeIn 0.3s ease;
}

.comment-item:hover {
  background: rgba(255,255,255,0.04) !important;
}

/* Status Badge */
.status-badge-large {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Progress Bar */
.progress-fill {
  animation: progressFill 1s ease-out;
}

@keyframes progressFill {
  from { width: 0%; }
}

/* Revision History */
.revision-list::-webkit-scrollbar {
  width: 6px;
}

.revision-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.revision-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

/* Lightbox */
#lightbox {
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

#lightbox img {
  animation: zoomIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from { transform: translate(-50%, -50%) scale(0.8); }
  to { transform: translate(-50%, -50%) scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    padding-top: 1rem;
  }

  .task-detail-header {
    padding: 1.5rem !important;
  }

  .task-meta-info {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .status-badge-large {
    font-size: 1rem !important;
  }

  .detail-card {
    padding: 1rem !important;
  }
}

/* ============================================
    APPROVAL & REVISION BUTTONS
    ============================================ */
.approval-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.approval-btn-request {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.approval-btn-request:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 183, 217, 0.3);
}

.approval-btn-waiting {
  background: rgba(255, 138, 75, 0.2);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
  cursor: default;
  animation: pulse 2s ease-in-out infinite;
}

.approval-btn-approved {
  background: rgba(56, 178, 74, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
  padding: 0.375rem 0.75rem; 
  border-radius: 999px; 
  font-size: 0.75rem; 
  font-weight: 600;
}

.approval-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.approval-btn-approve {
  background: var(--success-color);
  color: white;
}

.approval-btn-approve:hover {
  background: #2fa03d;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(56, 178, 74, 0.3);
}

.approval-btn-reject {
  background: var(--warning-color);
  color: white;
}

.approval-btn-reject:hover {
  background: #e67638;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 138, 75, 0.3);
}

/* Mobile responsive for approval buttons */
@media (max-width: 768px) {
  .approval-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .approval-actions {
    width: 100%;
  }
  
  .approval-btn {
    flex: 1;
  }
}
.ck-button {
  color: #fff !important;
}
figure img {
  max-width: 100%;
}

.preview-image-badge.active {
  display: flex;
}

.preview-image-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #1e293b;
}

/* ============================================
    IMAGE UPLOAD MODAL STYLES
    ============================================ */
.image-upload-modal .modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-upload-modal .modal-header {
  background: linear-gradient(135deg, rgba(0, 183, 217, 0.1), rgba(107, 217, 255, 0.1));
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.image-upload-modal .modal-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.image-upload-modal .modal-body {
  padding: 2rem;
}

/* Dropzone Area */
.dropzone-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropzone-area:hover,
.dropzone-area.drag-over {
  border-color: var(--primary-color);
  background: rgba(0, 183, 217, 0.05);
  transform: scale(1.01);
}

.dropzone-area.drag-over::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 183, 217, 0.1), rgba(107, 217, 255, 0.1));
  animation: pulse 1s infinite;
}

.dropzone-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.dropzone-area:hover .dropzone-icon {
  transform: scale(1.1);
}

.dropzone-text {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dropzone-hint {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Preview Grid */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.image-preview-grid::-webkit-scrollbar {
  width: 6px;
}

.image-preview-grid::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 3px;
}

.image-preview-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.image-preview-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-preview-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 183, 217, 0.3);
  border-color: var(--primary-color);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-preview-item:hover img {
  transform: scale(1.1);
}

.image-preview-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  z-index: 10;
}

.image-preview-item:hover .image-preview-delete {
  opacity: 1;
  transform: scale(1);
}

.image-preview-delete:hover {
  background: #e04438;
  transform: scale(1.1);
}

.image-preview-loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.image-preview-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gallery Modal Styles */
.gallery-modal .modal-dialog {
  max-width: 90vw;
  margin: 1.5rem auto;
}

.gallery-modal .modal-content {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.gallery-modal .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.gallery-modal .modal-body {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  position: relative;
}

.gallery-main-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 183, 217, 0.2);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
  left: 1rem;
}

.gallery-nav-btn.next {
  right: 1rem;
}

.gallery-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-color);
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 183, 217, 0.2);
}

.gallery-delete-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--danger-color);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  font-size: 0.875rem;
  font-weight: 600;
}

.gallery-delete-btn:hover {
  background: #e04438;
  transform: scale(1.05);
}

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Responsive adjustments for image upload */
@media (max-width: 768px) {
  .image-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }

  .dropzone-area {
    padding: 2rem 1rem;
  }

  .dropzone-icon {
    font-size: 2rem;
  }

  .image-upload-modal .modal-body {
    padding: 1rem;
  }
}

.form-control:disabled, .form-control[readonly] {
  background-color: #343434 !important;
  opacity: 0.5;
}

.comment-content img {
  max-width: 40% !important;
}

@keyframes lightboxFadeIn {
from {
  opacity: 0;
}
to {
  opacity: 1;
}
}

@keyframes lightboxImageZoomIn {
from {
  opacity: 0;
  transform: scale(0.85);
}
to {
  opacity: 1;
  transform: scale(1);
}
}

@keyframes lightboxButtonSlideIn {
from {
  opacity: 0;
  transform: scale(0.5);
}
to {
  opacity: 1;
  transform: scale(1);
}
}

@keyframes lightboxButtonSlideInLeft {
from {
  opacity: 0;
  transform: translateX(-20px);
}
to {
  opacity: 1;
  transform: translateX(0);
}
}

@keyframes lightboxButtonSlideInRight {
from {
  opacity: 0;
  transform: translateX(20px);
}
to {
  opacity: 1;
  transform: translateX(0);
}
}

@keyframes lightboxInfoSlideUp {
from {
  opacity: 0;
  transform: translateY(20px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}

/* Lightbox Button Hover Effects */
#lightbox .lightbox-close-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.1) rotate(90deg);
}

#lightbox .lightbox-nav-btn:hover {
background: rgba(0, 183, 217, 0.3);
transform: translateY(-50%) scale(1.15);
box-shadow: 0 0 20px rgba(0, 183, 217, 0.4);
}

#lightbox .lightbox-control-btn:hover {
transform: scale(1.1);
}

#lightbox .lightbox-control-btn:active {
transform: scale(0.95);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
#lightbox {
  backdrop-filter: blur(3px) !important;
}

#lightbox .lightbox-close-btn {
  width: 40px !important;
  height: 40px !important;
  font-size: 1.25rem !important;
  top: 1rem !important;
  right: 1rem !important;
}

#lightbox .lightbox-nav-btn {
  width: 40px !important;
  height: 40px !important;
  left: 0.75rem !important;
  right: 0.75rem !important;
  font-size: 1rem !important;
}

#lightbox .lightbox-info-bar {
  padding: 1.5rem 1rem 1rem !important;
}

#lightboxCounter {
  font-size: 0.75rem !important;
  padding: 0.375rem 0.75rem !important;
}

.lightbox-controls {
  gap: 0.5rem !important;
}

.lightbox-control-btn {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.875rem !important;
}
}

@media (max-width: 480px) {
#lightbox .lightbox-content {
  max-width: 100vw !important;
}

#lightbox img {
  max-height: 80vh !important;
}

#lightbox .lightbox-nav-btn {
  width: 36px !important;
  height: 36px !important;
}
}