/* Ecossistema de Parceiros Specific Styles */

.stats-section {
  background-color: #f8f9fa;
  min-height: auto;
}

.table-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 450px);
}

/* Stats Cards */
.stat-card {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stat-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.stat-card i {
  font-size: 1.5rem;
}

/* Table Section */
.table-header {
  margin-bottom: 1.5rem;
}

.table-header h5 {
  font-weight: 600;
  color: #2c3e50;
}

.table-responsive {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table {
  margin-bottom: 0;
}

.table thead th {
  border-bottom: 2px solid #e0e0e0;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
}

.table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  color: #2c3e50;
}

.partner-name {
  font-weight: 500;
  color: #2c3e50;
}

.partner-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
}

.partner-type i {
  color: #6c757d;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.active {
  background-color: #e8f5e9;
  color: #28a745;
}

.status-badge i {
  font-size: 0.75rem;
}

.actions-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.actions-btn:hover {
  color: #2c3e50;
  background-color: #f0f0f0;
  border-radius: 4px;
}

/* Dropdown Menu */
.dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  padding: 0.5rem 0;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: #2c3e50;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #2c3e50;
}

.dropdown-item.text-danger {
  color: #dc3545;
}

.dropdown-item.text-danger:hover {
  background-color: #fff5f5;
  color: #dc3545;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

/* Modal Styles */
.modal-content {
  border-radius: 16px;
  border: none;
}

.modal-header {
  padding: 2rem 2rem 1rem 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.modal-body {
  padding: 1rem 2rem 2rem 2rem;
}

.modal-body .form-label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.modal-body .form-control,
.modal-body .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.modal-body .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
}

.modal-body .btn-success {
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
}

/* Modal Footer */
.modal-footer {
  padding: 1rem 2rem 2rem 2rem;
}

.modal-footer .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
}

.modal-footer .btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

/* Alert Warning */
.alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.alert-warning i {
  color: #ffc107;
  font-size: 1.2rem;
}

/* Toast Notification */
.toast {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  min-width: 350px;
}

.toast-body {
  padding: 1.25rem;
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
}

.toast .btn-close {
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 1.5rem;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .table-header button {
    margin-top: 1rem;
    width: 100%;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .modal-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }

  .toast {
    min-width: 300px;
  }
}
