/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
header {
    background-color: #3498db;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-weight: 600;
    font-size: 1.8rem;
}

nav {
    flex-grow: 1;
    margin-left: 30px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Perfil de usuário */
.user-profile {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

/* Botão de logout */
#logoutBtn {
    white-space: nowrap;
    margin-left: 10px;
}

/* Seção principal */
main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background-color: #e8f4fc;
    border-radius: 8px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Estilo personalizado do Bootstrap */
.bg-primary {
    background-color: #3498db !important;
    color: white !important;
}

.card-header.bg-primary, 
.card-header.bg-primary h2,
.card > .card-header.bg-primary {
    background-color: #3498db !important;
}

.btn-primary {
    background-color: #3498db !important;
    border-color: #3498db !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
}

/* Garantindo que o CSS personalizado se aplique após o Bootstrap */
.progress-bar {
    background-color: #3498db !important;
}


.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.feature-card {
    color: #adb5bd !important;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card-disabled {
    /*background-color: #e9ecef; /* Cor de fundo igual ao btn-primary[disabled] */
    color: #adb5bd !important; /* Cor do texto igual ao btn-primary[disabled] */
    border: 1px solid #dee2e6; /* Borda semelhante */
    border-radius: 8px;   /* Arredondamento padrão do botão */
    cursor: not-allowed;       /* Cursor padrão de desabilitado */
    opacity: 0.65;             /* Mesma opacidade */
    pointer-events: none;      /* Impede interação */
    padding: 2rem;             /* Espaçamento de botão Bootstrap */
    display: inline-block;     /* Para ficar igual ao botão */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    /*text-align: center;*/
    font-size: 1rem;
    line-height: 1.5;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

/* Seção de teste da API */
.api-test {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.api-test h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#testApiBtn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#testApiBtn:hover {
    background-color: #2980b9;
}

.response-area {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    min-height: 100px;
}

/* Rodapé */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.alert-bg-error {
    background-color: rgba(255, 0, 0, 0.15);
}

.alert-bg-success {
    background-color: rgba(40, 167, 69, 0.15);
}

.alert-bg-warning {
    background-color: rgba(255, 193, 7, 0.2);
}

.disabled-like-btn {
    /*background-color: #e9ecef; /* Cor de fundo igual ao btn-primary[disabled] */
    color: #adb5bd !important; /* Cor do texto igual ao btn-primary[disabled] */
    border: 1px solid #dee2e6; /* Borda semelhante */
    border-radius: 0.375rem;   /* Arredondamento padrão do botão */
    cursor: not-allowed;       /* Cursor padrão de desabilitado */
    opacity: 0.65;             /* Mesma opacidade */
    pointer-events: none;      /* Impede interação */
    padding: 0.375rem 0.75rem; /* Espaçamento de botão Bootstrap */
    display: inline-block;     /* Para ficar igual ao botão */
    /*text-align: center;*/
    transition: none;
    box-shadow: none;
    font-size: 1rem;
    line-height: 1.5;
}

.progress-section.fade-out {
    opacity: 0;
    transition: opacity .35s ease;
}