.sidebar {
  width: 260px;
  height: 100vh;
  background-color: #2c3e50;
  color: white;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
}
.profile-section {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #34495e;
}

.photo-placeholder {
  width: 80px;
  height: 80px;
  background-color: #95a5a6;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.company-name {
  font-weight: bold;
  font-size: 1.1em;
}

.modules {
  flex-grow: 1;
  padding: 15px 0;
}

.module-item summary {
  padding: 12px 20px;
  list-style: none; 
  cursor: pointer;
  transition: background 0.3s;
  border-bottom: 1px solid #34495e;
}

.module-item summary:hover {
  background-color: #3e5871;
}

.actions {
  background-color: #34495e;
}

.actions a {
  display: block;
  padding: 10px 40px;
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.9em;
}

.actions a:hover {
  color: white;
  background-color: #1abc9c;
}

.logout-container {
  padding: 20px;
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  padding: 0 20px;
  height: 70px;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-logo {
  width: 45px;
  height: 45px;
  background-color: #ecf0f1;
  border-radius: 50%;
}

.company-name {
  font-size: 0.75rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-modules {
  display: flex;
  gap: 20px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: white;
  padding: 25px 15px;
  font-size: 1rem;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #34495e;
}

.logout-link {
  background-color: transparent;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.logout-link:hover {
  background-color: #e74c3c;
  color: white;
}
.main-content {
  padding: 30px;
  background-color: #f4f7f6; 
  min-height: calc(100vh - 70px); 
  box-sizing: border-box;
}

.content-header {
  margin-bottom: 25px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.content-header h1 {
  color: #2c3e50;
  margin: 0;
  font-size: 1.5rem;
}

.document-wrapper {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  min-height: 400px; 
}

.placeholder-card {
  border: 2px dashed #bdc3c7;
  color: #95a5a6;
  text-align: center;
  padding: 100px 0;
  font-style: italic;
}

.main-container {
  background-color: #f0f2f5;
  min-height: calc(100vh - 70px);
  display: flex;
  justify-content: center;
  padding: 20px;
}

.content-wrapper {
  background-color: #ffffff;
  width: 100%;
  max-width: 1200px; 
  min-height: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  padding: 40px;
  transition: all 0.3s ease;
}

.content-wrapper h2 {
  color: #1a2a3a;
  margin-bottom: 20px;
  border-left: 5px solid #3498db;
  padding-left: 15px;
}
.action-panel {
  text-align: center;
  padding: 20px;
}

.button-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.action-btn {
  display: flex;
  align-items: center;
  width: 250px;
  padding: 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
}

.action-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.action-btn.alta { border-left: 6px solid #2ecc71; }
.action-btn.consulta { border-left: 6px solid #3498db; }

.action-btn .icon {
  font-size: 2rem;
  margin-right: 15px;
}

.action-btn .text strong {
  display: block;
  font-size: 1.2rem;
  color: #2c3e50;
}

.action-btn .text span {
  font-size: 0.85rem;
  color: #7f8c8d;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.custom-table th, .custom-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-avatar-sm {
    width: 35px;
    height: 35px;
    background-color: #ccc;
    border-radius: 50%;
}

.action-cell {
    display: flex;
    gap: 2mm; 
    align-items: center;
}

.circle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.btn-view { border-color: #3498db; color: #3498db; }
.btn-view:hover { background: #3498db; color: white; }

.btn-activate { border-color: #2ecc71; color: #2ecc71; }
.btn-activate:hover { background: #2ecc71; color: white; }

.btn-deactivate { border-color: #f1c40f; color: #f1c40f; }
.btn-deactivate:hover { background: #f1c40f; color: white; }

.btn-delete { border-color: #e74c3c; color: #e74c3c; }
.btn-delete:hover { background: #e74c3c; color: white; }
.split-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.permissions-sidebar {
    flex: 0 0 250px; 
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.section-box h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.check-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.main-form-fields {
    flex: 1; 
    max-width: 600px;
}

.field-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #34495e;
}

.field-group input[type="text"],
.field-group input[type="password"],
.field-group input[type="file"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.row-flex {
    display: flex;
    gap: 20px;
}

.row-flex .field-group {
    flex: 1;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.save-btn {
    background-color: #27ae60;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.cancel-btn {
    background-color: #95a5a6;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}