/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 .justify-end {
  justify-content: flex-end;
 }

 .day-block {
  padding: 20px;
  background-color: rgba(0,0,0,0.1);
 }

 .main-logo img {
  width: auto;
  height: 30px;
 }

 .border-bottom {
  border-bottom: 1px solid #e7ecf0;
 }

 .w-half {
  width: 50%;
 }

 .w-quarter {
  width: 25%;
 }

 @media screen and (max-width: 768px) {
  .w-half {
    width: 100%;
  }
 }

 .stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
 }

 .dashboard-stats {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
 }

 .entries-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
 }

 .entries-filters div,
 .entries-filters .form-control {
  width: 100%;
 }

 .dashboard-tasks {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
 }

 .dashboard-tasks .card {
  width: 50%;
 }

 .avatar-preview {
  width: 200px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
 }
 
 .custom-form-group {
  max-width: 250px;
 }

 .deadline {
  background-color: rgb(255, 156, 156);
 }

 .deadline .deadline-date {
  color: #000;
 }

 .pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  margin: 0 2px;
  text-decoration: none;
  color: #007bff;
  border-radius: 4px;
}

.pagination .current {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.pagination a:hover {
  background-color: #e9ecef;
}

.flip-card {
    perspective: 1000px;
    height: 200px; /* każda karta ma swoją wysokość */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0; /* zamiast width/height 100% */
    backface-visibility: hidden;
    border-radius: 0.75rem; /* zaokrąglenie */
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Sticky note look */
.sticky-note {
    transform: rotate(-1deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-note:nth-child(2n) {
    transform: rotate(1.5deg);
}

.sticky-note:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 10;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 12;
}

.modal-window {
    position: absolute;
    width: 100%;
    top: calc(50% - 150px);
    top: calc(50% - 150px);
    left: calc(50% - 300px);
    max-width: 600px;
    background: white;
    z-index: 13;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.custom-indigo-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px rgba(118, 75, 162, 0.3);
}

/* ===================== */
/* Kanban Board          */
/* ===================== */

.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  min-height: 520px;
}

.kanban-column {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #f4f5f7;
  border: none;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.kanban-column-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kanban-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kanban-status-dot--todo { background-color: #3b82f6; }
.kanban-status-dot--progress { background-color: #f59e0b; }
.kanban-status-dot--done { background-color: #22c55e; }
.kanban-status-dot--default { background-color: #94a3b8; }

.kanban-column-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kanban-column-count {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 1px 8px;
  min-width: 22px;
  text-align: center;
}

.kanban-drop-zone {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 400px;
  overflow-y: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-radius: 0 0 12px 12px;
}

.kanban-drop-zone.drag-over {
  background-color: #dbeafe;
  outline: 2px dashed #60a5fa;
  outline-offset: -4px;
  border-radius: 0 0 12px 12px;
}

/* Card */

.kanban-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  cursor: grab;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  position: relative;
}

.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.45;
  transform: rotate(2deg) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.kanban-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  flex: 1;
  word-break: break-word;
}

.kanban-card-title--completed {
  text-decoration: line-through;
  color: #94a3b8;
}

.kanban-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.kanban-card:hover .kanban-card-actions {
  opacity: 1;
}

.kanban-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #94a3b8;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
  font-size: 15px;
}

.kanban-card-action:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

.kanban-card-action--delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.kanban-card-content {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.kanban-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.kanban-card-date--overdue {
  color: #dc2626;
  font-weight: 700;
}

.kanban-card-date--soon {
  color: #d97706;
  font-weight: 600;
}

.kanban-card-overdue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 4px;
}

.kanban-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.kanban-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: #cbd5e1;
}

.kanban-empty i {
  font-size: 28px;
  margin-bottom: 8px;
}

.kanban-empty span {
  font-size: 12px;
}

/* Task Detail Panel */

.task-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  animation: taskPanelFadeIn 0.15s ease;
}

@keyframes taskPanelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.task-panel {
  width: 100%;
  max-width: 560px;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  animation: taskPanelSlideIn 0.2s ease;
  overflow: hidden;
}

@keyframes taskPanelSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.task-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.task-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  flex: 1;
  margin-right: 12px;
}

.task-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  border: none;
  background: none;
  transition: background-color 0.12s ease, color 0.12s ease;
  flex-shrink: 0;
}

