/* Reset e estilo global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f4f6f9;
    color: #333;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 4px 0px 8px rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    padding-bottom: 20px;
}

/* Logo com fundo arredondado */
.sidebar .logo-container {
    background: white;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.sidebar img {
    width: 180px;
    display: block;
}

/* Menu de navegação */
.sidebar nav {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    width: 100%;
}

.sidebar nav a:hover {
    background-color: #34495e;
    color: #ffcc00;
}

.sidebar nav a i {
    margin-right: 10px;
    font-size: 18px;
}

/* Logout fixado corretamente */
.logout-btn {
    width: 260px;
    text-align: center;
    padding: 10px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    position: absolute;
    bottom: 20px;
    left: 0;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Área principal */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Área dos cards */
.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
    gap: 20px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 280px;
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: scale(1.05);
}

.dashboard-card i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #ff6600;
}

.dashboard-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.dashboard-card p {
    font-size: 22px;
    font-weight: bold;
    color: #555;
}

/* Tabela estilizada */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #2c3e50;
    color: white;
    font-weight: bold;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: black;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

/* Área de conteúdo */
.content-area {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Footer fixo corretamente */
footer {
    width: 100%;
    text-align: center;
    padding: 5px;
    background: #2c3e50;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
}

/* Login container fixo e centralizado */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 350px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-container .logo {
    width: 150px;
    margin-bottom: 15px;
}

.login-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #28a745;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.login-container button:hover {
    background: #218838;
}

.login-container a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    transition: 0.3s;
}

.login-container a:hover {
    color: #ff6600;
}

.erro {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

footer a {
    color: #ff6600; /* Cor padrão do link */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

footer a:hover {
    color: #218838; /* Cor quando passa o mouse */
    text-decoration: underline;
}

/* Link de retorno pós-sucesso */
.link-retorno-grupos {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.link-retorno-grupos:hover {
    background-color: #ff6600;
    color: white;
}
