/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: gold;
    margin-bottom: .5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .3s ease;
}

a:hover {
    color: #e6c200;
}

.container {
    padding: 20px;
}

button, .btn {
    background: linear-gradient(135deg, gold, #e6c200);
    border: none;
    color: #121212;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #e6c200, gold);
    transform: scale(1.05);
}

input, select, textarea {
    border-radius: 5px;
    border: none;
    padding: 12px;
    width: 100%;
    margin-bottom: 10px;
    background: #1e1e1e;
    color: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 5px gold;
}

.alert {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 215, 0, 0.1);
    color: gold;
}

.card {
    background-color: #1e1e1e;
    border: none;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.kpi {
    font-size: 1.8em;
    color: gold;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
}

table thead {
    background-color: #1e1e1e;
}

table tbody tr:nth-child(even) {
    background-color: rgba(255,255,255,0.02);
}

table tbody tr:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Animation */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: gold;
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: #1e1e1e;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}

.badge-admin {
    background-color: gold;
    color: #121212;
}

.badge-user {
    background-color: #444;
}

.badge-active {
    background-color: #28a745;
}

.badge-inactive {
    background-color: #dc3545;
}

/* Chart container */
#myChart {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
}

/* Login */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../assets/deposito_escuro.jpg') center/cover no-repeat;
}

.login-form {
    background: rgba(0,0,0,0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.login-form input {
    margin-bottom: 15px;
}

.login-form button {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    color: #aaa;
    margin-top: 20px;
    font-size: 0.9em;
}