.task-panel-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.task-panel-meta {
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.task-panel-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  padding: 5px 12px;
  border-radius: 20px;
}

.task-panel-meta-item i {
  font-size: 14px;
  color: #94a3b8;
}

.task-panel-content {
  padding: 16px 24px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  border-bottom: 1px solid #f1f5f9;
}

.task-panel-content:empty {
  display: none;
}

/* Comments section */

.task-panel-comments {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-panel-comments-title {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.task-comment {
  display: flex;
  gap: 10px;
}

.task-comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.task-comment-body {
  flex: 1;
  min-width: 0;
}

.task-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.task-comment-username {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.task-comment-time {
  font-size: 11px;
  color: #cbd5e1;
}

.task-comment-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: none;
  opacity: 0;
  transition: opacity 0.12s ease, color 0.12s ease, background-color 0.12s ease;
  margin-left: auto;
}

.task-comment:hover .task-comment-delete {
  opacity: 1;
}

.task-comment-delete:hover {
  color: #ef4444;
  background: #fef2f2;
}

.task-comment-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  word-break: break-word;
}

.task-comment-text .mention {
  color: #3b82f6;
  font-weight: 600;
  background: #eff6ff;
  padding: 1px 4px;
  border-radius: 4px;
}

.task-panel-empty-comments {
  text-align: center;
  color: #cbd5e1;
  font-size: 13px;
  padding: 24px 0;
}

/* Comment form */

.task-panel-form {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  position: relative;
}

.task-panel-input-wrap {
  flex: 1;
  position: relative;
}

textarea.task-panel-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #1e293b;
  background-color: #f8fafc;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

textarea.task-panel-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #fff;
  --tw-ring-shadow: none;
}

.task-panel-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.12s ease;
  flex-shrink: 0;
}

.task-panel-send:hover {
  background: #2563eb;
}

.task-panel-send:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Mention autocomplete dropdown */

.mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-height: 180px;
  overflow-y: auto;
  z-index: 60;
  margin-bottom: 4px;
  display: none;
}

.mention-dropdown.active {
  display: block;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.08s ease;
}

.mention-item:hover,
.mention-item.selected {
  background: #f1f5f9;
}

.mention-item-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.mention-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.mention-item-email {
  font-size: 11px;
  color: #94a3b8;
}

/* Clickable kanban card */

.kanban-card-clickable {
  cursor: pointer;
}

.kanban-card-clickable:active {
  cursor: pointer;
}

/* Loading */

.task-panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #94a3b8;
  font-size: 13px;
}

@media screen and (max-width: 768px) {
  .task-panel {
    max-width: 100%;
  }
}

/* ===================== */
/* Entries List          */
/* ===================== */

.entries-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.entries-toolbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
}

.entries-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.entries-filter-bar .form-control,
.entries-filter-bar input[type="text"],
.entries-filter-bar input[type="date"],
.entries-filter-bar select {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.entries-filter-bar .form-control:focus,
.entries-filter-bar input:focus,
.entries-filter-bar select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  --tw-ring-shadow: none;
}

.entries-filter-bar .form-control::placeholder,
.entries-filter-bar input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* Day group */

.entries-day-group {
  margin-bottom: 8px;
}

.entries-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 4px;
}

.entries-day-date {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entries-day-date i {
  color: #94a3b8;
  font-size: 16px;
}

.entries-day-total {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  padding: 3px 12px;
  border-radius: 20px;
}

/* Entry row */

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.entry-row:hover {
  background: #fafbff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.entry-description {
  flex: 1;
  min-width: 0;
}

.entry-description a {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.12s ease;
}

.entry-description a:hover {
  color: #3b82f6;
}

.entry-project-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.12s ease;
  white-space: nowrap;
}

.entry-project-badge:hover {
  background: #dbeafe;
}

.entry-project-badge i {
  font-size: 13px;
}

.entry-hours {
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  min-width: 50px;
  text-align: center;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.entry-row:hover .entry-actions {
  opacity: 1;
}

.entry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.entry-action:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

.entry-action--delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* Pagination */

.entries-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.entries-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.entries-pagination a:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

.entries-pagination a i {
  font-size: 15px;
}

/* ===================== */
/* Data List (shared)    */
/* ===================== */

.data-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.data-list-title {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
}

.data-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.data-list-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 4px;
}

