/* Estilos para o painel de administração */
.admin-panel {
    background-color: #faf8f1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.admin-tab-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.admin-tab-btn:hover {
    background-color: #e9e9e9;
}

.admin-tab-btn.active {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
}

.admin-tab-content {
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Estilos para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Estilos para botões */
button {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 5px;
    font-weight: 500;
}

button:hover {
    background-color: #e9e9e9;
}

.edit-user-btn, button[onclick*="handleEditGroups"] {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
}

.edit-user-btn:hover, button[onclick*="handleEditGroups"]:hover {
    background-color: #3367d6;
}

.toggle-admin-btn {
    background-color: #fbbc05;
    color: white;
    border-color: #fbbc05;
}

.toggle-admin-btn:hover {
    background-color: #f9a825;
}

.change-group-btn, button:contains("Mudar Grupo") {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
}

.manage-users-btn, button:contains("Gerenciar Acessos") {
    background-color: #34a853;
    color: white;
    border-color: #34a853;
}

.manage-users-btn:hover, button:contains("Gerenciar Acessos"):hover {
    background-color: #2d9348;
}

/* Estilos para formulários */
input[type="text"], 
input[type="email"],
input[type="password"],
select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
}

/* Estilos para modais */
.groups-dialog,
.members-dialog,
.edit-dialog {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.groups-dialog-content,
.members-dialog-content,
.edit-dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Estilos para gerenciamento de vídeos */
.video-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.video-filter select,
.video-filter input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.video-filter select {
    min-width: 150px;
}

.video-filter input {
    flex-grow: 1;
}

/* Estilos para o gerenciamento de acessos */
.user-access-item {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 4px;
}

.user-access-item:hover {
    background-color: #f5f5f5;
}

.user-access-item label {
    margin-left: 5px;
}

.has-group-access {
    color: #888;
    font-style: italic;
}

.access-note {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #4285f4;
}

/* Melhorias visuais gerais */
h2, h3 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.group-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.group-form input {
    flex-grow: 1;
    margin-bottom: 0;
}

.user-list-container,
.group-list-container,
.video-list-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}
