/* Minhas Solicitações - Estilos Melhorados */

/* Header melhorado */
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: scale(1.1);
}

.header-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Seção de Resumo Melhorada */
.summary-section {
  padding: 24px 0;
}

.summary-header {
  margin-bottom: 20px;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.summary-title i {
  color: var(--primary-color);
  font-size: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.summary-card.total::before {
  background: linear-gradient(90deg, #3b82f6, #1e40af);
}

.summary-card.progress::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.summary-card.completed::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
  flex-shrink: 0;
}

.summary-card.total .summary-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.summary-card.progress .summary-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.summary-card.completed .summary-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.summary-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

.summary-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1;
}

.summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.summary-trend {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #10b981;
  font-size: 14px;
}

.summary-progress {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: auto;
}

.progress-bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.summary-card.total .progress-bar {
  background: linear-gradient(90deg, #3b82f6, #1e40af);
}

.summary-card.progress .progress-bar {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.summary-card.completed .progress-bar {
  background: linear-gradient(90deg, #10b981, #059669);
}

/* Seção de Filtros Melhorada */
.filters-section {
  padding-bottom: 24px;
}

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

.filters-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.filters-count {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.filters-container {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.filter-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 80px;
  justify-content: center;
  text-align: center;
}

.filter-btn:hover {
  background: rgba(30, 58, 138, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.filter-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  font-size: 14px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.filter-btn:hover .filter-icon {
  background: rgba(30, 58, 138, 0.2);
}

.filter-btn.active .filter-icon {
  background: rgba(255, 255, 255, 0.2);
}

.filter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.filter-count {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.9;
}

/* Lista de Solicitações Melhorada */
.requests-section {
  padding-bottom: 32px;
}

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.request-item {
  transition: all 0.3s ease;
}

.request-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.request-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
}

.request-service {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.service-icon.transport {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.service-icon.waste {
  background: linear-gradient(135deg, #10b981, #059669);
}

.service-icon.maintenance {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.service-info {
  display: flex;
  flex-direction: column;
}

.request-id {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(30, 58, 138, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 4px;
  width: fit-content;
}

.request-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.request-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pendente {
  background: #fef3c7;
  color: #d97706;
}

.status-andamento {
  background: #dbeafe;
  color: #1e40af;
}

.status-concluida {
  background: #dcfce7;
  color: #166534;
}

.request-body {
  padding: 16px 20px;
}

.request-description {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.request-description i {
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Progress Steps */
.request-progress {
  margin-top: 16px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  background: var(--surface-color);
  padding: 0 8px;
}

.step i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: var(--border-color);
  color: var(--text-secondary);
}

.step.completed i {
  background: #10b981;
  color: white;
}

.step.active i {
  background: var(--primary-color);
  color: white;
}

.step span {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.step.completed span,
.step.active span {
  color: var(--text-primary);
}

/* Completion Badge */
.request-completion {
  margin-top: 12px;
}

.completion-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  color: #059669;
  font-size: 13px;
  font-weight: 500;
}

.completion-badge i {
  color: #10b981;
}

/* Request Alert */
.request-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
}

.request-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-color);
}

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

.request-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.request-date i {
  font-size: 11px;
}

/* Priority Badges */
.request-priority {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.request-priority.high {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.request-priority.medium {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.request-priority.low {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* Rating Stars */
.request-rating {
  display: flex;
  gap: 2px;
}

.request-rating i {
  font-size: 12px;
  color: #fbbf24;
}

.request-rating .far {
  color: var(--border-color);
}

/* Action Buttons */
.request-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn.secondary {
  background: var(--border-color);
  color: var(--text-secondary);
}

.action-btn.secondary:hover {
  background: #d1d5db;
  color: var(--text-primary);
}

.action-btn.primary {
  background: var(--primary-color);
  color: white;
}

.action-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.action-btn i {
  font-size: 11px;
}

/* Estado Vazio Melhorado */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-illustration {
  position: relative;
  margin-bottom: 24px;
}

.empty-icon {
  font-size: 64px;
  color: var(--border-color);
  margin-bottom: 16px;
}

.empty-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
}

.circle {
  position: absolute;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.circle-1 {
  width: 40px;
  height: 40px;
  top: 0;
  left: 0;
}

.circle-2 {
  width: 60px;
  height: 60px;
  top: 30px;
  right: 0;
  animation-delay: 0.5s;
}

.circle-3 {
  width: 50px;
  height: 50px;
  bottom: 0;
  left: 35px;
  animation-delay: 1s;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.empty-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.empty-action-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

/* Botão FAB Melhorado */
.fab-section {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 100;
}

.fab-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
  font-size: 20px;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
  color: white;
}

.fab-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  margin-right: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fab-button:hover .fab-tooltip {
  opacity: 1;
}

/* Modal de Busca */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-large);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-title i {
  color: var(--primary-color);
}

.modal-body {
  padding: 24px;
}

.search-form .input-group {
  margin-bottom: 20px;
}

.search-form .form-control {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.search-form .btn {
  border-radius: 0 8px 8px 0;
}

.search-filters h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 6px 12px;
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary-color);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: var(--primary-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 575px) {
  .summary-grid {
    gap: 12px;
  }

  .summary-card {
    padding: 16px 12px;
  }

  .summary-number {
    font-size: 28px;
  }

  .summary-label {
    font-size: 12px;
  }

  .filter-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .filter-btn {
    padding: 12px 8px;
    min-height: 70px;
  }

  .filter-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .filter-label {
    font-size: 12px;
  }

  .filter-count {
    font-size: 16px;
  }
}

@media (min-width: 576px) {
  .summary-grid {
    gap: 16px;
  }

  .summary-card {
    padding: 24px 20px;
  }

  .summary-number {
    font-size: 36px;
  }

  .summary-label {
    font-size: 14px;
  }

  .request-card {
    padding: 0;
  }

  .request-header {
    padding: 24px 24px 20px;
  }

  .request-body {
    padding: 20px 24px;
  }

  .request-footer {
    padding: 20px 24px 24px;
  }

  .request-title {
    font-size: 18px;
  }

  .request-description {
    font-size: 15px;
  }

  .action-btn {
    padding: 12px 20px;
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .filter-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .filter-btn {
    padding: 20px 16px;
    min-height: 90px;
  }

  .fab-button {
    width: 64px;
    height: 64px;
    font-size: 24px;
    bottom: 110px;
    right: 24px;
  }

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

  .action-btn {
    flex: none;
    min-width: 100px;
  }
}

/* Animações */
.summary-section,
.filters-section,
.requests-section {
  animation: fadeInUp 0.6s ease-out;
}

.filters-section {
  animation-delay: 0.1s;
}

.requests-section {
  animation-delay: 0.2s;
}

.request-item:nth-child(1) {
  animation-delay: 0.1s;
}
.request-item:nth-child(2) {
  animation-delay: 0.2s;
}
.request-item:nth-child(3) {
  animation-delay: 0.3s;
}
.request-item:nth-child(4) {
  animation-delay: 0.4s;
}
.request-item:nth-child(5) {
  animation-delay: 0.5s;
}

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