.data-list-header-cell {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.data-row:hover {
  background: #fafbff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.data-row--warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.data-row--warning:hover {
  background: #fef9c3;
  border-color: #fcd34d;
}

/* Cells */

.data-cell {
  min-width: 0;
}

.data-cell--grow {
  flex: 1;
}

.data-cell--name {
  flex: 1;
  min-width: 0;
}

.data-cell--name a {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.12s ease;
}

.data-cell--name a:hover {
  color: #3b82f6;
}

.data-cell--name .data-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Badges */

.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.12s ease;
}

.data-badge--blue {
  background: #eff6ff;
  color: #2563eb;
}

.data-badge--blue:hover {
  background: #dbeafe;
}

.data-badge--green {
  background: #f0fdf4;
  color: #16a34a;
}

.data-badge--red {
  background: #fef2f2;
  color: #dc2626;
}

.data-badge--gray {
  background: #f1f5f9;
  color: #64748b;
}

.data-badge--teal {
  background: #f0fdfa;
  color: #0f766e;
}

.data-badge--amber {
  background: #fffbeb;
  color: #d97706;
}

.data-badge i {
  font-size: 13px;
}

/* Meta text */

.data-meta {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.data-meta i {
  font-size: 14px;
  color: #94a3b8;
}

.data-meta--danger {
  color: #dc2626;
  font-weight: 600;
}

/* Status dot */

.data-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.data-status--active {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.data-status--inactive {
  background: #cbd5e1;
}

/* Actions */

.data-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.data-row:hover .data-actions {
  opacity: 1;
}

.data-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.data-action:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

.data-action--danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* Avatar */

.data-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.data-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

/* ===================== */
/* Todo Lists            */
/* ===================== */

.todo-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.todo-card {
  position: relative;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  background: #fffde7;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}

.todo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.todo-card--completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.todo-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.todo-card--completed .todo-card-title {
  text-decoration: line-through;
  color: #16a34a;
}

.todo-card-description {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.todo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.todo-card-deadline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.todo-card-deadline i {
  font-size: 13px;
}

.todo-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.todo-card:hover .todo-card-actions {
  opacity: 1;
}

.todo-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.todo-card-action:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #3b82f6;
}

.todo-card-action--danger:hover {
  color: #ef4444;
}

.todo-card-completed-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 10px;
}

.todo-show-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.todo-show-title {
  font-size: 20px;
  font-weight: 700;
  color: #334155;
}

/* Modal */

.todo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.todo-modal-window {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 51;
  position: relative;
}

.todo-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 16px;
}

input.todo-modal-input,
input.todo-modal-input[type="text"],
input.todo-modal-input[type="date"],
textarea.todo-modal-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  background-color: #f8fafc;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input.todo-modal-input:focus,
textarea.todo-modal-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #fff;
  --tw-ring-shadow: none;
}

.todo-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

/* ===================== */
/* Chat Rooms Index      */
/* ===================== */

.chat-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.chat-room-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.chat-room-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.chat-room-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-room-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-room-info {
  flex: 1;
  min-width: 0;
}

