/* Portfolio Modal Styles */
.portfolio-modal .modal-content {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
  background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

.portfolio-modal .modal-header {
  border-bottom: 2px solid #f0f0f0;
  padding: 1.5rem;
  background: linear-gradient(to right, #ffffff, #f8f9fa);
  border-radius: 15px 15px 0 0;
}

.portfolio-modal .modal-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.5rem;
}

.portfolio-modal .btn-close {
  opacity: 1 !important;
  width: 1.25rem;
  height: 1.25rem;
  background-size: 1.25rem;
  background: transparent var(--bs-btn-close-bg) center/1.25rem auto no-repeat !important;
  background-image: var(--bs-btn-close-bg) !important;
  filter: none !important;
  position: relative;
  z-index: 2;
}

.portfolio-modal .btn-close:hover {
  opacity: 1 !important;
  background-color: #e9ecef;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .portfolio-modal .btn-close {
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.5rem;
    background: transparent var(--bs-btn-close-bg) center/1.5rem auto no-repeat !important;
  }
}

.portfolio-modal .modal-body {
  padding: 1.5rem;
}

.portfolio-modal .nav-tabs {
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.portfolio-modal .nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.portfolio-modal .nav-tabs .nav-link:hover {
  color: #2c3e50;
  background: rgba(0, 0, 0, 0.02);
}

.portfolio-modal .nav-tabs .nav-link.active {
  color: #2c3e50;
  border-bottom: 3px solid #0d6efd;
  background: none;
}

/* Portfolio Card Styles */
.portfolio-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-card .card-header {
  background: linear-gradient(to right, #ffffff, #f8f9fa);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.portfolio-card .card-header h5 {
  color: #2c3e50;
  font-size: 1.1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-card .card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio-card .asset-item {
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.portfolio-card .asset-item:hover {
  background: rgba(13, 110, 253, 0.05);
}

/* Portfolio Card Button Styles */
.portfolio-card .btn-danger {
  background: linear-gradient(to right, #dc3545, #c82333);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.portfolio-card .btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #c82333, #bd2130);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.portfolio-card .btn-danger:hover::before {
  opacity: 1;
}

.portfolio-card .btn-primary {
  background: linear-gradient(to right, #0d6efd, #0b5ed7);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.portfolio-card .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #0b5ed7, #0a58ca);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.portfolio-card .btn-primary:hover::before {
  opacity: 1;
}

.portfolio-card .btn {
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transform: translateY(0);
}

.portfolio-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.portfolio-card .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Empty Card Style */
.portfolio-card.empty-card {
  background: linear-gradient(45deg, #f8f9fa, #ffffff);
  border: 2px dashed #dee2e6;
  transition: all 0.3s ease;
}

.portfolio-card.empty-card:hover {
  border-color: #adb5bd;
  background: linear-gradient(45deg, #ffffff, #f8f9fa);
}

/* Scrollbar Styling */
.portfolio-modal ::-webkit-scrollbar {
  width: 8px;
}

.portfolio-modal ::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.portfolio-modal ::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.portfolio-modal ::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .portfolio-modal .modal-body {
    padding: 1rem;
  }
  
  .portfolio-card .card-header h5 {
    font-size: 1rem;
  }
  
  .portfolio-card .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

