/*
 * ===============================================
 * BARBER BOOKING SYSTEM - RESPONSIVE STYLES
 * ===============================================
 * 
 * Sistema de responsividade completo para:
 * - Mobile (320px - 767px)
 * - Tablet (768px - 1023px) 
 * - Desktop (1024px+)
 */

/* ===========================================
   BASE RESPONSIVE UTILITIES
   =========================================== */

/* Garantir que o box-sizing seja border-box para todos os elementos */
*, *::before, *::after {
  box-sizing: border-box;
  
}

/* Garantir que imagens sejam responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Evitar overflow horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Container responsivo com melhor controle */
.container {
  width: 100%;
  padding: 0 10px;
  margin: 0 auto;
  max-width: 100%;
}

@media (min-width: 576px) {
  .container { 
    max-width: 540px; 
    padding: 0 10px;
  }
}

@media (min-width: 768px) {
  .container { 
    max-width: 720px; 
  }
}

@media (min-width: 992px) {
  .container { 
    max-width: 960px; 
  }
}

@media (min-width: 1200px) {
  .container { 
    max-width: 1140px; 
  }
}

/* ===========================================
   NAVIGATION RESPONSIVE
   =========================================== */

/* Esconder toggle por padrão */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: transparent;
  z-index: 1001;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 767px) {
  /* Mostrar botão toggle no mobile */
  .nav-toggle {
    display: flex !important;
    z-index: 1001;
  }
  
  /* Menu mobile com melhor posicionamento */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 20px;
    transition: left 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 0;
    border-bottom: 1px solid #eee;
  }
  
  .nav-link {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--text-color);
    border-radius: 0;
    text-decoration: none;
  }

  .nav-link:hover {
    background-color: var(--surface-color);
    padding-left: 10px;
    transition: all 0.3s ease;
  }
  
  .nav-user {
    padding: 15px 0;
    font-weight: 600;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    margin-top: 10px;
  }
  
  /* Animação do botão toggle melhorada */
  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* ===========================================
   HERO SECTION RESPONSIVE
   =========================================== */

