/* Component Modernization Enhancements */

/* 1. Card Design Enhancements */
.card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: var(--card-background, #ffffff);
}

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

.card-header {
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

/* Card entrance animation */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-animate-entrance {
  animation: cardEntrance 0.3s ease-out forwards;
}

/* 2. Button Styling Enhancements */
.btn {
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  transition: all 0.25s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

/* Ripple effect for buttons */
.btn:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.btn:active:after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Primary buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color, #3498db), var(--primary-hover, #2980b9));
  border: none;
  box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Secondary/Ghost buttons */
.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-color, #3498db);
  color: var(--primary-color, #3498db);
}

.btn-outline-primary:hover {
  background-color: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

.btn-outline-primary:active {
  transform: translateY(1px);
}

/* Small buttons */
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

/* Button groups */
.btn-group {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  overflow: hidden;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

/* 3. Navigation Improvements */
/* Active state indicators */
.nav-link, .social1-nav-item {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link.active:before, .social1-nav-item.active:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--primary-color, #3498db);
  transform: scaleY(1);
  transition: transform 0.3s ease;
}

.nav-link:hover:before, .social1-nav-item:hover:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--primary-color, #3498db);
  transform: scaleY(0.5);
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Smooth tab transitions */
.nav-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  color: var(--text-medium, #7f8c8d);
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border-color: rgba(52, 152, 219, 0.3);
  background-color: rgba(52, 152, 219, 0.05);
}

.nav-tabs .nav-link.active {
  color: var(--primary-color, #3498db);
  border-color: var(--primary-color, #3498db);
  background-color: transparent;
}

/* Tab content transition */
.tab-content > .tab-pane {
  transition: all 0.3s ease;
}

.tab-content > .active {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Collapsible sidebar for mobile */
@media (max-width: 768px) {
  .social1-sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1030;
    background-color: var(--card-background, #ffffff);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .social1-sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem;
  }
  
  .social1-nav-item {
    padding: 0.5rem;
    margin: 0;
    justify-content: center;
  }
  
  .social1-nav-item span {
    display: none;
  }
  
  .social1-nav-item i {
    margin-right: 0;
    font-size: 1.5rem;
  }
  
  .social1-nav-item:before {
    display: none;
  }
  
  .social1-nav-item.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-color, #3498db);
  }
  
  .social1-main-content {
    margin-left: 0;
    margin-bottom: 60px;
  }
  
  .social1-logo, .social1-profile-section {
    display: none;
  }
}

/* Table Enhancements */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  font-weight: 600;
  color: var(--text-medium, #7f8c8d);
  border-top: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding: 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

/* Form Controls */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color, #3498db);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Badges */
.badge {
  padding: 0.4em 0.7em;
  font-weight: 600;
  border-radius: 50px;
}

/* Tooltips */
.tooltip {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip.show {
  opacity: 0.9;
}

.tooltip-inner {
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

/* Utility classes for animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Utility classes for spacing */
.gap-1 {
  gap: 0.25rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

/* Utility classes for shadows */
.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}
