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

body { 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: white;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  min-height: 600px;
}

/* Login View Styles */
.login-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.logo-section {
  background: #061220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: white;
}

.logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.company-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.company-tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

.login-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.login-subtitle {
  color: #666;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

/* Dashboard Styles */
.welcome-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #061220 0%, #1a2a3a 100%);
  color: white;
  border-radius: 20px;
  margin-bottom: 30px;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.welcome-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #b8c5d1;
}

.welcome-message {
  font-size: 1.1rem;
  color: #e8f4f8;
  font-weight: 500;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-title {
  font-size: 1.8rem;
  color: #061220;
  margin-bottom: 30px;
  text-align: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.menu-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #007bff;
}

.menu-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.menu-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #061220;
  margin-bottom: 15px;
}

.menu-card-description {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.menu-btn {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.menu-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: transparent;
  border-color: #6c757d;
  color: #6c757d;
}

/* Header Title */
.header-title {
  color: #061220;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: white;
  border-bottom: 1px solid #e1e5e9;
}

.dashboard-header .action-buttons {
  margin-left: 0;
  margin-right: 20px;
  max-width: 500px;
  gap: 6px;
  justify-content: flex-end;
}

.dashboard-header .action-buttons .btn {
  padding: 8px 12px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

/* Garantir que todos os botões fiquem na mesma linha */
.dashboard-header .action-buttons {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dashboard-header .action-buttons::-webkit-scrollbar {
  display: none;
}


.login-button {
  background: transparent;
  color: #061220;
  border: 2px solid #061220;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(6, 18, 32, 0.2);
}

.login-button:hover {
  background: #061220;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 18, 32, 0.4);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Protected Area Styles */
.protected-view {
  display: none;
  padding: 40px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user-info h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
}

.user-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: transparent;
  color: #061220;
  border: 2px solid #061220;
}

.btn-secondary {
  background: transparent;
  color: #666;
  border: 2px solid #ddd;
}

.btn-info {
  background: transparent;
  color: #17a2b8;
  border: 2px solid #17a2b8;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: #061220;
  color: white;
}

.btn-secondary:hover {
  background: #f8f9fa;
  color: #333;
}

.btn-info:hover {
  background: #17a2b8;
  color: white;
}

.content-area {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
}

.content-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.status-message {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

/* Close button */
.close-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: inherit;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background-color: rgba(0,0,0,0.1);
}

.footer {
  text-align: center;
  margin-top: 30px;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .login-view {
    grid-template-columns: 1fr;
  }
  
  .logo-section {
    padding: 30px 20px;
  }
  
  .company-name {
    font-size: 2rem;
  }
  
  .login-section {
    padding: 30px 20px;
  }
  
  .header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .action-buttons {
    flex-direction: column;
    width: 100%;
  }
}