@media (max-width: 480px) {
  .hero {
    min-height: auto; /* Remove altura fixa */
    padding: 10px 0 0 0; /* Reduz padding superior (50% menos) */
    text-align: center;
    display: block; /* Block para conter filhos naturalmente */
    height: auto; /* Altura automática */
    overflow: visible; /* Permite expansão */
    position: relative;
  }
  
  /* Força a hero a "envolver" completamente a hero-image */
  .hero:has(.hero-image) {
    min-height: fit-content;
    height: fit-content;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero {
    min-height: auto; /* Remove altura fixa */
    padding: 15px 0 0 0; /* Reduz padding superior (50% menos) */
    text-align: center;
    display: block; /* Block para conter filhos naturalmente */
    height: auto; /* Altura automática */
    overflow: visible; /* Permite expansão */
    position: relative;
  }
  
  /* Força a hero a "envolver" completamente a hero-image */
  .hero:has(.hero-image) {
    min-height: fit-content;
    height: fit-content;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
}

/* ======================================
   RESPONSIVE PARA NOVA ESTRUTURA
   ====================================== */

@media (max-width: 767px) {
  .hero-section {
    padding: 1rem 0 2rem 0; /* Padding reduzido em mobile */
  }
  
  .hero-cards-grid {
    grid-template-columns: 1fr; /* Uma coluna em mobile */
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .hero-card {
    padding: 1.5rem 1rem;
  }
  
  .card-icon i {
    font-size: 2.5rem;
  }
  
  .hero-card h3 {
    font-size: 1.2rem;
  }
  
  .hero-card p {
    font-size: 0.9rem;
  }
}
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1rem;
  }
  

  
  /* Garante que cada card contribua para a altura total */
  .hero-card {
    display: block;
    margin-bottom: 20px;
    position: relative;
  }
  
  .hero-card {
    padding: 25px 20px;
    margin: 0 10px;
  }
  
  .hero-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .hero-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-image {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================================
   FEATURES SECTION RESPONSIVE
   =========================================== */

@media (max-width: 480px) {
  .hero-cards-grid {
    gap: 0.8rem;
    padding: 0 0.25rem;
  }
  
  .hero-card {
    padding: 1.2rem 0.8rem;
  }
  
  .features-section {
    padding: 2rem 0;
  }
  
  .features-header {
    margin-bottom: 2rem;
  }
  
  .features-header h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .feature-icon i {
    font-size: 3rem;
  }
  
  .feature-card h3 {
    font-size: 1.4rem;
  }
}
  
  .features h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
  }
  
  .feature-card {
    padding: 25px 15px;
    text-align: center;
    margin: 0 5px;
  }
  
  .feature-card i {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .feature-card ul {
    text-align: left;
    padding-left: 20px;
  }
  
  .feature-card li {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .features-section {
    padding: 2.5rem 0;
  }
  
  .features-header h2 {
    font-size: 2.2rem;
  }
  
  .features-grid {
    gap: 1.8rem;
  }
  
  .feature-card {
    padding: 2.2rem 1.8rem;
  }
}
  
  .features h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .feature-card {
    padding: 30px 20px;
    text-align: center;
  }
  
  .feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .feature-card ul {
    text-align: left;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================================
   FORMS RESPONSIVE
   =========================================== */

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Evita zoom no iOS */
    padding: 12px 15px;
    border-radius: 8px;
  }
  
  .form-control {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }
  
  .form-navigation .btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-section {
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .form-section h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Evita zoom no iOS */
    padding: 14px 16px;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-navigation .btn {
    width: 100%;
  }
  
  /* Grid forms */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-section {
    padding: 15px;
  }
  
  .form-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .modal-backdrop .modal-large {
    max-width: 90%;
  }
}

/* ===========================================
   DASHBOARD RESPONSIVE
   =========================================== */

@media (max-width: 767px) {
  /* Stats grid */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  
  .stat-card {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .stat-content h3 {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* Dashboard actions */
  .dashboard-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .dashboard-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Filter section */
  .filter-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-row .form-control {
    width: 100%;
  }
  
  /* User management */
  .user-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .action-buttons {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .bulk-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .bulk-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .search-filters {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-input {
    min-width: 100%;
  }
}

/* ===========================================
   TABLES RESPONSIVE
   =========================================== */

/* Desktop e tablet - mostrar tabela */
@media (min-width: 768px) {
  .table-container {
    display: block;
  }
  
  .table-mobile {
    display: none !important;
  }
}

/* Tablet pequeno e mobile - mostrar versão mobile */
@media (max-width: 768px) {
  /* Manter tabelas visíveis com scroll horizontal otimizado */
  .table-container,
  .dashboard .table-container,
  .management-controls + .table-container,
  #companies-table-container .table-container {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 15px -15px; /* Expandir para aproveitar toda a largura da tela */
    padding: 0 15px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
  }
  
  /* Garantir largura mínima da tabela para scroll funcionar */
  .table-container .table {
    min-width: 700px !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
  }
  
  /* Otimizar células para mobile */
  .table-container .table th,
  .table-container .table td {
    padding: 8px 12px !important;
    white-space: nowrap;
  }
  
  /* Reduzir tamanho dos avatares em mobile */
  .table-container .user-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
  }
  
  /* Compactar botões de ação */
  .table-container .action-buttons {
    gap: 4px !important;
  }
  
  .table-container .action-buttons .btn-sm {
    width: 28px !important;
    height: 28px !important;
    padding: 4px !important;
    font-size: 0.7rem !important;
  }
  
  /* Cards mobile como alternativa opcional (mantidos ocultos por padrão) */
  .table-mobile,
  .dashboard .table-mobile,
  #companies-table-container .table-mobile {
    display: none !important;
  }
  
  /* Indicador visual de scroll horizontal */
  .table-container::after {
    content: "← Arraste para ver mais →";
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    color: #666;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
  }
}

/* Mobile muito pequeno - ajustes adicionais */
@media (max-width: 480px) {
  /* Ajustes específicos para telas muito pequenas */
  .table-container .table {
    min-width: 650px !important;
    font-size: 0.75rem !important;
  }
  
  .table-container .table th,
  .table-container .table td {
    padding: 6px 8px !important;
  }
}

/* Estilos específicos para categorias desktop */
.category-info-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-visual {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-visual .category-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.category-visual .category-icon {
  font-size: 1.3rem;
  color: #555;
  width: 24px;
  text-align: center;
}

.category-details h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.category-description {
  color: #666;
  font-size: 0.9rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-icon-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-preview {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
  display: inline-block;
}

.color-icon-display i {
  font-size: 1.1rem;
  color: #666;
}

.date-info {
  color: #666;
  font-size: 0.9rem;
}

.inactive-row {
  opacity: 0.7;
  background-color: #f8f9fa;
}

.inactive-row .category-details h4 {
  color: #999;
}

/* Responsividade para mobile muito pequeno */
@media (max-width: 480px) {
  .mobile-card-body {
    grid-template-columns: 1fr;
  }
  
  .mobile-card-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .mobile-card-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* ===========================================
   BOOKING SYSTEM RESPONSIVE
   =========================================== */

@media (max-width: 767px) {
  .companies-grid,
  .services-grid,
  .professionals-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .company-card,
  .service-card {
    padding: 15px;
  }
  
  .company-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .company-actions .btn {
    width: 100%;
  }
  
  .service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .service-details {
    flex-direction: column;
    gap: 5px;
  }
  
  .time-slots {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .time-slot {
    padding: 10px 5px;
    font-size: 0.85rem;
  }
  
  .booking-summary {
    padding: 15px;
  }
  
  .summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .companies-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .time-slots {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===========================================
   UTILITIES RESPONSIVE
   =========================================== */

/* Visibility helpers */
@media (max-width: 575px) {
  .d-xs-none { display: none !important; }
  .d-xs-block { display: block !important; }
  .d-xs-flex { display: flex !important; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
}

/* Text alignment */
@media (max-width: 767px) {
  .text-sm-center { text-align: center !important; }
  .text-sm-left { text-align: left !important; }
  .text-sm-right { text-align: right !important; }
}

/* Spacing responsive */
@media (max-width: 767px) {
  .p-sm-0 { padding: 0 !important; }
  .p-sm-1 { padding: 0.5rem !important; }
  .p-sm-2 { padding: 1rem !important; }
  .p-sm-3 { padding: 1.5rem !important; }
  
  .m-sm-0 { margin: 0 !important; }
  .m-sm-1 { margin: 0.5rem !important; }
  .m-sm-2 { margin: 1rem !important; }
  .m-sm-3 { margin: 1.5rem !important; }
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
  .nav-toggle,
  .navbar,
  .btn,
  .modal,
  .toast-container {
    display: none !important;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  .page-section {
    display: block !important;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .table {
    font-size: 12px;
  }
  
  .stat-card {
    break-inside: avoid;
  }
}

/* === ESTILOS DO DASHBOARD-WELCOME COM INFORMAÇÕES DA EMPRESA === */

/* Dashboard Welcome com informações da empresa */
.dashboard-welcome.company-welcome {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 0;
  margin: 20px 0 30px 0;
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  overflow: hidden;
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  gap: 30px;
}

.company-main-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.company-logo {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.company-logo img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  color: rgba(255, 255, 255, 0.7);
}

.company-details h1 {
  margin: 0 0 8px 0;
  font-size: 2em;
  font-weight: 700;
  color: white;
}

.company-subtitle {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95em;
}

.meta-item i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
}

.plan-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85em;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.plan-badge.plan-basic {
  background: rgba(108, 117, 125, 0.2);
  color: #f8f9fa;
}

.plan-badge.plan-premium {
  background: rgba(255, 193, 7, 0.2);
  color: #fff3cd;
}

.plan-badge.plan-enterprise {
  background: rgba(40, 167, 69, 0.2);
  color: #d4edda;
}

.admin-info {
  text-align: right;
  flex-shrink: 0;
}

.welcome-text h2 {
  margin: 0 0 5px 0;
  font-size: 1.5em;
  font-weight: 600;
}

.welcome-text p {
  margin: 0 0 15px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
}

.dashboard-time {
  text-align: right;
}

.time-display {
  font-size: 1.5em;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
}

.date-display {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: capitalize;
}

/* Informações de contato da empresa */
.company-contact-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section h4 {
  margin: 0 0 10px 0;
  font-size: 1em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-section h4 i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
}

.contact-section p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
}

/* Rating display */
.rating-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars i.star-filled {
  color: #ffc107;
}

.rating-stars i.star-empty {
  color: rgba(255, 255, 255, 0.3);
}

.rating-value {
  font-weight: 600;
  font-size: 1.1em;
  color: white;
}

.rating-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
}

/* Responsividade para o dashboard da empresa */
@media (max-width: 1024px) {
  .company-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .admin-info {
    text-align: left;
    width: 100%;
  }
  
  .admin-info .dashboard-time {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .company-header {
    padding: 20px;
  }
  
  .company-main-info {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .company-logo {
    width: 60px;
    height: 60px;
  }
  
  .company-logo img {
    width: 50px;
    height: 50px;
  }
  
  .logo-fallback {
    font-size: 1.5em;
  }
  
  .company-details h1 {
    font-size: 1.6em;
  }
  
  .company-meta {
    justify-content: center;
  }
  
  .welcome-text h2 {
    font-size: 1.3em;
  }
  
  .time-display {
    font-size: 1.3em;
  }
  
  .company-contact-info {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .company-header {
    padding: 15px;
  }
  
  .company-details h1 {
    font-size: 1.4em;
  }
  
  .welcome-text h2 {
    font-size: 1.2em;
  }
  
  .time-display {
    font-size: 1.2em;
  }
  
  .meta-item {
    font-size: 0.9em;
  }
  
  .plan-badge {
    font-size: 0.8em;
    padding: 4px 8px;
  }
  
  .company-contact-info {
    padding: 15px;
  }
}

/* ===========================================
   BUTTONS AND INTERACTIVE ELEMENTS
   =========================================== */

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 44px; /* Touch target mínimo */
    border-radius: 8px;
    margin-bottom: 0;
  }
  
  .btn-sm {
    padding: 8px 15px;
    font-size: 0.8rem;
    min-height: 36px;
  }
  
  .btn-lg {
    padding: 15px 25px;
    font-size: 1.1rem;
    min-height: 48px;
  }
  
  .btn-full {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Melhorar espaçamento entre botões */
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-buttons .btn-sm {
    width: 100%;
    margin-bottom: 5px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .btn {
    padding: 14px 22px;
    font-size: 1rem;
    min-height: 44px;
  }
  
  .btn-sm {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-height: 40px;
  }
}

/* ===========================================
   CARDS AND CONTENT BLOCKS
   =========================================== */

@media (max-width: 480px) {
  .hero-card,
  .feature-card,
  .stat-card,
  .company-card {
    margin: 0 5px 5px 5px;
    padding: 10px 5px;
  }
  
  .page-header {
    padding:  0;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  
  .page-header p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
  }
  
  /* Melhorar espaçamento em seções */
  .page-section {
    padding: 0;
  }
  
  /* Ajustar main content padding para mobile */
  .main-content {
    padding-top: 0; /* Altura da navbar */
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-card,
  .feature-card,
  .stat-card,
  .company-card {
    margin: 0 5px 20px 5px;
    padding: 25px 20px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}

/* ===========================================
   TOAST NOTIFICATIONS MOBILE
   =========================================== */

@media (max-width: 767px) {
  .toast-container {
    top: 80px; /* Abaixo da navbar */
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .toast {
    width: 100%;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
}

/* ===========================================
   PROFILE SECTION MOBILE
   =========================================== */

@media (max-width: 480px) {
  .profile-container {
    padding: 15px;
  }
  
  .profile-form .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .profile-form .form-group {
    margin-bottom: 15px;
  }
  
  .profile-form .form-actions {
    text-align: center;
    padding-top: 20px;
  }
  
  .profile-form .btn {
    width: 100%;
    min-height: 48px;
  }
}

/* ===========================================
   SERVICES SECTION MOBILE
   =========================================== */

@media (max-width: 480px) {
  .services-container {
    padding: 0 10px;
  }
  
  .service-card {
    margin-bottom: 5px;
    padding: 20px 15px;
  }
  
  .service-header h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .service-price {
    font-size: 1.2rem;
  }
  
  .service-details {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* ===========================================
   UTILITY CLASSES FOR MOBILE
   =========================================== */

@media (max-width: 767px) {
  .mobile-only {
    display: block !important;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  .mobile-center {
    text-align: center !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
  }
  
  .mobile-no-margin {
    margin: 0 !important;
  }
  
  .mobile-small-padding {
    padding: 10px !important;
  }
  
  /* Scroll suave em mobile */
  .scroll-smooth {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
  
  .desktop-only {
    display: block !important;
  }
}

/* ===========================================
   HERO MOBILE - FORÇA EXPANSÃO COMPLETA
   =========================================== */

@media (max-width: 767px) {
  /* Força hero a crescer com o conteúdo */
  .hero {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    padding: 10px 0 0 0 !important; /* Reduz de 20px para 10px (50% menos) */
  }
  
  /* Hero-image determina o final da hero */
  .hero .hero-image {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin: 15px 10px 0 10px !important; /* Reduz de 30px para 15px (50% menos) */
    padding: 0 0 40px 0 !important;
    width: calc(100% - 20px) !important;
    position: static !important;
  }
  
  /* Cada card força altura */
  .hero .hero-card {
    margin-bottom: 20px !important;
    position: static !important;
    display: block !important;
  }
  
  /* Features só começa após hero completa */
  .features {
    margin-top: 0 !important;
    padding-top: 40px !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5px 0 0 0 !important; /* Reduz ainda mais para mobile pequeno */
  }
  
  .hero .hero-image {
    margin: 10px 10px 0 10px !important; /* Reduz de 20px para 10px (50% menos) */
    gap: 15px !important;
  }
  
  .hero .hero-card {
    margin-bottom: 15px !important;
  }
}