* {
  font-family: var(--font-primary);
  box-sizing: border-box;
}

/* =========================[ GLOBAL STYLES ]========================= */
:root {
    --color-blue: #1a80e4;
    --color-blue-dark: #1569be;
    --color-blue-primary: #007bff;
    --color-green: #23d18b;
    --color-gray-light: #f1f3f6; /* cinza de fundo mais suave */
    --color-gray: #4B5563;
    --color-dark: #1e1e2d;
    --color-text: #333;
    --color-blue-light: #0093E9;
    --color-red: #f87171;
    --color-green-save: #2ab92a;
    --color-border-default:#fadfdf;
    --color-border-default-focus:#afa3a3;
    --color-gray-medium: #9ca3af;
    --color-filter: #4e5dd8;
    --color-gray-medium-hover: #e0e0e075;
    --color-gray-dark: #4B5563;


    /* Novas */
    --color-sidebar: #0a2a49;
    --color-sidebar-hover: #144e8c;
    --color-text-light: #ffffff;
    --color-text-muted: #a6b2c4;
    --color-accent: #23d18b;
    --color-topbar: #f8f9fa;
    --font-primary: 'Inter', sans-serif;

    /* Default border-radius */
    --radius-tiny: 2px;
    --radius-small: 4px;
    --radius-medium: 6px;
    --radius-large: 12px;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--color-gray-light); /* fundo cinza suave */
    color: var(--color-gray);
    font-size: small;
}

/* =========================[ MAIN CONTAINER ]========================= */
#app {
  background-color: #fff;
  padding: 30px;
  border: none;
  border-radius: var(--radius-tiny);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 
    box-shadow 0.2s ease, 
    transform 0.2s ease,
    margin 0.3s ease,
    padding 0.3s ease;
}

#app:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.module-access#app {
  padding: 0;
}

/* =========================[ PAGE HEADER ]========================= */
.page-header {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================[ REUSABLE CARD ]========================= */
.card {
  background: #fff;
  border-radius: var(--radius-tiny);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* =========================[ PERMISSION STATE ]========================= */
.disabled-by-permission {
    background-color: #f3f3f3;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* =========================[ COLORS ]========================= */
.text-red {
    color: #dc3545;
    font-weight: bold;
}

.text-green {
    color: #28a745;
}
