*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f9;
}

/* ── Header ── */
header {
    background: #1f2937;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

header .logout {
    text-decoration: none;
    cursor: pointer;
}

.logout {
    text-decoration: none;
    cursor: pointer;
    color: #fff;
}

/* ── Login ── */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    padding: clamp(24px, 5vw, 40px);
    width: min(350px, 100%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
}

.login-card h1 {
    margin-bottom: 20px;
    text-align: center;
    font-size: clamp(20px, 4vw, 26px);
}

.login-card input,
.login-card button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

/* ── Toolbar ── */
.toolbar {
    padding: clamp(12px, 2vw, 20px);
}

.toolbar input {
    width: 100%;
    padding: 12px;
}

/* ── Tabela ── */
.table-wrapper {
    padding: clamp(10px, 2vw, 20px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: clamp(8px, 1.5vw, 15px);
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: clamp(13px, 1.5vw, 15px);
    word-break: break-word;
}

/* ── Modal ── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    width: min(500px, 100%);
    margin: 40px auto;
    padding: clamp(16px, 4vw, 24px);
    border-radius: 10px;
}

.modal input,
.modal textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

/* ── Actions ── */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Toast ── */
#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    max-width: calc(100vw - 40px);
    background: #22c55e;
    color: white;
    padding: 15px;
    border-radius: 6px;
    display: none;
    z-index: 1000;
}

/* ── Botões customizados ── */
button {
    margin: 8px 8px 8px 0;
}

.custom-btn {
  width: 130px;
  height: 40px;
  color: #fff;
  border-radius: 5px;
  padding: 10px 25px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  background: rgba(2,126,251,1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
   7px 7px 20px 0px rgba(0,0,0,.1),
   4px 4px 5px 0px rgba(0,0,0,.1);
  outline: none;
}

.btn-16:hover{
  background: rgb(2,126,251,1);
  box-shadow:inset 0px 2px 2px 2px rgba(255,255,255,.5),
   0px 7px 20px 7px rgba(0,0,0,.1),
   0px 4px 5px 4px rgba(0,0,0,.1);
}
.btn-16:hover:before {
  height: 100%;
}
.btn-16:hover:after {
  width: 100%;
}

.topbuttons {
    float: right;
    padding: 10px 20px;
}

.td-password {
    width: 30%;
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid #FFF;
    border-bottom-color: rgb(2,126,251,1);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 