/* Estilos modernos para Lavanderia Industrial */

/* === ELEMENTOS DE ÁGUA/LIMPEZA === */
.water-gradient {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary) 100%);
  color: white;
}

.bubble-pattern {
  background-color: var(--primary-light);
  background-image: radial-gradient(circle at 25px 25px, rgba(255,255,255,0.3) 2px, transparent 3px);
  background-size: 50px 50px;
}

/* === HEADER E NAVEGAÇÃO === */
header {
  background-color: white;
  border-bottom: none;
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-brand h1 {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-dark);
}

.header-company-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}

.header-company-logo {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.header-company-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-800);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--danger);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.logout-button:hover {
  background-color: var(--danger-light);
}

nav {
  background-color: var(--primary);
  border-radius: var(--radius-lg);
  margin: 0 1rem;
  padding: 0.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 0.25rem;
  transition: all var(--transition-base);
}

nav a:hover {
  color: white;
  background-color: rgba(255,255,255,0.15);
}

nav a.active {
  color: var(--primary-dark);
  background-color: white;
}

nav a i {
  margin-right: 0.5rem;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

.dropdown-menu a {
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.dropdown-menu a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* === CARDS E CONTAINERS === */
.card, .dashboard-card {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-header {
  border-bottom: 1px solid var(--industrial-light);
  padding: 1.25rem 1.5rem;
}

.card-header h2, .card-header h3 {
  font-weight: 600;
  color: var(--gray-800);
}

.card-header i, .card-header .material-symbols-rounded {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* === BOTÕES === */
.btn, button[type="submit"], .login-button {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.btn-primary, button[type="submit"], .login-button {
  background: var(--primary);
  color: white;
}

.btn-primary:hover, button[type="submit"]:hover, .login-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

/* === LOGIN === */
.login-page {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.login-page:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.login-card {
  background-color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  /* Cantos arredondados extras nos 4 vértices */
  position: relative;
  animation: loginCardIn 220ms ease-out;
}

/* Decoração de cantos arredondados */
.login-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 28px;
  height: 28px;
  border-top: 3px solid var(--primary);
  border-left: 3px solid var(--primary);
  border-top-left-radius: 14px;
}

.login-card::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  border-top-right-radius: 14px;
}

.login-card .corner-bl {
  position: absolute;
  bottom: -6px;
  left: -6px;
  width: 28px;
  height: 28px;
  border-bottom: 3px solid var(--primary);
  border-left: 3px solid var(--primary);
  border-bottom-left-radius: 14px;
}

.login-card .corner-br {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-bottom: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  border-bottom-right-radius: 14px;
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.owner-branding {
  margin-bottom: 1rem;
  text-align: center;
}

.owner-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.5rem;
  display: none; /* aparece quando carregar */
  background: rgba(255,255,255,0.2);
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  object-fit: contain;
}

.owner-name {
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.login-header h1 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.login-form {
  padding: 1.5rem 2rem 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: all var(--transition-base);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: white;
}

/* === TABELAS === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1rem;
}

table th {
  background-color: var(--industrial-light);
  color: var(--gray-700);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
}

table th:first-child {
  border-top-left-radius: var(--radius-md);
}

table th:last-child {
  border-top-right-radius: var(--radius-md);
}

table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gray-100);
}

table tbody tr:hover {
  background-color: var(--primary-light);
}

/* === DASHBOARD === */
.dashboard-welcome {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.dashboard-welcome-decoration {
  position: absolute;
  right: -5%;
  bottom: -20%;
  width: 300px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.2)' d='M14.8 16.9c0 1.7 1.4 3.1 3.1 3.1s3.1-1.4 3.1-3.1-1.4-3.1-3.1-3.1-3.1 1.4-3.1 3.1z'/%3E%3Cpath fill='rgba(255,255,255,0.15)' d='M14.8 16.9c0-1.7-1.4-3.1-3.1-3.1s-3.1 1.4-3.1 3.1 1.4 3.1 3.1 3.1 3.1-1.4 3.1-3.1z'/%3E%3Cpath fill='rgba(255,255,255,0.3)' d='M6.3 16.9c0 1.7 1.4 3.1 3.1 3.1s3.1-1.4 3.1-3.1-1.4-3.1-3.1-3.1-3.1 1.4-3.1 3.1z'/%3E%3Cpath fill='rgba(255,255,255,0.25)' d='M4 11.4c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3.1-1.4 3.1-3.1 0-1.7-1.4-3.1-3.1-3.1-1.7.1-3.1 1.4-3.1 3.1z'/%3E%3Cpath fill='rgba(255,255,255,0.2)' d='M6.3 5.9c0 1.7 1.4 3.1 3.1 3.1s3.1-1.4 3.1-3.1S11 2.8 9.4 2.8c-1.7 0-3.1 1.4-3.1 3.1z'/%3E%3Cpath fill='rgba(255,255,255,0.15)' d='M10.1 5.9c0 1.7 1.4 3.1 3.1 3.1s3.1-1.4 3.1-3.1-1.4-3.1-3.1-3.1c-1.7 0-3.1 1.4-3.1 3.1z'/%3E%3Cpath fill='rgba(255,255,255,0.3)' d='M13.8 11.4c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3.1-1.4 3.1-3.1 0-1.7-1.4-3.1-3.1-3.1-1.7.1-3.1 1.4-3.1 3.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.3;
  transform: rotate(15deg);
  z-index: -1;
}

.dashboard-welcome:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.dashboard-welcome h2 {
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.dashboard-welcome p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
}

.stat-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.stat-card .data h3 {
  color: var(--gray-700);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.stat-card .data .number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* === ÍCONES MODERNOS === */
.material-symbols-rounded {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
}

.logo-icon {
  font-size: 3rem;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* === AJUSTES RESPONSIVOS === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  
  nav a {
    width: 100%;
    text-align: left;
    border-radius: 0;
  }
  
  .dashboard-welcome {
    padding: 1.5rem;
  }
  
  .card-header {
    padding: 1rem;
  }
}

/* === ESTILOS GERAIS PARA CANTOS ARREDONDADOS === */
.rounded-card {
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.rounded-corners::before, 
.rounded-corners::after,
.rounded-card::before,
.rounded-card::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  z-index: 1;
}

/* Canto superior esquerdo */
.rounded-corners::before,
.rounded-card::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  border-top-left-radius: 8px;
}

/* Canto superior direito */
.rounded-corners::after,
.rounded-card::after {
  top: -2px;
  right: -2px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  border-top-right-radius: 8px;
}

.rounded-corners .corner-bl,
.rounded-card .corner-bl {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 15px;
  height: 15px;
  border-bottom: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  border-bottom-left-radius: 8px;
}

.rounded-corners .corner-br,
.rounded-card .corner-br {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  border-bottom-right-radius: 8px;
}

/* === ESTILOS PARA BRANDING DA EMPRESA === */
.header-company-info.hidden {
  display: none;
}

.owner-branding.hidden {
  display: none;
}

.login-header p {
  color: rgba(255,255,255,0.9);
}