@tailwind base;
@tailwind components;
@tailwind utilities;

:root{ 
 --cor-branco-primary: #ffffff;
 --cor-azul-fundo:#022a3a;
 --cor-verde-logo:#00c485; 
 --cor-red-erro:red;
 --cor-cinza-background:#f4f4f4f4 ;
 --cor-preto-sombra:#0000001a;
 
}

/* TOPBAR */
.topbar {
    height: 52px;
    background: var(--cor-branco-primary);
    border-bottom: 1px solid var(--cor-azul-fundo);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-image: url('assets/user-removebg-preview.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* MAIN AREA */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* CONTENT */
.content { padding: 24px; }

.content h1 {
    font-size: 20px;
    margin-bottom: 16px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: var(--cor-branco-primary);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}

.card-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.card-value {
    font-size: 20px;
    font-weight: 600;
}

.table-wrapper {
    background:var(--cor-branco-primary);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}

.table-title {
    font-size: 15px;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    padding: 8px 6px;
    text-align: left;
}

th {
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 500;
}

tr:nth-child(even) {
    background: var(--cor-cinza-background);
}

.badge {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background:var(--cor-cinza-background);
    font-size: 11px;
}

.action-link {
    color: var(--cor-red-erro);
    font-size: 12px;
    cursor: pointer;
}

.action-link:hover {
    text-decoration: underline;
}