* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #140101;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: #1E3A5F;
    padding: 25px 20px;
    box-sizing: border-box;
}

.logo {
    font-size: 24px;
    margin-bottom: 40px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    color: #E2E8F0;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.menu-link {
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
}

.menu-link:hover,
.menu-link.active {
    background-color: #2563eb;
}

.main-content {
    flex: 1;
    padding: 50px;
}

.topbar {
    margin-bottom: 32px;
}

.topbar h2 {
    margin-bottom: 8px;
}

.topbar p {
    color: #64748b;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background-color: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h3 {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 16px;
}

.card strong {
    font-size: 32px;
    color: #172554;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 20px;
    }
}

/**Usuarios Seção**/

.users-section {
    margin-top: 32px;
    background-color: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
}

.btn-primary {
    border: none;
    background-color: #2563eb;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

th {
    color: #64748b;
    font-size: 14px;
}

td {
    font-size: 14px;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.active-status {
    background-color: #dcfce7;
    color: #166534;
}

.inactive-status {
    background-color: #fee2e2;
    color: #991b1b;
}

.btn-action {
    border: none;
    background-color: #e2e8f0;
    color: #334155;
    padding: 7px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-action:hover {
    background-color: #cbd5e1;
}

.delete-btn {
    background-color: #fee2e2;
    color: #991b1b;
}

/**Fim Usuarios Seção**/

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    background-color: white;
    padding: 24px;
    border-radius: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
}

.close-modal {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #93c5fd;
    border-color: #2563eb;
}

#users-section {
    display: none;
}

/*Menu
.menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 30px;
}

.menu a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.2s;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: white;
}

.menu a.active {
    background-color: #2563EB;
    color: white;
}
/*Fim Menu*/

#users-section,
#reports-section,
#settings-section {
    display: none;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.report-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.report-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.report-card p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

@media (max-width: 768px) {
    .report-cards {
        grid-template-columns: 1fr;
    }
}

.settings-card {
    background-color: white;
    padding: 25px;
    margin-top: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 600px;
}

.settings-card h3 {
    margin-bottom: 25px;
    font-size: 20px;
}

.settings-card .form-group {
    margin-bottom: 20px;
}

.settings-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.settings-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.settings-card input:focus {
    outline: none;
    border-color: #2563eb;
}

.settings-card button {
    margin-top: 5px;
}

.menu a.active {
    background-color: #e9eaec;
    color: white;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: linear-gradient(180deg, #071b52, #0b2a78);
    padding: 25px 20px;
    box-sizing: border-box;
}

.profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 5px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid white;
}

.profile-info h2 {
    color: white;
    font-size: 18px;
    margin: 0 0 5px;
}

.profile-info span {
    color: #aebddd;
    font-size: 14px;
}

/*Menu Lateral*/
.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: #dce5ff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.menu a.active {
    background-color: #2563eb;
    color: white;
}

.menu-icon {
    width: 25px;
    text-align: center;
    font-size: 21px;
}

/*Fim menu lateral*/

/**Css do cabeçalho de usuarios**/
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: #e8f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.page-title h1 {
    margin: 0 0 5px;
    font-size: 28px;
    color: #111827;
}

.page-title p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/**Botão adiciona usuarios**/
.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/**Icones manu navegação**/

/* ===============================
   BUSCA E FILTROS
================================ */

.users-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 14px;
    background-color: #ffffff;

    outline: none;
    box-sizing: border-box;

    transition: 0.2s;
}

.search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 18px;
    color: #6b7280;

    pointer-events: none;
}

#status-filter {
    height: 44px;
    min-width: 160px;

    padding: 0 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background-color: #ffffff;
    font-size: 14px;
    color: #374151;

    outline: none;
    cursor: pointer;

    transition: 0.2s;
}

#status-filter:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


@media (max-width: 768px) {

    .users-filters {
        flex-direction: column;
        align-items: stretch;
    }

    #status-filter {
        width: 100%;
    }
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {

    .layout {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;

        width: 280px;
        height: 100vh;
        min-height: 100vh;

        transform: translateX(-100%);

        z-index: 1000;

        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }
}

.main-content {
    width: 100%;
    padding: 20px;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-bottom: 20px;

    border: none;
    border-radius: 8px;

    background-color: #1e3a5f;
    color: white;

    font-size: 24px;
    cursor: pointer;

    position: relative;
    z-index: 1001;
}


@media (max-width: 768px) {

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transition: left 0.3s ease !important;
    }

    .sidebar.open {
        left: 0 !important;
    }

}