/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body.admin-dashboard {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Header do Admin */
.admin-header {
    background: linear-gradient(135deg, #8f8824 0%, #bbb450 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.logo i {
    margin-right: 10px;
}

/* Navegação */
.admin-nav ul {
    display: flex;
    list-style: none;
}

.admin-nav li {
    margin: 0 15px;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.admin-nav a:hover, .admin-nav a.active {
    color: white;
    border-bottom: 2px solid white;
}

.admin-nav i {
    margin-right: 8px;
}

/* Menu do Usuário */
.user-menu {
    position: relative;
}

.user-name {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-name i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* Container Principal */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
}

.header-actions {
    margin-left: 20px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #977412;
    color: white;
}

.btn-primary:hover {
    background-color: #967c08;
    transform: translateY(-2px);
}

.btn-back {
    background-color: #916a18;
    color: #333;
}

.btn-back:hover {
    background-color: #e1e1e1;
}

/* Cartões de Estatísticas */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.total { background-color: #967c08; }
.stat-icon.active { background-color: #4CAF50; }
.stat-icon.progress { background-color: #2196F3; }

.stat-info h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Tabela de Alunos */
.students-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
}

.students-table th {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #eee;
}

.students-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.students-table tr:hover {
    background-color: #f9f9f9;
}

/* Estilos específicos para células */
.student-info {
    display: flex;
    align-items: center;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #967c08;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

.progress-container {
    display: flex;
    align-items: center;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-right: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #967c08;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-info span {
    font-size: 0.85rem;
    color: #666;
}

.activity-info i {
    margin-right: 5px;
    color: #967c08;
}

/* Ações */
.actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-action.edit {
    background-color: #2196F3;
}

.btn-action.view {
    background-color: #4CAF50;
}

.btn-action.delete {
    background-color: #f44336;
}

.btn-action:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    gap: 5px;
}

.pagination a {
    padding: 8px 15px;
    text-decoration: none;
    color: #a58a10;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a.active {
    background-color: #7a670f;
    color: white;
    border-color: #6e6113;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

/* Caixa de Busca */
.search-box {
    margin: 1.5rem 0;
}

.search-box form {
    display: flex;
    max-width: 400px;
}

.search-box input {
    flex-grow: 1;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background-color: #7e7313;
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background-color: #a07604;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-nav {
        margin: 1rem 0;
    }
    
    .admin-nav ul {
        flex-direction: column;
    }
    
    .admin-nav li {
        margin: 5px 0;
    }
    
    .students-table {
        display: block;
        overflow-x: auto;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Estilos para o formulário de cadastro */
.form-cadastro {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.8rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}