/*
 * Estilos Globais e Header
 */

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #212121;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 61px;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    color: #757575;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle-btn {
    background: none;
    border: 0px solid #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
    transition: background-color 0.2s;
}

.sidebar-toggle-btn:hover {
    background-color: #eeeeee;
}

.sidebar-toggle-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease-in-out;
}

.header-logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: #757575;
    display: flex;
    align-items: center;
    padding-top: 2px;
    height: 100%;
}

.header-logo img {
    height: 24px;
    width: auto;
}

.header-logo .logo-dark-mode {
    display: none;
}

.header-logo .logo-light-mode {
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 6px 12px;
    width: 2w0px;
    height: 22px;
}

.search-bar svg {
    color: #6b7280;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    color: #111827;
    font-size: 0.9rem;
    width: 100%;
}

.search-bar input::placeholder {
    color: #6b7280;
}

.summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.card p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #242424;
}

.card-total h3 {
    color: #42a5f5;
}

.card-critical h3 {
    color: #ef5350;
}

.card-warning h3 {
    color: #ffca28;
}

.user-menu-container {
    position: relative;
}

.user-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #383838;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.user-avatar-btn:hover {
    opacity: 0.8;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 240px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
}

.user-menu-dropdown.active {
    display: block;
}

.user-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.9em;
    color: #757575;
}

.user-menu-header strong {
    display: block;
    color: #757575;
    font-weight: 600;
}

.user-menu-links {
    padding: 8px;
}

.user-menu-links a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #757575;
    font-size: 0.95em;
    border-radius: 4px;
}

.user-menu-links a:hover {
    background-color: #eeeeee;
}

.user-menu-links a.user-menu-logout {
    color: #ef5350; /* Vermelho */
}

.user-menu-links a.user-menu-logout:hover {
    background-color: #fef2f2;
    color: #ef5350;
}

.sidebar,
.content {
    scrollbar-color: #757575 #f7f7f7;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f7f7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: #bdc3c7;
    border-radius: 4px;
    border: 2px solid #f7f7f7;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #282828;
}

.login-page {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #181818;
}

.login-left-panel {
    flex-basis: 60%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
        url("/images/banner.jpg");
    background-size: cover;
    background-position: center;
}

.login-right-panel {
    flex-basis: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.login-box {
    width: 100%;
    max-width: 300px;
    background-color: #212121;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
    color: #e0e0e0;
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-header {
    text-align: center;
    margin-bottom: 1rem;
}

.login-logo {
    height: 30px;
    width: auto;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #a0a0a0;
    margin: 0;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: #e0e0e0;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    background-color: #191919;
    border: 1px solid #282828;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #424242;
    box-shadow: 0 0 0 2px rgba(189, 189, 189, 0.2);
}

.button {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.button.primary-button {
    background-color: #f5f5f5;
    color: #212121;
    border: none;
}
.button.primary-button:hover {
    background-color: #cfd8dc;
}

.button.azure-ad-button {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #424242;
    box-sizing: border-box;
}

.button.azure-ad-button:hover {
    background-color: #424242;
    color: #cfd8dc;
}

.login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #757575;
    margin: 1.2rem 0;
}

.login-separator::before,
.login-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #424242;
}

.login-separator span {
    padding: 0 2rem;
}

.error-message {
    padding: 0.7rem;
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid #ef5350;
    color: #ef5350;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    text-align: center;
}

.build-table-body {
    color: #212121;
}
