* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #0f0f0f;
    color: #f5d27a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Logo no fundo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("img/logo.png") center center no-repeat;
    background-size: 800px;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

header {
    background: rgba(20, 20, 20, 0.96);
    padding: 18px 20px 22px;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
}

.header-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.25));
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.header-text h1 {
    margin: 0;
    font-size: 30px;
    color: #d4af37;
    letter-spacing: 1px;
    line-height: 1.1;
}

.header-text p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #f3dfaa;
    letter-spacing: 0.6px;
}

nav {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

nav a {
    color: #f5d27a;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    display: inline-block;
    transition: 0.3s;
    min-width: 110px;
    text-align: center;
    background: rgba(17, 17, 17, 0.82);
}

nav a:hover {
    background: #d4af37;
    color: #111;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("img/logo.png") center center no-repeat;
    background-size: 820px;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    filter: grayscale(10%);
}

nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

nav a {
    color: #f5d27a;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    display: inline-block;
    transition: 0.3s;
    min-width: 110px;
    text-align: center;
    background: rgba(17, 17, 17, 0.8);
}

nav a:hover {
    background: #d4af37;
    color: #111;
}

.container {
    width: 92%;
    max-width: 1300px;
    margin: 30px auto;
}

.card {
    background: rgba(28, 28, 28, 0.92);
    border: 1px solid #d4af37;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
}

h2, h3 {
    margin-bottom: 15px;
    color: #d4af37;
}

p {
    line-height: 1.6;
    margin-bottom: 8px;
}

form input,
form select,
form textarea,
form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #d4af37;
    outline: none;
    font-size: 15px;
}

form input,
form select,
form textarea {
    background: #111;
    color: #f5d27a;
}

form button {
    background: #d4af37;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #f5d27a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(26, 26, 26, 0.92);
    overflow: hidden;
    border-radius: 10px;
}

table th,
table td {
    border: 1px solid #d4af37;
    padding: 12px;
    text-align: center;
}

table th {
    background: #222;
    color: #d4af37;
}

.btn {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
}

.btn-editar {
    background: #3498db;
    color: white;
}

.btn-excluir {
    background: #e74c3c;
    color: white;
}

.btn-baixa {
    background: #27ae60;
    color: white;
}

.alerta {
    color: #ff4d4d;
    font-weight: bold;
}

.card canvas {
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    width: 100% !important;
    max-height: 420px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-grid .card {
    margin-bottom: 0;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 20px;
}

.dashboard-title p {
    color: #f3dfaa;
}

@media (max-width: 768px) {
    .header-brand {
        gap: 10px;
    }

    .header-brand img {
        width: 34px;
        height: 34px;
    }

    .header-text h1 {
        font-size: 22px;
    }

    .header-text p {
        font-size: 11px;
    }

    nav a {
        min-width: 95px;
        padding: 9px 12px;
        font-size: 14px;
    }

    .container {
        width: 95%;
    }

    body::before {
        background-size: 430px;
        opacity: 0.10;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #0f0f0f;
    color: #f5d27a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Logo no fundo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("img/logo.png") center center no-repeat;
    background-size: 700px;
    opacity: 0.07;
    z-index: -1;
    pointer-events: none;
}

header {
    background: rgba(26, 26, 26, 0.95);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    backdrop-filter: blur(3px);
}

header h1 {
    font-size: 30px;
    color: #d4af37;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

nav a {
    color: #f5d27a;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    display: inline-block;
    transition: 0.3s;
    min-width: 110px;
    text-align: center;
    background: rgba(17, 17, 17, 0.8);
}

nav a:hover {
    background: #d4af37;
    color: #111;
}

.container {
    width: 92%;
    max-width: 1300px;
    margin: 30px auto;
}

.card {
    background: rgba(28, 28, 28, 0.92);
    border: 1px solid #d4af37;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
}

h2, h3 {
    margin-bottom: 15px;
    color: #d4af37;
}

p {
    line-height: 1.6;
    margin-bottom: 8px;
}

form input,
form select,
form textarea,
form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #d4af37;
    outline: none;
    font-size: 15px;
}

form input,
form select,
form textarea {
    background: #111;
    color: #f5d27a;
}

form button {
    background: #d4af37;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #f5d27a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(26, 26, 26, 0.92);
    overflow: hidden;
    border-radius: 10px;
}

table th,
table td {
    border: 1px solid #d4af37;
    padding: 12px;
    text-align: center;
}

table th {
    background: #222;
    color: #d4af37;
}

.btn {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
}

.btn-editar {
    background: #3498db;
    color: white;
}

.btn-excluir {
    background: #e74c3c;
    color: white;
}

.btn-baixa {
    background: #27ae60;
    color: white;
}

.alerta {
    color: #ff4d4d;
    font-weight: bold;
}

.card canvas {
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    width: 100% !important;
    max-height: 420px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-grid .card {
    margin-bottom: 0;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 20px;
}

.dashboard-title p {
    color: #f3dfaa;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
    }

    nav a {
        min-width: 95px;
        padding: 9px 12px;
        font-size: 14px;
    }

    .container {
        width: 95%;
    }

    body::before {
        background-size: 260px;
    }
}