/* Project Manager Styles */

.project-manager {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  min-height: 500px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #dee2e6;
}

.project-header h3 {
  margin: 0;
  color: #1e348d;
  font-weight: 600;
}

.project-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.project-controls .btn-group {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Table View Styles */
.project-table {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.project-table thead {
  background: linear-gradient(135deg, #1e348d 0%, #2d4a9e 100%);
  color: white;
}

.project-table thead th {
  font-weight: 600;
  padding: 15px 12px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border: none;
}

.project-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.project-table tbody tr:hover {
  background-color: #f8f9fa;
}

.project-table td {
  padding: 12px;
  vertical-align: middle;
}

.project-table .badge {
  font-size: 11px;
  padding: 4px 8px;
  font-weight: 500;
  border-radius: 3px;
}

.project-table .progress {
  background: #e9ecef;
  border-radius: 3px;
}

.project-table .progress-bar {
  border-radius: 3px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
}

.project-table .btn-group {
  display: flex;
  gap: 4px;
}

.project-table .btn-group .btn {
  padding: 4px 8px;
  font-size: 12px;
}

/* Kanban View Styles */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  background: transparent;
}

@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.kanban-column-header {
  padding: 15px;
  font-weight: 600;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-column-header h5 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kanban-column-header .badge {
  background: rgba(255,255,255,0.3);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 3px;
}

.kanban-cards {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.2s ease;
}

.kanban-cards.drag-over {
  background-color: #f0f3ff;
}

.kanban-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  cursor: move;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.kanban-card:hover {
  border-color: #1e348d;
  box-shadow: 0 4px 12px rgba(30,52,141,0.2);
  transform: translateY(-2px);
}

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

.card-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.card-header-custom h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e348d;
  flex: 1;
}

.card-client {
  font-size: 12px;
  color: #666;
  margin: 8px 0;
}

.card-client i {
  margin-right: 4px;
  color: #1e348d;
}

.card-amount {
  font-size: 14px;
  color: #1e348d;
  margin: 8px 0;
  font-weight: 600;
}

.card-progress {
  margin: 10px 0;
}

.card-progress .progress {
  height: 8px;
  background: #e9ecef;
  border-radius: 2px;
  margin-bottom: 4px;
}

.card-progress .progress-bar {
  border-radius: 2px;
}

.card-progress small {
  font-size: 11px;
  color: #999;
}

.card-deadline {
  font-size: 11px;
  color: #999;
  margin: 8px 0 0 0;
}

.card-deadline i {
  margin-right: 4px;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
  background: linear-gradient(135deg, #1e348d 0%, #2d4a9e 100%);
  color: white;
  border: none;
  padding: 20px;
}

.modal-header h5 {
  font-weight: 600;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 25px;
}

.modal-body .form-label {
  font-weight: 600;
  color: #333;
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body textarea {
  border-color: #dee2e6;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: #1e348d;
  box-shadow: 0 0 0 0.2rem rgba(30,52,141,0.25);
}

.modal-footer {
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 15px 25px;
}

/* Activity Log Styles */
.activity-log {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px;
}

.activity-item {
  padding: 10px;
  border-left: 3px solid #3b82f6;
  margin-bottom: 10px;
  background: white;
  border-radius: 4px;
  font-size: 12px;
}

.activity-item strong {
  color: #1e348d;
  display: block;
  margin-bottom: 3px;
}

.activity-item .text-muted {
  color: #999;
  font-size: 11px;
}

/* Status Colors */
.status-pending {
  background-color: #FCD34D !important;
  color: #333 !important;
}

.status-in-progress,
.badge-info {
  background-color: #3B82F6 !important;
}

.status-review,
.badge-purple {
  background-color: #A78BFA !important;
}

.status-completed,
.badge-success {
  background-color: #10B981 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .project-controls {
    width: 100%;
    flex-direction: column;
  }

  .project-controls .btn-group {
    width: 100%;
  }

  .project-controls .btn-group .btn {
    flex: 1;
  }

  .project-table {
    font-size: 12px;
  }

  .project-table thead th {
    padding: 10px 8px;
    font-size: 11px;
  }

  .project-table td {
    padding: 10px 8px;
  }

  .project-table .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .project-table .btn-group .btn {
    width: 100%;
    padding: 4px 6px;
    font-size: 11px;
  }
}

/* Scrollbar Styling */
.kanban-cards::-webkit-scrollbar {
  width: 6px;
}

.kanban-cards::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.kanban-cards::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.kanban-cards::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Print Styles */
@media print {
  .project-manager {
    padding: 0;
    background: white;
  }

  .project-header {
    border-bottom: 1px solid #000;
  }

  .project-controls {
    display: none;
  }

  .kanban-board {
    display: none;
  }

  .project-table tbody tr {
    page-break-inside: avoid;
  }
}

/* Loading and Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-state p {
  margin: 10px 0;
  font-size: 14px;
}

/* Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kanban-card {
  animation: slideIn 0.3s ease-out;
}

.modal-content {
  animation: slideIn 0.3s ease-out;
}
