body {
    background-color: #0f1a24;
    color: #e9edef;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

header {
    background-color: #1c252f;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

h1 {
    margin: 0;
    flex-grow: 1;
}

#searchBar {
    background-color: #2a3442;
    color: #e9edef;
    border: 1px solid #1a8cff;
    padding: 8px;
    border-radius: 5px;
    width: 300px;
}

button {
    background-color: #1a8cff;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #1477d9;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.tab-button {
    background-color: #1c252f;
    border: 1px solid #1a8cff;
    color: #e9edef;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.tab-button.active {
    background-color: #1a8cff;
}

.tab-content {
    margin-top: 20px;
}

#celularesContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.celular-container {
    background-color: #151e29;
    border: 1px solid #1a8cff;
    border-radius: 15px;
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.celular-name {
    margin-top: 280px;
    text-align: center;
    background-color: #0f1a24;
    color: #FFFF;
    padding: 8px 0;
    border-radius: 0 0 15px 15px;
    width: 100%;
    position: absolute;
    left: 0;
}

#searchResults, #numerosTable {
    margin-top: 20px;
}

.search-table, .chip-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.search-table th, .search-table td, .chip-table th, .chip-table td {
    border: 1px solid #1c252f;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-table th, .chip-table th {
    background-color: #1c252f;
}

.search-table a {
    color: #1a8cff;
    text-decoration: none;
    cursor: pointer;
}

.search-table a:hover {
    text-decoration: underline;
}

.details-page {
    background-color: #0f1a24;
    padding: 20px;
}

input, select {
    background-color: #2a3442;
    color: #e9edef;
    border: 1px solid #1a8cff;
    padding: 5px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .search-table, .chip-table {
        font-size: 14px;
    }
    #searchBar {
        width: 100%;
    }
}

/* Modal estilizado */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #1c252f;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #1a8cff;
    width: 400px;
    color: #e9edef;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    text-align: left;
    position: relative; /* allow absolute-positioned close button */
}

.modal-content h2 {
    margin-top: 0;
    color: #1a8cff;
}

.close-btn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #e9edef;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff4c4c;
}

/* New modal close button (right-top circular) */
.modal-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(233,238,239,0.14);
    background: transparent; /* fully transparent */
    color: #e9edef;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.modal-close-btn:hover {
    background: rgba(255,255,255,0.03);
    color: #ffffff;
}
.modal-close-btn:focus {
    box-shadow: 0 0 0 3px rgba(26,140,255,0.08);
}

/* Estilos de Status */
.status-ativo {
    color: #00a884;
    font-weight: bold;
}

.status-banido {
    color: #ff4c4c;
    font-weight: bold;
}

.status-disponivel {
    color: #1e90ff;
    font-weight: bold;
}

/* Restrito status - destaque amarelo */
.status-restrito {
    color: #fbbc04;
    font-weight: bold;
}

header {
    background-color: #1c252f;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
    margin: 0;
    font-size: 24px;
    flex-grow: 1;
    margin-left: 20px;
}

.openbtn {
    font-size: 30px;
    cursor: pointer;
    background-color: transparent;
    color: white;
    border: none;
    padding: 0;
    line-height: 1;
    margin-right: 15px;
}

/* Estilos da barra lateral */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: #1c252f;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidebar .sidebar-items a { font-size: 20px; padding: 12px 8px 12px 32px; }

