
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  flex-direction: column;
  overflow-x: hidden;
  background: #000000;
  }

        .home {
            display: flex;
            min-height: 100vh;
            background: #000000;
        }
        .sidebar {
            background: #191919;
            color: white;
            transition: all 0.3s ease;
            height: 100vh;
            overflow-y: auto;
            scrollbar-width: none;
            scrollbar-color: #475569 #1e293b;
        }
        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: #475569;
            border-radius: 3px;
        }

        .sidebar-header {
            background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
            text-align: center;
        }

        .sidebar-header h2 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 5px;
            color: #000;
        }

        .sidebar-header .subtitle {
            font-size: 0.85rem;
            opacity: 0.8;
            color: #000;
        }

        .menu {
            list-style: none;
            padding: 20px 0;
        }

        .menu li {
            margin: 8px 20px;
        }

        .menu li a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            padding: 12px 16px;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .menu li a:hover {
            background: #FF9800;
            color: black;
        }

        .menu li a.ativo {
            background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
            color: black;
        }

        .menu li a i {
            font-size: 18px;
            width: 24px;
            text-align: center;
            margin-right: 12px;
        }

        .menu-text {
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
        }

        .button-logout {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 16px;
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 500;
            font-size: 14px;
            margin: 20px 0;
        }

        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 20px;
            /* background: #000; */
            backdrop-filter: blur(10px);
            overflow: hidden;
            box-sizing: border-box;
        }

        .content-frame {
            flex: 1;
            width: 100%;
            border: none;
            border-radius: 12px;
            background: #0f0f0f;
        }

        .menu-toggle {
            position: fixed;
            top: 16px;
            left: 16px;
            background: #000;
            color: #fff;
            border: none;
            z-index: 1001;
            padding: 10px;
            border-radius: 8px;
            font-size: 20px;
            cursor: pointer;
            display: none;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: none;
        }

        .overlay.show {
            display: block;
        }

        .close-sidebar {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            position: absolute;
            top: 10px;
            right: 16px;
            cursor: pointer;
        }
.logo-menu {
  max-width: 240px;
}
.container {
    padding: 20px;
    width: 80%;
    max-width: 550px;
    margin: 20px;
    background: linear-gradient(45deg, #191919, #292929);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Login container menor */
.container.login {
  max-width: 300px;
  width: 100%;
  padding: 30px;
}


h1, h2 {
  color: #b8b8b8;
  text-align: center;
  margin-bottom: 15px;
}


form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: white;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  color: #b8b8b8;
  font-weight: bold;
}

input,
select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: #444;
  color: #F0F0F0;
  font-size: 16px;
  min-width: 100%;
}

    .linha-dupla {
      display: flex;
      gap: 15px;
    }

    .linha-dupla label {
      flex: 1;
    }

.permissoes-add {
  display: flex;
  align-items: flex-start;
  gap: 50%;
}

.button-add {
  font-size: small;
  padding: 11px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: #444;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

thead {
  background-color: #444440;
}

th {
  padding: 12px;
  color: #fff;
  font-size: 0.95em;
  text-align: center;
  vertical-align: middle;
}

td {
  padding: 10px 12px;
  border-top: 1px solid #4c4c5e;
  color: #e0e0e0;
  text-align: center;
  vertical-align: middle;
}
td .btn-remover {
  padding: 6px;
  margin: auto;
}

tr:hover {
  background-color: #45455c;
}


button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
  color: #201A33;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
  font-size: 1em;
}

button:hover {
  background: #FF5722;
  transform: translateY(-2px);
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
}

.badge-admin {
  background-color: #ff9800;
  color: black;
}

.badge-operador {
  background-color: #4caf50;
  color: white;
}

.btn-danger {
  background-color: #f74040;
  background: #f74040;
  color: white;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
}

.btn-danger:hover {
  background-color: #d63b3b;
}

