:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #ff416c;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --sidebar-bg: #1a1a2e;
  --text-main: #2d3436;
}

body {
  font-family: "Inter", "Source Sans Pro", sans-serif;
  color: var(--text-main);
}

/* Glassmorphism Sidebar */
.main-sidebar {
  background-color: var(--sidebar-bg);
  background-image: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.brand-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Navbar */
.main-header {
  background: white !important;
  border-bottom: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.main-header .nav-link {
  color: #555 !important;
}

/* Cards */
.card {
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
  border-bottom: 1px solid #f0f0f0;
  background-color: transparent !important;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
  box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
}

/* Kanban Board Styles */
.kanban-board {
  display: flex;
  overflow-x: auto;
  padding-bottom: 20px;
  gap: 20px;
}

.kanban-column {
  flex: 0 0 320px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  height: calc(100vh - 150px);
  overflow-y: auto;
}

.kanban-column-header {
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-column.pending {
  border-top: 4px solid #6c757d;
}
.kanban-column.progress {
  border-top: 4px solid #007bff;
}
.kanban-column.done {
  border-top: 4px solid #28a745;
}

.kanban-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  border-left: 3px solid transparent;
  cursor: grab;
  transition: all 0.2s ease;
}

.kanban-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.kanban-card.p-high {
  border-left-color: #dc3545;
}
.kanban-card.p-medium {
  border-left-color: #ffc107;
}
.kanban-card.p-low {
  border-left-color: #28a745;
}

.kanban-card:active {
  cursor: grabbing;
}

/* Modern Popup Modals UI/UX */
.modal-content {
  border-radius: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid #f3f4f6 !important;
  padding: 16px 24px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.modal-header .modal-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: #111827 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.3px !important;
}

/* Close button styling */
.modal-header .close {
  padding: 8px !important;
  margin: -8px -8px -8px auto !important;
  background: #f3f4f6 !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.6 !important;
  transition: all 0.2s ease !important;
  border: none !important;
  outline: none !important;
  font-size: 1.2rem !important;
  color: #374151 !important;
}

.modal-header .close:hover {
  opacity: 1 !important;
  background: #e5e7eb !important;
  color: #111827 !important;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px !important;
  font-family: 'Inter', sans-serif !important;
  color: #4b5563 !important;
}

.modal-footer {
  border-top: 1px solid #f3f4f6 !important;
  padding: 16px 24px !important;
  background: #f9fafb !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: flex-end !important;
}

.modal-footer .btn {
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

/* Primary confirmation action btn with gradient */
.modal-footer .btn-primary {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2) !important;
}

.modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%) !important;
  box-shadow: 0 6px 16px rgba(106, 17, 203, 0.3) !important;
  transform: translateY(-1px);
}

.modal-footer .btn-secondary {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}

.modal-footer .btn-secondary:hover {
  background: #f9fafb !important;
  color: #111827 !important;
  border-color: #9ca3af !important;
}

/* Confirm modal warning layout */
#confirm_modal .modal-content {
  border-top: 4px solid #f59e0b !important;
}

#confirm_modal .modal-body {
  text-align: center !important;
  padding-top: 32px !important;
}

.modal-body-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: #d97706;
}

/* Side slide-out modal (uni_modal_right) */
#uni_modal_right .modal-dialog {
  margin: 0 0 0 auto !important;
  height: 100vh !important;
  max-width: 480px !important;
}

#uni_modal_right .modal-content {
  border-radius: 0 !important;
  height: 100% !important;
  border: none !important;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
}

/* Viewer modal minimal UI */
#viewer_modal .modal-content {
  background: rgba(17, 24, 39, 0.95) !important;
  border: none !important;
  backdrop-filter: blur(10px);
  padding: 10px !important;
}

#viewer_modal .modal-content img,
#viewer_modal .modal-content video {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  display: block;
  margin: 0 auto;
}

#viewer_modal .btn-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 9999;
  outline: none;
}

#viewer_modal .btn-close:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}

/* User avatar in top bar */
.user-img-topbar {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-right: 8px;
}

/* Initials badge in top bar */
.user-initials-topbar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: var(--primary-color, #6a11cb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-right: 8px;
}