.sidebar .sidebar-footer { margin-top: auto; padding: 12px 8px 20px 32px; }
.sidebar .logout-divider { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 8px; }
.sidebar .logout-link { color: #dcdcdc; font-size: 18px; display: block; padding: 6px 0; }
.sidebar .logout-link:hover { color: #fff; }

.sidebar a:hover {
    color: #1a8cff;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Efeito de transição para o conteúdo principal */
#main-container {
    transition: margin-left .5s;
    padding: 16px;
}

.celular-info {
    text-align: left;
    width: 100%;
    padding-left: 60px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 15px;
}

.btn-excluir {
    background: transparent;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    border-radius: 4px;
    padding: 2px 10px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.2s, color 0.2s;
}

.btn-excluir:hover {
    background: #d32f2f;
    color: #fff;
}

/* Botão contorno roxo (para ação 'Alocar') */
.btn-outline-purple {
    background: transparent;
    color: #8a2be2;
    border: 1px solid #8a2be2;
}
.btn-outline-purple:hover {
    background: rgba(138,43,226,0.12);
    color: #fff;
}

/* Disabled inputs inside modals should follow dark theme */
.modal-content input[disabled], .modal-content input[readonly] {
    background-color: #2a3442 !important;
    color: #e9edef !important;
    border: 1px solid #1a8cff !important;
}

/* Modified styles.css (add styles for logs table if desired, but existing .search-table can be reused) */
.logs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.logs-table th, .logs-table td {
    border: 1px solid #1c252f;
    padding: 8px;
    text-align: left;
}

.logs-table th {
    background-color: #1c252f;
}

.logs-table-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #1c252f;
    border-radius: 8px;
    margin-top: 20px;
    background: #151e29;
}

.logs-table-container::-webkit-scrollbar {
    width: 8px;
}

.logs-table-container::-webkit-scrollbar-thumb {
    background-color: #1a8cff;
    border-radius: 4px;
}

.logs-table-container::-webkit-scrollbar-track {
    background-color: #1c252f;
}

.usuarios-scroll {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #1a8cff;
    margin-top: 10px;
    padding-right: 5px;
}

.usuarios-scroll::-webkit-scrollbar {
    width: 8px;
}

.usuarios-scroll::-webkit-scrollbar-thumb {
    background-color: #1a8cff;
    border-radius: 4px;
}

.usuarios-scroll::-webkit-scrollbar-track {
    background-color: #1c252f;
}

.chips-table-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #1c252f;
    border-radius: 8px;
    margin-top: 20px;
    background: #151e29;
}

.chips-table-container::-webkit-scrollbar {
    width: 8px;
}

.chips-table-container::-webkit-scrollbar-thumb {
    background-color: #1a8cff;
    border-radius: 4px;
}

.chips-table-container::-webkit-scrollbar-track {
    background-color: #1c252f;
}

.chips-table-container {
    overflow-x: auto;
    white-space: nowrap;
}

.chips-table-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #1c252f;
    border-radius: 8px;
    margin-top: 20px;
    background: #151e29;
}

.chips-table-container::-webkit-scrollbar {
    width: 8px;
}

.chips-table-container::-webkit-scrollbar-thumb {
    background-color: #1a8cff;
    border-radius: 4px;
}

.chips-table-container::-webkit-scrollbar-track {
    background-color: #1c252f;
}

/* Personalização do Select2 para parecer com o select padrão do sistema */
.select2-container--default .select2-selection--single {
    background-color: #2a3442 !important;
    color: #e9edef !important;
    border: 1px solid #1a8cff !important;
    border-radius: 5px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 5px 8px !important;
    font-size: 16px !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e9edef !important;
    line-height: 28px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.select2-dropdown {
    background-color: #2a3442 !important;
    color: #e9edef !important;
    border: 1px solid #1a8cff !important;
}

.select2-results__option {
    background-color: #2a3442 !important;
    color: #e9edef !important;
}

.select2-results__option--highlighted {
    background-color: #1a8cff !important;
    color: #fff !important;
}

.select2-container {
    width: 100% !important;
    min-width: 120px;
}

.select2-selection--single {
    width: 100% !important;
}
.dashboard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#chipsChart {
    max-width: 500px;
    max-height: 500px;
    background-color: #151e29;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px; /* altura fixa do header */
  padding: 10px 20px;
  background: #151e29;
  border-bottom: 1px solid #1a8cff;
  overflow: hidden; /* corta qualquer coisa que ultrapasse */
}

.left-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-header {
  height: 120px;   
  width: auto;
  margin-top: 0px; 
  margin-left: -20px;
  margin-right: -40px;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;   
}