* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1a1c3d, #2a2a72);
  background-attachment: fixed;
  min-height: 100vh;
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.title-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.title-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF9F43, #FFD93D, #FF9F43);
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #FF9F43, #FFD93D);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 159, 67, 0.3);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(1deg); }
}

.logo-icon .material-icons {
  font-size: 14px;
  color: white;
}

.logo-text h1 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-top: 1px;
  display: block;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-icon {
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.location {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.season-badge {
  background: linear-gradient(135deg, #4FACFE, #00F2FE);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3); }
  50% { box-shadow: 0 3px 10px rgba(79, 172, 254, 0.5); }
}

.header-right {
  display: flex;
  align-items: center;
}

.status-indicators {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2ecc71;
  animation: statusBlink 2s infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.current-time {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-icon {
  font-size: 0.7rem;
}

.time-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  font-family: 'Courier New', monospace;
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.month-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.month-title {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 10px;
  position: relative;
}

.month-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, transparent, #a5b4fc, transparent);
}

.month-chart-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 300px;
}

.month-chart {
  width: 100% !important;
  height: 100% !important;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3);
}

.card:nth-child(2) .icon {
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  box-shadow: 0 8px 16px rgba(79, 172, 254, 0.3);
}

.card:nth-child(3) .icon {
  background: linear-gradient(45deg, #45e3ff, #7d8dff);
  box-shadow: 0 8px 16px rgba(69, 227, 255, 0.3);
}

.card:nth-child(4) .icon {
  background: linear-gradient(45deg, #fa709a, #fee140);
  box-shadow: 0 8px 16px rgba(250, 112, 154, 0.3);
}

.icon svg {
  width: 24px;
  height: 24px;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  letter-spacing: -0.5px;
}

.sales {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  font-weight: 500;
}

.days {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  max-height: 180px;
  overflow-y: auto;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.days::-webkit-scrollbar {
  width: 6px;
}

.days::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.days::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.days::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.day {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 50px 1fr 80px;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.day:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.day:last-child {
  margin-bottom: 0;
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date {
  font-weight: 600;
  color: #a5b4fc;
  text-align: center;
  background: rgba(165, 180, 252, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(165, 180, 252, 0.2);
  font-size: 0.85rem;
}

.items {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-align: left;
  font-size: 0.85rem;
}

.amount {
  font-weight: 700;
  color: #fff;
  text-align: right;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.action-btn .material-icons {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Removendo os estilos do gráfico */
.chart-container, canvas {
  display: none;
}

html {
  scroll-behavior: smooth;
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  margin: auto;
  padding: 0;
  position: relative;
  transform: translateY(50px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
}

.modal-body {
  padding: 20px;
}

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

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #FF9F43;
  box-shadow: 0 0 0 2px rgba(255, 159, 67, 0.2);
}

.quantity-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.quantity-input input {
  width: 80px;
  text-align: center;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-footer button {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-save {
  background: linear-gradient(135deg, #FF9F43, #FFD93D);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 159, 67, 0.4);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.summary-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-radius: 15px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon .material-icons {
  font-size: 30px;
  color: #fff;
}

.total-revenue .card-icon {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.total-shorts .card-icon {
  background: linear-gradient(135deg, #2196F3, #1565C0);
}

.total-profit .card-icon {
  background: linear-gradient(135deg, #9C27B0, #6A1B9A);
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.card-content .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* iPad e tablets grandes */
@media (max-width: 1024px) {
  .container {
    padding: 15px;
  }
  
  .header-content {
    gap: 6px;
  }
  
  .logo-section {
    gap: 5px;
  }
  
  .logo-icon {
    width: 20px;
    height: 20px;
  }
  
  .logo-icon .material-icons {
    font-size: 12px;
  }
  
  .logo-text h1 {
    font-size: 0.9rem;
  }
  
  .cards {
    gap: 14px;
  }
  
  .card {
    padding: 12px;
  }
  
  .card-header {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .icon {
    width: 48px;
    height: 48px;
  }
  
  .icon svg {
    width: 20px;
    height: 20px;
  }
  
  h2 {
    font-size: 0.9rem;
  }
  
  .value {
    font-size: 1.7rem;
  }
  
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* iPad mini e tablets pequenos */
@media (max-width: 834px) {
  .title-container {
    padding: 6px 10px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  
  .header-left,
  .header-right {
    width: 100%;
    justify-content: center;
  }
  
  .status-indicators {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
  
  .logo-text h1 {
    font-size: 0.9rem;
  }
  
  .cards {
    gap: 12px;
  }
  
  .card {
    padding: 10px;
  }
  
  .card-header {
    gap: 12px;
    margin-bottom: 15px;
  }
  
  .icon {
    width: 44px;
    height: 44px;
  }
  
  h2 {
    font-size: 0.85rem;
  }
  
  .value {
    font-size: 1.5rem;
  }
  
  .day {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .summary-card {
    padding: 15px;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
  }
  
  .card-icon .material-icons {
    font-size: 24px;
  }
}

/* iPhone 14 Pro Max, iPhone 15 Pro Max e similares (430px+) */
@media (max-width: 430px) {
  .container {
    padding: 10px;
  }
  
  .title-container {
    padding: 5px 8px;
    margin-bottom: 8px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  
  .header-left,
  .header-right {
    width: 100%;
    justify-content: center;
  }
  
  .logo-section {
    gap: 4px;
  }
  
  .logo-icon {
    width: 18px;
    height: 18px;
  }
  
  .logo-icon .material-icons {
    font-size: 10px;
  }
  
  .logo-text h1 {
    font-size: 0.8rem;
  }
  
  .subtitle {
    font-size: 0.6rem;
  }
  
  .status-indicators {
    flex-direction: row;
    justify-content: center;
    gap: 6px;
  }
  
  .status-item,
  .current-time {
    padding: 2px 4px;
    font-size: 0.6rem;
  }
  
  .location-info {
    padding: 2px 6px;
  }
  
  .location {
    font-size: 0.7rem;
  }
  
  .season-badge {
    padding: 1px 6px;
    font-size: 0.6rem;
  }
  
  .month-section {
    padding: 20px;
  }
  
  .month-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .cards {
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    min-height: 200px;
  }
  
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .card-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  
  .icon svg {
    width: 22px;
    height: 22px;
  }
  
  h2 {
    font-size: 1.1rem;
    text-align: left;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    font-weight: 700;
  }
  
  .value {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .sales {
    font-size: 1rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
  }
  
  .days {
    max-height: 180px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .day {
    padding: 10px 12px;
    grid-template-columns: 45px 1fr 75px;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .day:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
  }
  
  .date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a5b4fc;
    background: rgba(165, 180, 252, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(165, 180, 252, 0.2);
    text-align: center;
  }
  
  .items {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: left;
  }
  
  .amount {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: right;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0;
  }
  
  .summary-card {
    padding: 12px;
    flex-direction: row;
    text-align: left;
    gap: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  
  .card-icon .material-icons {
    font-size: 18px;
  }
  
  .card-content {
    flex: 1;
    min-width: 0;
  }
  
  .card-content h3 {
    font-size: 0.8rem;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .card-content .value {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .modal-footer {
    padding: 15px;
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer button {
    width: 100%;
    padding: 12px 20px;
  }
}

/* iPhone 14, iPhone 15 e similares (390px) */
@media (max-width: 390px) {
  h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }
  
  .title-container {
    padding: 15px 0;
  }
  
  .emoji {
    font-size: 1.3rem;
  }
  
  .location {
    font-size: 1.3rem;
  }
  
  .month-section {
    padding: 15px;
  }
  
  .month-title {
    font-size: 1.3rem;
  }
  
  .card {
    padding: 16px;
    border-radius: 14px;
    min-height: 180px;
  }
  
  .card-header {
    margin-bottom: 12px;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  
  .icon svg {
    width: 20px;
    height: 20px;
  }
  
  h2 {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
  }
  
  .value {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }
  
  .sales {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .days {
    max-height: 160px;
    padding: 10px;
    border-radius: 10px;
  }
  
  .day {
    padding: 8px 10px;
    grid-template-columns: 40px 1fr 70px;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 4px;
    border-radius: 6px;
  }
  
  .summary-card {
    padding: 10px;
    gap: 6px;
  }
  
  .card-icon {
    width: 32px;
    height: 32px;
  }
  
  .card-icon .material-icons {
    font-size: 16px;
  }
  
  .card-content h3 {
    font-size: 0.75rem;
  }
  
  .card-content .value {
    font-size: 1.1rem;
  }
  
}

/* iPhone SE e telas muito pequenas (375px) */
@media (max-width: 375px) {
  .container {
    padding: 8px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .month-section {
    padding: 12px;
  }
  
  .month-title {
    font-size: 1.2rem;
  }
  
  .card {
    padding: 14px;
    border-radius: 12px;
    min-height: 160px;
  }
  
  .card-header {
    margin-bottom: 10px;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  
  .icon svg {
    width: 18px;
    height: 18px;
  }
  
  h2 {
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 700;
  }
  
  .value {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }
  
  .sales {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .days {
    max-height: 140px;
    padding: 8px;
    border-radius: 8px;
  }
  
  .day {
    padding: 6px 8px;
    grid-template-columns: 35px 1fr 65px;
    gap: 6px;
    font-size: 0.75rem;
    margin-bottom: 3px;
    border-radius: 5px;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .summary-card {
    padding: 8px;
    gap: 5px;
  }
  
  .card-icon {
    width: 28px;
    height: 28px;
  }
  
  .card-icon .material-icons {
    font-size: 14px;
  }
  
  .card-content h3 {
    font-size: 0.7rem;
  }
  
  .card-content .value {
    font-size: 1rem;
  }
  
}

/* Landscape orientation para mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .title-container {
    padding: 10px 0;
    margin-bottom: 20px;
  }
  
  h1 {
    font-size: 2rem;
    margin: 5px 0;
  }
  
  .emoji {
    font-size: 1.2rem;
  }
  
  .location {
    font-size: 1.2rem;
  }
  
  .month-section {
    padding: 15px;
  }
  
  .month-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .cards {
    gap: 8px;
  }
  
  .card {
    padding: 8px;
    border-radius: 8px;
  }
  
  .card-header {
    margin-bottom: 6px;
    gap: 4px;
  }
  
  .icon {
    width: 24px;
    height: 24px;
  }
  
  .icon svg {
    width: 12px;
    height: 12px;
  }
  
  h2 {
    font-size: 0.75rem;
  }
  
  .value {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  
  .sales {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }
  
  .days {
    max-height: 80px;
    padding: 2px;
  }
  
  .day {
    padding: 3px 4px;
    grid-template-columns: 20px 1fr 40px;
    gap: 3px;
    font-size: 0.6rem;
    margin-bottom: 1px;
  }
  
  
  .summary-cards {
    margin: 15px 0;
  }
  
}

/* Notificação */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 15px 25px;
  border-radius: 4px;
  font-size: 14px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.notification.show {
  transform: translateX(0);
}

/* ===== PWA STYLES ===== */

/* Modo offline */
body.offline {
  position: relative;
}

body.offline::before {
  content: '📴 Você está offline';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Botão de instalação PWA */
.install-pwa-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #FF9F43, #FFD93D);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(255, 159, 67, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.install-pwa-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 159, 67, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 159, 67, 0.8);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.4);
  }
}

/* Indicador de carregamento PWA */
.pwa-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1a1c3d, #2a2a72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.pwa-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.pwa-loading .logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 20px;
  animation: logoSpin 2s linear infinite;
}

@keyframes logoSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.pwa-loading .text {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pwa-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #FF9F43;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Melhorias para modo standalone (PWA instalado) */
@media (display-mode: standalone) {
  body {
    /* Remove espaçamento extra no topo quando em modo standalone */
    padding-top: env(safe-area-inset-top);
  }
  
  
  .install-pwa-btn {
    display: none; /* Esconde botão de instalação quando já instalado */
  }
}

/* Estilos para notificações PWA */
.pwa-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: notificationSlide 0.3s ease;
}

@keyframes notificationSlide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Melhorias para dispositivos com notch */
@supports (padding: max(0px)) {
  body {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* Estilos para splash screen customizado */
@media (display-mode: standalone) {
  .splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1c3d, #2a2a72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.5s ease;
  }
  
  .splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  .splash-screen .app-icon {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .splash-screen .app-name {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FF9F43 0%, #FFD93D 50%, #FF9F43 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
  }
  
  .splash-screen .app-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
  }
}

/* Responsivo para PWA em dispositivos móveis */
@media (max-width: 430px) and (display-mode: standalone) {
  .install-pwa-btn {
    display: none;
  }
  
}