/* Base e Reset */
:root {
  --primary-color: #0066cc;
  --primary-dark: #004494;
  --primary-light: #3385d1;
  --secondary-color: #4a90e2;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --white-color: #ffffff;
  --border-color: #dee2e6;
  --border-radius: 0.25rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Utility Classes */
.min-vh-75 { 
  min-height: 75vh; 
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
  box-shadow: var(--box-shadow-lg) !important;
}

/* Header */
.navbar {
  background-color: var(--white-color) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.brand-text {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--dark-color);
  transition: var(--transition);
  border-radius: 0.25rem;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
  background-color: rgba(0, 102, 204, 0.05);
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
  background-color: rgba(0, 102, 204, 0.1);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow-lg);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white-color) !important;
}

.hero-section h1 span {
  color: var(--white-color) !important;
}

.hero-section h2 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--white-color) !important;
}

.hero-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: var(--white-color) !important;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--white-color);
}

.hero-stats small {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  max-height: 500px;
  object-fit: cover;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

/* How it Works */
.how-it-works {
  background-color: var(--light-color);
}

.step-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--white-color);
  border-radius: 1rem;
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.step-icon {
  margin-bottom: 1.5rem;
}

.step-number {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white-color);
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Categories */
.categories {
  background-color: var(--white-color);
}

.category-card {
  display: block;
  text-decoration: none;
  transition: var(--transition);
}

.category-card:hover {
  text-decoration: none;
  transform: translateY(-5px);
}

.category-card .card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.category-card:hover .card {
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-color);
}

.category-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg) !important;
  transition: var(--transition);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.category-card h5 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.category-card:hover h5 {
  color: var(--primary-color);
}

/* Professionals */
.professionals {
  background-color: var(--light-color);
}

.professional-card {
  background-color: var(--white-color);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.professional-card:hover,
.professional-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg) !important;
  border-color: var(--primary-color);
}

.professional-info {
  flex-grow: 1;
}

.professional-card h3,
.professional-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.professional-card .category {
  font-size: 0.875rem;
  color: var(--gray-color);
  margin-bottom: 0.75rem;
}

.professional-card .rating {
  color: var(--warning-color);
  margin-bottom: 0.75rem;
}

.professional-card .rating-count {
  color: var(--gray-color);
  font-size: 0.875rem;
}

.professional-card .city {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.mei-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white-color);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--white-color);
}

.testimonial-card {
  background-color: var(--white-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  height: 100%;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-content::before {
  content: """;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(0, 102, 204, 0.1);
  position: absolute;
  top: -20px;
  left: -10px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.testimonial-author h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--dark-color);
}

.testimonial-author .rating {
  color: var(--warning-color);
}

/* CTA Section */
.cta {
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

.footer h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white-color);
  padding-left: 0.25rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.copyright a {
  color: rgba(255, 255, 255, 0.8);
}

.copyright a:hover {
  color: var(--white-color);
}

/* Forms */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
  border-color: var(--primary-color);
  outline: 0;
}

.form-select {
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
  border-color: var(--primary-color);
  outline: 0;
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 102, 204, 0.2);
}

/* Botão outline-primary na seção hero - mesmo estilo do btn-primary */
.hero-section .btn-outline-primary {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: var(--white-color) !important;
}

.hero-section .btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-color: var(--primary-dark);
  color: var(--white-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 102, 204, 0.3);
}

.btn-light {
  background-color: var(--white-color);
  border-color: var(--white-color);
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--light-color);
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
  border-color: var(--white-color);
  color: var(--white-color);
  background-color: transparent;
}

.btn-outline-light:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Cards */
.card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--box-shadow-lg);
}

.card-header {
  padding: 1rem 1.5rem;
  background-color: var(--light-color);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.card-text {
  color: var(--gray-color);
  line-height: 1.6;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

.bg-success {
  background-color: var(--success-color) !important;
}

.bg-warning {
  background-color: var(--warning-color) !important;
}

.bg-danger {
  background-color: var(--danger-color) !important;
}

.bg-info {
  background-color: var(--info-color) !important;
}

/* Dashboard */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--white-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.stat-card .stat-title {
  font-size: 0.875rem;
  color: var(--gray-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.stat-card .stat-description {
  font-size: 0.875rem;
  color: var(--gray-color);
}

/* Service List */
.service-card {
  background-color: var(--white-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--dark-color);
}

.service-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-aberto {
  background-color: var(--info-color);
  color: var(--white-color);
}

.status-em_analise {
  background-color: var(--warning-color);
  color: var(--dark-color);
}

.status-aceito {
  background: var(--gradient-primary);
  color: var(--white-color);
}

.status-concluido {
  background-color: var(--success-color);
  color: var(--white-color);
}

.status-cancelado {
  background-color: var(--danger-color);
  color: var(--white-color);
}

.service-info {
  margin-bottom: 1rem;
}

.service-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-info li {
  margin-bottom: 0.5rem;
  display: flex;
}

.service-info .info-label {
  font-weight: 500;
  margin-right: 0.5rem;
  min-width: 120px;
  color: var(--gray-color);
}

.service-info .info-value {
  color: var(--dark-color);
}

.service-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  border-left-color: var(--success-color);
  color: #155724;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-left-color: var(--danger-color);
  color: #721c24;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-left-color: var(--warning-color);
  color: #856404;
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  border-left-color: var(--info-color);
  color: #0c5460;
}

/* Tables */
.table {
  margin-bottom: 0;
}

.table th {
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--dark-color);
  padding: 1rem;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 102, 204, 0.05);
}

/* Media Queries for Responsive Design */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section h2 {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .hero-section h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 4rem;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .step-card, 
  .category-card, 
  .professional-card, 
  .testimonial-card {
    margin-bottom: 1rem;
  }
  
  .service-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .service-status {
    margin-top: 0.5rem;
  }

  .hero-stats .col-4 {
    margin-bottom: 1rem;
  }

  .hero-image img {
    max-height: 300px;
  }

  .navbar-nav {
    padding-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section h2 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 1.25rem;
  }
}