.flash-messages {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.flash-message {
    max-width: 160px;
    padding: 10px 14px;
    margin: 8px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.flash-message.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.flash-message.error {
  background-color: #e74c3c;
  color: white;
}

.flash-message.success {
  background-color: #27ae60;
  color: white;
}


.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 150px;
}


.result-card {
  background-color: #444;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #FF5A00;
}

.result-card p {
  color: #e0e0e0;
  margin: 5px;
}

.result-card strong {
  color: #ffffff;
}

.result-card .error-message {
  color: #ff6b6b;
  font-weight: bold;
}


.protocol-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  margin-left: 10px;
}

.protocol-ssh,
.protocol-telnet {
  background-color: #FF5A00;
  color: white;
}


#loader,
#loader2,
#loader3,
#loader_erp {
  display: none;
  margin-top: 20px;
}

.spinner {
  border: 6px solid #444;
  border-top: 6px solid #F0F0F0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.estado-ok,
.rx-ok {
  color: #15ff00;
  font-weight: bold;
}

.estado-desligado {
  color: #ffdb3a;
  font-weight: bold;
}

.estado-offline,
.rx-neutro {
  color: #5f5f5e;
  font-weight: bold;
}

.estado-los,
.rx-critico {
  color: #ff0000;
  font-weight: bold;
}

.estado-outro {
  color: #9e9e9e;
}
  .popup {
        position: fixed;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(25deg, #ffcc00 50%, #ffde33 50%);
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        padding: 50px;
        font-family: sans-serif;
        overflow: hidden;
        }
  .cls-buton {
        float: left;
        background-color: #000;
        color: #fff;
        cursor: pointer;
        border: none;
        border-radius: 5px;
        margin-top: 10px;
        padding: 10px;
  }
      .ldm {
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        float: left;
        gap: 15px;
      }

@media (max-width: 768px) {
  body {
    margin-top: 60px;
  }
  .container {
    width: 95%;
    padding: 15px;
  }
  button {
    font-size: 1em;
    padding: 10px;
  }

  input,
  select {
    font-size: 0.95em;
    padding: 8px;
  }
            .menu-toggle {
                display: block;
            }

            .container {
                flex-direction: column;
            }

            .sidebar {
                position: fixed;
                left: -280px;
                top: 0;
                height: 100vh;
                z-index: 1002;
                transition: left 0.3s ease;
            }

            .sidebar.mobile-open {
                left: 0;
            }

            .main-content {
                height: auto;
                padding: 20px;
            }

            .close-sidebar {
                display: block;
            }
            .linha-dupla {
            width: 100%;
            display: flex;
            flex-direction: column;
            margin-top: 1px;
            align-items: flex-start;
            float: none;
            gap: unset;
            }
            input, select {
            width: -webkit-fill-available;
            margin-top: 0px;
            }
            label {
            width: 100%;
            }
          table {
            max-width:none;
            width: -webkit-fill-available;
          }
            .ldm {
            margin-top: 5px;
            }
}

@media (max-width: 480px) {
    body {
    margin-top: 60px;
  }
  h1, h2 {
    font-size: 1.2em;
  }

  .container {
    margin: 10px;
    padding: 10px;
  }

  .result-card {
    padding: 10px;
  }

  .result-card p {
    font-size: 0.9em;
  }
            .menu-toggle {
                display: block;
            }

            .container {
                flex-direction: column;
            }

            .sidebar {
                position: fixed;
                left: -280px;
                top: 0;
                height: 100vh;
                z-index: 1002;
                transition: left 0.3s ease;
            }

            .sidebar.mobile-open {
                left: 0;
            }

            .main-content {
                height: auto;
                padding: 20px;
            }

            .close-sidebar {
                display: block;
            }
        .linha-dupla {
            width: 100%;
            display: flex;
            flex-direction: column;
            margin-top: 1px;
            align-items: flex-start;
            float: none;
            gap: unset;
            }
            input, select {
            width: -webkit-fill-available;
            margin-top: 0px;
            }
            label {
            width: 100%;
            }
          table {
            max-width:none;
            width: -webkit-fill-available;
          }
            .ldm {
            margin-top: 5px;
            }
}