.chat-room-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-members {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.chat-room-members i {
  font-size: 13px;
}

.chat-room-description {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-room-last-msg {
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.chat-room-last-msg-text {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-last-msg-text strong {
  color: #334155;
}

.chat-room-last-msg-time {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 3px;
}

.chat-room-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: #94a3b8;
}

.chat-room-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.chat-room-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.chat-room-empty-text {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

/* Chat Show - header redesign */

.chat-show-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.chat-show-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-show-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-show-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.chat-show-subtitle {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.chat-show-subtitle i {
  font-size: 13px;
}

.chat-show-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-show-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.chat-show-action:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

.chat-show-action--danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* ===================== */
/* Forms                 */
/* ===================== */

.form-card {
  max-width: 560px;
}

.form-header {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-header i {
  font-size: 20px;
  color: #94a3b8;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

input.form-input,
input.form-input[type="text"],
input.form-input[type="number"],
input.form-input[type="date"],
input.form-input[type="datetime-local"],
input.form-input[type="email"],
input.form-input[type="password"],
input.form-input[type="search"],
input.form-input[type="tel"],
input.form-input[type="url"],
textarea.form-input,
select.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background-color: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input.form-input:focus,
input.form-input[type="text"]:focus,
input.form-input[type="number"]:focus,
input.form-input[type="date"]:focus,
input.form-input[type="datetime-local"]:focus,
input.form-input[type="email"]:focus,
input.form-input[type="password"]:focus,
input.form-input[type="search"]:focus,
input.form-input[type="tel"]:focus,
input.form-input[type="url"]:focus,
textarea.form-input:focus,
select.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  --tw-ring-shadow: none;
}

input.form-input::placeholder,
textarea.form-input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

select[multiple].form-input {
  background-image: none;
  padding-right: 14px;
  min-height: 100px;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}

.form-checkbox-row:hover {
  border-color: #cbd5e1;
}

.form-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.form-checkbox-row span {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.form-file-input {
  font-size: 13px;
  color: #64748b;
}

.form-file-input::file-selector-button {
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.form-file-input::file-selector-button:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.form-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  margin-bottom: 12px;
}

/* Member checkbox list */

.form-member-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.form-member-item:hover {
  background: #f1f5f9;
}

.form-member-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #6366f1;
  cursor: pointer;
}

.form-member-name {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}

.form-member-email {
  font-size: 12px;
  color: #94a3b8;
}

/* ===================== */
/* Dashboard             */
/* ===================== */

.dash-header {
  font-size: 20px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 24px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.dash-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card-title i {
  font-size: 16px;
}

.dash-card-title--red { color: #dc2626; }
.dash-card-title--amber { color: #d97706; }
.dash-card-title--teal { color: #0f766e; }
.dash-card-title--blue { color: #2563eb; }

.dash-task-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.1s ease;
}

.dash-task-row:hover {
  background: #f8fafc;
}

.dash-task-row a {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.12s ease;
}

.dash-task-row a:hover {
  color: #3b82f6;
}

.dash-task-date {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.dash-empty {
  padding: 20px 0;
  text-align: center;
  color: #cbd5e1;
  font-size: 13px;
}

/* Stats cards */

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.dash-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.dash-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
}

.dash-stat-value span {
  font-size: 16px;
  font-weight: 600;
  color: #94a3b8;
}

.dash-stat-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.dash-stat-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.dash-stat-project-name {
  color: #475569;
  font-weight: 500;
}

.dash-stat-project-hours {
  color: #0f766e;
  font-weight: 700;
}

/* ===================== */
/* Reports               */
/* ===================== */

.report-results {
  margin-top: 24px;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.report-title {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-title i {
  font-size: 18px;
  color: #94a3b8;
}

.report-table-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 4px;
}

.report-table-header-cell {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background-color 0.1s ease;
}

.report-row:hover {
  background: #fafbff;
}

.report-row-date {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  width: 100px;
  flex-shrink: 0;
}

.report-row-description {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.report-row-hours {
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  padding: 3px 10px;
  border-radius: 16px;
  white-space: nowrap;
  text-align: right;
  width: 70px;
  flex-shrink: 0;
}

.report-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-top: 4px;
}

.report-total-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.report-total-value {
  font-size: 16px;
  font-weight: 800;
  color: #0f766e;
  background: #f0fdfa;
  padding: 4px 14px;
  border-radius: 16px;
}

/* ===================== */
/* Responsive            */
/* ===================== */

@media screen and (max-width: 768px) {
  .kanban-board {
    flex-direction: column;
  }
  .kanban-column {
    min-width: 100%;
    max-width: 100%;
  }
  .kanban-drop-zone {
    min-height: 200px;
  }
  .dashboard-stats {
    flex-direction: column;
  }
  .dashboard-tasks {
    flex-direction: column;
  }
  .dashboard-tasks .card {
    width: 100%;
  }
  .w-quarter {
    width: 100%;
  }
  .entries-filters {
    flex-direction: column;
  }
  .entries-filter-bar {
    flex-direction: column;
  }
  .entries-filter-bar .form-control {
    min-width: 100%;
  }
  .entry-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .entry-actions {
    opacity: 1;
  }
  .data-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .data-actions {
    opacity: 1;
  }
  .data-list-header {
    display: none;
  }
  .todo-board {
    grid-template-columns: 1fr;
  }
  .todo-card-actions {
    opacity: 1;
  }
  .todo-modal-window {
    margin: 16px;
  }
  .chat-room-grid {
    grid-template-columns: 1fr;
  }
  .chat-show-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .form-card {
    max-width: 100%;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .report-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .mobile-hidden { display: none; }
 }

 @media screen and (min-width: 769px) and (max-width: 1024px) {
  .kanban-column {
    min-width: 240px;
  }
 }